|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
org.apache.jetspeed.services.security.nosecurity.NoGroupManagement
The NoGroupManagement class is a Jetspeed
security provider, implementing the GroupManagement interface.
It provides no group management - no groups are listed, no groups are saved,
no users are in any groups, any request for a group is satisfied with a temporary Group object.
| Field Summary |
| Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, properties, serviceBroker |
| Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
| Fields inherited from interface org.apache.jetspeed.services.security.GroupManagement |
DEFAULT_GROUP_NAME, SERVICE_NAME |
| Constructor Summary | |
NoGroupManagement()
|
|
| Method Summary | |
void |
addGroup(Group group)
Adds a Group into permanent storage. |
Group |
getGroup(java.lang.String groupname)
Retrieves a single Group for a given groupname principal. |
java.util.Iterator |
getGroups()
Retrieves all Groups. |
java.util.Iterator |
getGroups(java.lang.String username)
Retrieves all Groups for a given username principal. |
java.util.HashMap |
getTurbineGroupRole(java.lang.String username)
Retrieves a hashtable which associates Groups with Roles for a given username principal. |
boolean |
inGroup(java.lang.String username,
java.lang.String groupname)
Checks for the relationship of user in a group. |
void |
joinGroup(java.lang.String username,
java.lang.String groupname)
Joins a user to a group. |
void |
joinGroup(java.lang.String username,
java.lang.String groupname,
java.lang.String rolename)
Join a user to a group - specific role. |
void |
removeGroup(java.lang.String groupname)
Removes a Group from the permanent store. |
void |
saveGroup(Group group)
Saves a Group into permanent storage. |
void |
unjoinGroup(java.lang.String username,
java.lang.String groupname)
Unjoins a user from a group. |
void |
unjoinGroup(java.lang.String username,
java.lang.String groupname,
java.lang.String rolename)
Unjoin a user from a group in which the user has a specific role instead of JetspeedSecurity.getRole(defaultRole)
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action. |
| Methods inherited from class org.apache.turbine.services.TurbineBaseService |
init, init, init, init, shutdown |
| Methods inherited from class org.apache.turbine.services.BaseService |
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
| Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, setInit, setInitableBroker |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.turbine.services.Service |
getConfiguration, getName, getProperties, setName, setServiceBroker |
| Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, init, setInitableBroker, shutdown |
| Constructor Detail |
public NoGroupManagement()
| Method Detail |
public java.util.Iterator getGroups(java.lang.String username)
throws JetspeedSecurityException
Groups for a given username principal.
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action.
getGroups in interface GroupManagementusername - a user principal identity to be retrieved.
GroupException - when the security provider has a general failure.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public java.util.Iterator getGroups()
throws JetspeedSecurityException
Groups.
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action.
getGroups in interface GroupManagementGroupException - when the security provider has a general failure.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public void addGroup(Group group)
throws JetspeedSecurityException
Group into permanent storage.
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action.
addGroup in interface GroupManagementGroupException - when the security provider has a general failure.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public void saveGroup(Group group)
throws JetspeedSecurityException
Group into permanent storage.
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action.
saveGroup in interface GroupManagementGroupException - when the security provider has a general failure.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public void removeGroup(java.lang.String groupname)
throws JetspeedSecurityException
Group from the permanent store.
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action.
removeGroup in interface GroupManagementgroupname - the principal identity of the group to be retrieved.
GroupException - when the security provider has a general failure.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public void joinGroup(java.lang.String username,
java.lang.String groupname)
throws JetspeedSecurityException
joinGroup in interface GroupManagementGroupException - when the security provider has a general failure retrieving groups.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public void joinGroup(java.lang.String username,
java.lang.String groupname,
java.lang.String rolename)
throws JetspeedSecurityException
joinGroup in interface GroupManagementGroupException - when the security provider has a general failure retrieving groups.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public void unjoinGroup(java.lang.String username,
java.lang.String groupname)
throws JetspeedSecurityException
unjoinGroup in interface GroupManagementGroupException - when the security provider has a general failure retrieving groups.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public void unjoinGroup(java.lang.String username,
java.lang.String groupname,
java.lang.String rolename)
throws JetspeedSecurityException
JetspeedSecurity.getRole(defaultRole)
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action.
unjoinGroup in interface GroupManagementGroupException - when the security provider has a general failure retrieving groups.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public boolean inGroup(java.lang.String username,
java.lang.String groupname)
throws JetspeedSecurityException
inGroup in interface GroupManagementGroupException - when the security provider has a general failure retrieving groups.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public Group getGroup(java.lang.String groupname)
throws JetspeedSecurityException
Group for a given groupname principal.
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action.
getGroup in interface GroupManagementgroupname - a group principal identity to be retrieved.
GroupException - when the security provider has a general failure.
InsufficientPrivilegeException - when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public java.util.HashMap getTurbineGroupRole(java.lang.String username)
throws JetspeedSecurityException
username - a user principal identity to be retrieved.
GroupException - when the security provider has a general failure.
JetspeedSecurityException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||