|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.security.impl.GroupManagerImpl
public class GroupManagerImpl
Describes the service interface for managing groups.
Group hierarchy elements are being returned as a Groupcollection.
The backing implementation must appropriately map the group hierarchy to a
preferences sub-tree.
The convention {principal}.{subprincipal} has been chosen to name groups
hierachies. Implementation follow the conventions enforced by the
PreferencesAPI.
| Field Summary | |
|---|---|
private org.apache.jetspeed.security.AuthenticationProviderProxy |
atnProviderProxy
The authentication provider proxy. |
private org.apache.jetspeed.security.spi.GroupSecurityHandler |
groupSecurityHandler
The group security handler. |
private static org.apache.commons.logging.Log |
log
The logger. |
private org.apache.jetspeed.security.spi.SecurityMappingHandler |
securityMappingHandler
The security mapping handler. |
| Constructor Summary | |
|---|---|
GroupManagerImpl(org.apache.jetspeed.security.SecurityProvider securityProvider)
|
|
| Method Summary | |
|---|---|
void |
addGroup(String groupFullPathName)
|
void |
addUserToGroup(String username,
String groupFullPathName)
|
org.apache.jetspeed.security.Group |
getGroup(String groupFullPathName)
|
Iterator |
getGroups(String filter)
|
Collection |
getGroupsForUser(String username)
|
Collection |
getGroupsInRole(String roleFullPathName)
|
boolean |
groupExists(String groupFullPathName)
|
boolean |
isUserInGroup(String username,
String groupFullPathName)
|
void |
removeGroup(String groupFullPathName)
|
void |
removeUserFromGroup(String username,
String groupFullPathName)
|
void |
setGroupEnabled(String groupFullPathName,
boolean enabled)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.commons.logging.Log log
private org.apache.jetspeed.security.AuthenticationProviderProxy atnProviderProxy
private org.apache.jetspeed.security.spi.GroupSecurityHandler groupSecurityHandler
private org.apache.jetspeed.security.spi.SecurityMappingHandler securityMappingHandler
| Constructor Detail |
|---|
public GroupManagerImpl(org.apache.jetspeed.security.SecurityProvider securityProvider)
securityProvider - The security provider.| Method Detail |
|---|
public void addGroup(String groupFullPathName)
throws org.apache.jetspeed.security.SecurityException
addGroup in interface org.apache.jetspeed.security.GroupManagerorg.apache.jetspeed.security.SecurityExceptionGroupManager.addGroup(java.lang.String)
public void removeGroup(String groupFullPathName)
throws org.apache.jetspeed.security.SecurityException
removeGroup in interface org.apache.jetspeed.security.GroupManagerorg.apache.jetspeed.security.SecurityExceptionGroupManager.removeGroup(java.lang.String)public boolean groupExists(String groupFullPathName)
groupExists in interface org.apache.jetspeed.security.GroupManagerGroupManager.groupExists(java.lang.String)
public org.apache.jetspeed.security.Group getGroup(String groupFullPathName)
throws org.apache.jetspeed.security.SecurityException
getGroup in interface org.apache.jetspeed.security.GroupManagerorg.apache.jetspeed.security.SecurityExceptionGroupManager.getGroup(java.lang.String)
public Collection getGroupsForUser(String username)
throws org.apache.jetspeed.security.SecurityException
getGroupsForUser in interface org.apache.jetspeed.security.GroupManagerorg.apache.jetspeed.security.SecurityExceptionGroupManager.getGroupsForUser(java.lang.String)
public Collection getGroupsInRole(String roleFullPathName)
throws org.apache.jetspeed.security.SecurityException
getGroupsInRole in interface org.apache.jetspeed.security.GroupManagerorg.apache.jetspeed.security.SecurityExceptionGroupManager.getGroupsInRole(java.lang.String)
public void addUserToGroup(String username,
String groupFullPathName)
throws org.apache.jetspeed.security.SecurityException
addUserToGroup in interface org.apache.jetspeed.security.GroupManagerorg.apache.jetspeed.security.SecurityExceptionGroupManager.addUserToGroup(java.lang.String,
java.lang.String)
public void removeUserFromGroup(String username,
String groupFullPathName)
throws org.apache.jetspeed.security.SecurityException
removeUserFromGroup in interface org.apache.jetspeed.security.GroupManagerorg.apache.jetspeed.security.SecurityExceptionGroupManager.removeUserFromGroup(java.lang.String,
java.lang.String)
public boolean isUserInGroup(String username,
String groupFullPathName)
throws org.apache.jetspeed.security.SecurityException
isUserInGroup in interface org.apache.jetspeed.security.GroupManagerorg.apache.jetspeed.security.SecurityExceptionGroupManager.isUserInGroup(java.lang.String,
java.lang.String)
public Iterator getGroups(String filter)
throws org.apache.jetspeed.security.SecurityException
getGroups in interface org.apache.jetspeed.security.GroupManagerorg.apache.jetspeed.security.SecurityExceptionGroupManager.getGroups(java.lang.String)
public void setGroupEnabled(String groupFullPathName,
boolean enabled)
throws org.apache.jetspeed.security.SecurityException
setGroupEnabled in interface org.apache.jetspeed.security.GroupManagerorg.apache.jetspeed.security.SecurityExceptionGroupManager.setGroupEnabled(java.lang.String, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||