/** * Adds a security role reference to this web component. */ public void addSecurityRoleReference(SecurityRoleReference securityRoleReference) { getSecurityRoleReferenceSet().add(securityRoleReference); }
/** * Removes the given security role reference from this web component. */ public void removeSecurityRoleReference(SecurityRoleReference securityRoleReference) { getSecurityRoleReferenceSet().remove(securityRoleReference); }
/** * @return the Set of security role references that I have. */ public Enumeration<SecurityRoleReference> getSecurityRoleReferences() { return (new Vector(this.getSecurityRoleReferenceSet())).elements(); }
/** * @return a matching role reference by name or null if there is none matching. */ public SecurityRoleReference getSecurityRoleReferenceByName(String roleReferenceName) { for (SecurityRoleReference nextRR : getSecurityRoleReferenceSet()) { if (nextRR.getRolename().equals(roleReferenceName)) { return nextRR; } } return null; }
/** * The copy constructor. */ public WebComponentDescriptor(WebComponentDescriptor other) { setCanonicalName(other.getCanonicalName()); setServlet(other.isServlet()); setWebComponentImplementation( other.getWebComponentImplementation()); getInitializationParameterSet().addAll( other.getInitializationParameterSet()); getUrlPatternsSet().addAll(other.getUrlPatternsSet()); setLoadOnStartUp(other.getLoadOnStartUp()); getSecurityRoleReferenceSet().addAll( other.getSecurityRoleReferenceSet()); setRunAsIdentity(other.getRunAsIdentity()); setAsyncSupported(other.isAsyncSupported()); setMultipartConfig(other.getMultipartConfig()); setWebBundleDescriptor(other.getWebBundleDescriptor()); setConflict(other.isConflict()); }
other.getSecurityRoleReferenceSet().iterator(); secRoleRefIter.hasNext();) { SecurityRoleReference secRoleRef = if (getSecurityRoleReferenceByName(secRoleRef.getRolename()) == null) { getSecurityRoleReferenceSet().add(secRoleRef);