|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The GroupManagement
interface describes contract between
the portal and security provider required for Jetspeed Group Management.
This interface enables an application to be independent of the underlying
group management technology.
Field Summary | |
static java.lang.String |
DEFAULT_GROUP_NAME
|
static java.lang.String |
SERVICE_NAME
|
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 Group s. |
java.util.Iterator |
getGroups(java.lang.String username)
Retrieves all Group s 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)
Joins a user into a group with a 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)
Unjoins a user from a group - specific role. |
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 |
Field Detail |
public static final java.lang.String SERVICE_NAME
public static final java.lang.String DEFAULT_GROUP_NAME
Method Detail |
public java.util.Iterator getGroups(java.lang.String username) throws JetspeedSecurityException
Group
s 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.
username
- 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
Group
s.
The security service may optionally check the current user context
to determine if the requestor has permission to perform this action.
GroupException
- 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.
GroupException
- 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.
GroupException
- 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.
groupname
- 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
GroupException
- 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
GroupException
- 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
GroupException
- 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
GroupException
- 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
GroupException
- 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.
groupname
- 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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |