/** * @see org.apache.jetspeed.security.RoleManager#removeRole(java.lang.String) */ public void removeRole(String roleName) throws SecurityException { super.removePrincipal(roleName); }
/** * @see org.apache.jetspeed.security.GroupManager#removeGroup(java.lang.String) */ public void removeGroup(String groupName) throws SecurityException { super.removePrincipal(groupName); }
public void removeUser(String userName, Long domainId) throws SecurityException { JetspeedPrincipal user; user = getUser(userName, domainId); super.removePrincipal(user); }
public void removePrincipal(String name) throws SecurityException { JetspeedPrincipal principal = jpam.getPrincipal(name, principalType); if (principal == null) { throw new SecurityException(SecurityException.PRINCIPAL_DOES_NOT_EXIST.createScoped(principalType.getName(),name)); } removePrincipal(principal); }
public void removePrincipal(JetspeedPrincipal principal) throws SecurityException { validatePrincipal(principal); if (principal.getName().equals(getAnonymousUser())) { throw new SecurityException(SecurityException.ANONYMOUS_USER_PROTECTED.create(principal.getName())); } super.removePrincipal(principal); }
public void removeUser(String username) throws SecurityException { if (username != null && username.equals(getAnonymousUser())) { throw new SecurityException(SecurityException.ANONYMOUS_USER_PROTECTED.create(username)); } JetspeedPrincipal user; user = getUser(username); super.removePrincipal(user); // Since 2.3.0 PortletPreferencesProvider provider = getPreferencesProvider(); if (provider != null) { provider.removeUserPreferences(username); } }