public String getAuth() { return decoree.getAuthorization(); }
/** * Return true of this resource reference is expecting the container * to authorize the resource. * @return true if authorization is container managed. */ public boolean isContainerAuthorization() { return this.getAuthorization().equals(CONTAINER_AUTHORIZATION); }
/** * Return true of this resource reference is expecting the container * to authorize the resource. * @return true if authorization is container managed. */ public boolean isContainerAuthorization() { return this.getAuthorization().equals(CONTAINER_AUTHORIZATION); }
public boolean isConflict(ResourceReferenceDescriptor other) { return (getName().equals(other.getName())) && (!(DOLUtils.equals(getType(), other.getType()) && getAuthorization().equals(other.getAuthorization()) && getSharingScope().equals(other.getSharingScope()) ) || isConflictResourceGroup(other)); } }
boolean isConflict(ResourceReferenceDescriptor other) { return (getName().equals(other.getName())) && (!(DOLUtils.equals(getType(), other.getType()) && getAuthorization().equals(other.getAuthorization()) && getSharingScope().equals(other.getSharingScope()) ) || isConflictResourceGroup(other)); } }
resourceShareable, jndiNameToUse, conn, true); String auth = ref.getAuthorization();
ResourceReferenceDescriptor curRef = (ResourceReferenceDescriptor) curEntry; if (areConflicting(preRef.getType(), curRef.getType()) || areConflicting(preRef.getAuthorization(), curRef.getAuthorization()) || areConflicting(preRef.getSharingScope(), curRef.getSharingScope())
@Override public Node writeDescriptor(Node parent, String nodeName, ResourceReferenceDescriptor descriptor) { Node ejbResNode = appendChild(parent, nodeName); writeLocalizedDescriptions(ejbResNode, descriptor); appendTextChild(ejbResNode, TagNames.RESOURCE_REFERENCE_NAME, descriptor.getName()); appendTextChild(ejbResNode, TagNames.RESOURCE_TYPE, descriptor.getType()); appendTextChild(ejbResNode, TagNames.RESOURCE_AUTHORIZATION, descriptor.getAuthorization()); appendTextChild(ejbResNode, TagNames.RESOURCE_SHARING_SCOPE, descriptor.getSharingScope()); appendTextChild(ejbResNode, TagNames.MAPPED_NAME, descriptor.getMappedName()); if( descriptor.isInjectable() ) { InjectionTargetNode ijNode = new InjectionTargetNode(); for (InjectionTarget target : descriptor.getInjectionTargets()) { ijNode.writeDescriptor(ejbResNode, TagNames.INJECTION_TARGET, target); } } appendTextChild(ejbResNode, TagNames.LOOKUP_NAME, descriptor.getLookupName()); return ejbResNode; } }
/** * write the descriptor class to a DOM tree and return it * * @param parent node in the DOM tree * @param node name for the root element of this xml fragment * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, ResourceReferenceDescriptor descriptor) { Node ejbResNode = appendChild(parent, nodeName); writeLocalizedDescriptions(ejbResNode, descriptor); appendTextChild(ejbResNode, EjbTagNames.RESOURCE_REFERENCE_NAME, descriptor.getName()); appendTextChild(ejbResNode, EjbTagNames.RESOURCE_TYPE, descriptor.getType()); appendTextChild(ejbResNode, EjbTagNames.RESOURCE_AUTHORIZATION, descriptor.getAuthorization()); appendTextChild(ejbResNode, EjbTagNames.RESOURCE_SHARING_SCOPE, descriptor.getSharingScope()); appendTextChild(ejbResNode, TagNames.MAPPED_NAME, descriptor.getMappedName()); if( descriptor.isInjectable() ) { InjectionTargetNode ijNode = new InjectionTargetNode(); for (InjectionTarget target : descriptor.getInjectionTargets()) { ijNode.writeDescriptor(ejbResNode, TagNames.INJECTION_TARGET, target); } } appendTextChild(ejbResNode, TagNames.LOOKUP_NAME, descriptor.getLookupName()); return ejbResNode; } }