SecurityConstraint
Used by SecureResource to specify access constraints for security purposes.
1945194619471948194919501951195219531954195519561957195819591960
{ List fragmentConstraintsConstraints = new ArrayList(constraintsConstraints.size()); Iterator constraintsIter = constraintsConstraints.iterator(); while (constraintsIter.hasNext()) { SecurityConstraint constraint = (SecurityConstraint)constraintsIter.next(); SecurityConstraint fragmentConstraintsConstraint = fragment.newSecurityConstraint(); fragmentConstraintsConstraint.setGroups(constraint.getGroups()); fragmentConstraintsConstraint.setPermissions(constraint.getPermissions()); fragmentConstraintsConstraint.setRoles(constraint.getRoles()); fragmentConstraintsConstraint.setUsers(constraint.getUsers()); fragmentConstraintsConstraints.add(fragmentConstraintsConstraint); } fragmentConstraints.setSecurityConstraints(fragmentConstraintsConstraints); } List constraintsConstraintsRefs = constraints.getSecurityConstraintsRefs();
259325942595259625972598259926002601260226032604
{ contentConstraintsConstraints = new ArrayList(fragmentConstraintsConstraints.size()); Iterator constraintsIter = fragmentConstraintsConstraints.iterator(); while (constraintsIter.hasNext()) { SecurityConstraint fragmentConstraint = (SecurityConstraint)constraintsIter.next(); contentConstraintsConstraints.add(new ContentSecurityConstraint(false, fragmentConstraint.getGroups(), fragmentConstraint.getPermissions(), fragmentConstraint.getRoles(), fragmentConstraint.getUsers())); } } List contentConstraintsConstraintsRefs = null; List fragmentConstraintsConstraintsRefs = fragmentConstraints.getSecurityConstraintsRefs(); if ((fragmentConstraintsConstraintsRefs != null) && !fragmentConstraintsConstraintsRefs.isEmpty())