|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.services.security.JetspeedGroupManagement
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 | |
java.lang.String |
SERVICE_NAME
|
Constructor Summary | |
JetspeedGroupManagement()
|
Method Summary | |
static void |
addGroup(Group group)
Adds a Group into permanent storage. |
static Group |
getGroup(java.lang.String groupname)
Retrieves a single Group for a given groupname principal. |
static java.util.Iterator |
getGroups()
Retrieves all Group s. |
static java.util.Iterator |
getGroups(java.lang.String username)
Retrieves all Group s for a given username principal. |
protected static GroupManagement |
getService()
|
static boolean |
inGroup(java.lang.String username,
java.lang.String groupname)
Checks for the relationship of user has a group. |
static void |
joinGroup(java.lang.String username,
java.lang.String groupname)
Join a user to a group. |
static void |
joinGroup(java.lang.String username,
java.lang.String groupname,
java.lang.String rolename)
Join a user to a group - specific role. |
static void |
removeGroup(java.lang.String groupname)
Removes a Group from the permanent store. |
static void |
saveGroup(Group group)
Saves a Group into permanent storage. |
static void |
unjoinGroup(java.lang.String username,
java.lang.String groupname)
Unjoin a user from a group. |
static void |
unjoinGroup(java.lang.String username,
java.lang.String groupname,
java.lang.String rolename)
Unjoin a user from a group - specific role. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String SERVICE_NAME
Constructor Detail |
public JetspeedGroupManagement()
Method Detail |
protected static GroupManagement getService()
public static 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 static 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 static void addGroup(Group group) throws JetspeedSecurityException
Group
into permanent storage.
GroupException
- when the security provider has a general failure.
InsufficientPrivilegeException
- when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public static void saveGroup(Group group) throws JetspeedSecurityException
Group
into permanent storage.
GroupException
- when the security provider has a general failure.
InsufficientPrivilegeException
- when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public static 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 static void joinGroup(java.lang.String username, java.lang.String groupname) throws JetspeedSecurityException
GroupException
- when the security provider has a general failure retrieving users.
InsufficientPrivilegeException
- when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public static 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 static void unjoinGroup(java.lang.String username, java.lang.String groupname) throws JetspeedSecurityException
GroupException
- when the security provider has a general failure retrieving users.
InsufficientPrivilegeException
- when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public static 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 users.
InsufficientPrivilegeException
- when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public static boolean inGroup(java.lang.String username, java.lang.String groupname) throws JetspeedSecurityException
GroupException
- when the security provider has a general failure retrieving users.
InsufficientPrivilegeException
- when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public static 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 |