/** * @see org.apache.jetspeed.security.RoleManager#updateRole(org.apache.jetspeed.security.Role) */ public void updateRole(Role role) throws SecurityException { super.updatePrincipal(role); }
/** * @see org.apache.jetspeed.security.GroupManager#removeGroup(java.lang.String) */ public void removeGroup(String groupName) throws SecurityException { super.removePrincipal(groupName); }
public User addUser(String username, boolean mapped) throws SecurityException { User user = newUser(username, mapped); super.addPrincipal(user, null); if (log.isDebugEnabled()) log.debug("Added user: " + username); return user; }
/** * @see org.apache.jetspeed.security.GroupManager#addGroup(java.lang.String, boolean) */ public Group addGroup(String groupName, boolean mapped) throws SecurityException { Group group = newGroup(groupName, mapped); super.addPrincipal(group, null); if (log.isDebugEnabled()) log.debug("Added group: " + groupName); return group; }
public void addSSOUserToPrincipal(SSOUser user, JetspeedPrincipal principal) throws SecurityException { super.addAssociation(user,principal,IsRemoteIdentityForPrincipalAssociationHandler.ASSOCIATION_NAME); }
public Role newTransientRole(String name) { TransientRole role = new TransientRole(name); return role; }
/** * @see org.apache.jetspeed.security.RoleManager#addRole(java.lang.String) */ public Role addRole(String roleName) throws SecurityException { return addRole(roleName, true); }
/** * @see org.apache.jetspeed.security.RoleManager#roleExists(java.lang.String) */ public boolean roleExists(String roleName) { return super.principalExists(roleName); }
public Group newTransientGroup(String name) { TransientGroup group = new TransientGroup(name); return group; }
public JetspeedPrincipal newTransientPrincipal(String name) { return newTransientGroup(name); } }
/** * @see org.apache.jetspeed.security.RoleManager#getRolesInGroup(java.lang.String) */ @SuppressWarnings("unchecked") public List<Role> getRolesInGroup(String groupName) throws SecurityException { return (List<Role>)super.getAssociatedFrom(groupName, groupType, JetspeedPrincipalAssociationType.IS_MEMBER_OF); }
public JetspeedPrincipal newTransientPrincipal(String name) { return newTransientRole(name); } }
/** * @see org.apache.jetspeed.security.GroupManager#getGroups(java.lang.String) */ @SuppressWarnings("unchecked") public List<Group> getGroups(String nameFilter) throws SecurityException { return (List<Group>) super.getPrincipals(nameFilter); }
public synchronized SecurityAttributes getSecurityAttributes() { if (sa == null) { sa = new SecurityAttributesImpl(this); } return sa; }
public User newTransientUser(String name) { TransientUser user = new TransientUser(name); return user; }
public User newUser(String name) { UserImpl user = new UserImpl(name); return user; }
public void removePrincipal(String principalName) throws SecurityException { removeUser(principalName); }
/** * @see org.apache.jetspeed.security.GroupManager#updateGroup(org.apache.jetspeed.security.Group) */ public void updateGroup(Group group) throws SecurityException { super.updatePrincipal(group); }
/** * @see org.apache.jetspeed.security.RoleManager#removeRole(java.lang.String) */ public void removeRole(String roleName) throws SecurityException { super.removePrincipal(roleName); }