Examples of removeAssociation()


Examples of com.sun.enterprise.resource.listener.LocalTxConnectionEventListener.removeAssociation()

        try {
            ResourceHandle handleInTransaction = getResourceHandle();
            if (!localHandle_.equals(handleInTransaction)) {
                LocalTxConnectionEventListener l = (LocalTxConnectionEventListener) handleInTransaction.getListener();

                ResourceHandle handle = l.removeAssociation(userHandle);
                if (handle != null) { // not needed, just to be sure.
                    ManagedConnection associatedConnection = (ManagedConnection) handle.getResource();
                    associatedConnection.associateConnection(userHandle);
                    if (_logger.isLoggable(Level.FINE)) {
                        _logger.log(Level.FINE, "connection_sharing_reset_association",
View Full Code Here

Examples of com.sun.enterprise.resource.listener.LocalTxConnectionEventListener.removeAssociation()

        try {
            ResourceHandle handleInTransaction = getResourceHandle();
            if (!localHandle_.equals(handleInTransaction)) {
                LocalTxConnectionEventListener l = (LocalTxConnectionEventListener) handleInTransaction.getListener();

                ResourceHandle handle = l.removeAssociation(userHandle);
                if (handle != null) { // not needed, just to be sure.
                    ManagedConnection associatedConnection = (ManagedConnection) handle.getResource();
                    associatedConnection.associateConnection(userHandle);
                    if (_logger.isLoggable(Level.FINE)) {
                        _logger.log(Level.FINE, "connection_sharing_reset_association",
View Full Code Here

Examples of org.apache.jetspeed.security.JetspeedPrincipalManager.removeAssociation()

                    for (JetspeedPrincipal p : associatedFrom)
                    {
                        if (toAssociations.isEmpty() ||
                                        !toAssociations.remove(new JetspeedPrincipalAssociationReference(JetspeedPrincipalAssociationReference.Type.TO, p, relationType.getRelationType())))
                        {
                            principalManager.removeAssociation(principal, p, relationType.getRelationType());
                        }
                    }
                }
            }
            for (JetspeedPrincipalAssociationReference ref : toAssociations)
View Full Code Here

Examples of org.apache.jetspeed.security.JetspeedPrincipalManager.removeAssociation()

            {
                try
                {
                    if (isFromPrincipal)
                    {
                        principalManager.removeAssociation(principal, relatedPrincipal, associationName);
                        if (logger.isDebugEnabled()){
                            logger.debug("Removed association ["+principal.getName()+" ("+principal.getType().getName()+")] ---["+associationName+"]--> ["+relatedPrincipal.getName()+" ("+relatedPrincipal.getType().getName()+")]");
                        }
                    }
                    else
View Full Code Here

Examples of org.apache.jetspeed.security.JetspeedPrincipalManager.removeAssociation()

                            logger.debug("Removed association ["+principal.getName()+" ("+principal.getType().getName()+")] ---["+associationName+"]--> ["+relatedPrincipal.getName()+" ("+relatedPrincipal.getType().getName()+")]");
                        }
                    }
                    else
                    {
                        principalManager.removeAssociation(relatedPrincipal, principal, associationName);
                        if (logger.isDebugEnabled()){
                            logger.debug("Removed association ["+relatedPrincipal.getName()+" ("+relatedPrincipal.getType().getName()+")] ---["+associationName+"]--> ["+principal.getName()+" ("+principal.getType().getName()+")]");
                        }
                    }
                }
View Full Code Here

Examples of org.apache.jetspeed.security.JetspeedPrincipalManager.removeAssociation()

                    for (JetspeedPrincipal p : associatedFrom)
                    {
                        if (toAssociations.isEmpty() ||
                                        !toAssociations.remove(new JetspeedPrincipalAssociationReference(JetspeedPrincipalAssociationReference.Type.TO, p, relationType.getRelationType())))
                        {
                            principalManager.removeAssociation(principal, p, relationType.getRelationType());
                        }
                    }
                }
            }
            for (JetspeedPrincipalAssociationReference ref : toAssociations)
View Full Code Here

Examples of org.hibernate.ogm.datastore.couchdb.dialect.backend.json.impl.EntityDocument.removeAssociation()

  @Override
  public void removeAssociation(AssociationKey key, AssociationContext associationContext) {
    if ( isStoredInEntityStructure( key.getMetadata(), associationContext.getAssociationTypeContext() ) ) {
      EntityDocument owningEntity = getDataStore().getEntity( Identifier.createEntityId( key.getEntityKey() ) );
      if ( owningEntity != null ) {
        owningEntity.removeAssociation( key.getMetadata().getCollectionRole() );
        getDataStore().saveDocument( owningEntity );
      }
    }
    else {
      removeDocumentIfPresent( Identifier.createAssociationId( key ) );
View Full Code Here

Examples of org.hibernate.ogm.datastore.couchdb.dialect.backend.json.impl.EntityDocument.removeAssociation()

  @Override
  public void removeAssociation(AssociationKey key, AssociationContext associationContext) {
    if ( isStoredInEntityStructure( key, associationContext ) ) {
      EntityDocument owningEntity = getDataStore().getEntity( Identifier.createEntityId( key.getEntityKey() ) );
      if ( owningEntity != null ) {
        owningEntity.removeAssociation( key.getCollectionRole() );
        getDataStore().saveDocument( owningEntity );
      }
    }
    else {
      removeDocumentIfPresent( Identifier.createAssociationId( key ) );
View Full Code Here

Examples of org.hibernate.ogm.datastore.couchdb.dialect.backend.json.impl.EntityDocument.removeAssociation()

  @Override
  public void removeAssociation(AssociationKey key, AssociationContext associationContext) {
    if ( isStoredInEntityStructure( key, associationContext ) ) {
      EntityDocument owningEntity = getDataStore().getEntity( Identifier.createEntityId( key.getEntityKey() ) );
      if ( owningEntity != null ) {
        owningEntity.removeAssociation( key.getCollectionRole() );
        getDataStore().saveDocument( owningEntity );
      }
    }
    else {
      removeDocumentIfPresent( Identifier.createAssociationId( key ) );
View Full Code Here

Examples of org.hibernate.ogm.datastore.couchdb.dialect.backend.json.impl.EntityDocument.removeAssociation()

  @Override
  public void removeAssociation(AssociationKey key, AssociationContext associationContext) {
    if ( isStoredInEntityStructure( key, associationContext ) ) {
      EntityDocument owningEntity = getDataStore().getEntity( Identifier.createEntityId( key.getEntityKey() ) );
      if ( owningEntity != null ) {
        owningEntity.removeAssociation( key.getCollectionRole() );
        getDataStore().saveDocument( owningEntity );
      }
    }
    else {
      removeDocumentIfPresent( Identifier.createAssociationId( key ) );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.