|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.collabnet.ce.webservices.AbstractSoapApp
com.collabnet.ce.webservices.RbacApp
public class RbacApp
Class to hold the role-related methods. Wraps a collabNetApp.
| Constructor Summary | |
|---|---|
RbacApp(CollabNetApp collabNetApp)
Constructs a new RbacApp. |
|
| Method Summary | |
|---|---|
void |
addRole(java.lang.String projectId,
java.lang.String role,
java.lang.String description)
Add a single role to the project. |
boolean |
addRoles(java.lang.String projectId,
java.lang.String[] roles,
java.lang.String[] descriptions)
Add a set of roles with descriptions to the project. |
java.util.Collection<java.lang.String> |
getRoleMembers(java.lang.String roleId)
Get a list of users that are members of a given role |
java.util.Map<java.lang.String,java.lang.String> |
getRoles(java.lang.String projectId)
|
java.util.Collection<java.lang.String> |
getUserRoles(java.lang.String projectId,
java.lang.String username)
Get a list of role the user has in the given project. |
void |
grantRole(java.lang.String roleId,
java.lang.String username)
Grant the given role to the user. |
void |
grantRole(java.lang.String projectId,
java.lang.String roleName,
java.lang.String username)
Grant the given role to the user. |
| Methods inherited from class com.collabnet.ce.webservices.AbstractSoapApp |
|---|
checkValidSessionId, getServerUrl, getSessionId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RbacApp(CollabNetApp collabNetApp)
collabNetApp - a valid (logged-in) instance.| Method Detail |
|---|
public java.util.Map<java.lang.String,java.lang.String> getRoles(java.lang.String projectId)
throws java.rmi.RemoteException
projectId - the project id
java.rmi.RemoteException
public boolean addRoles(java.lang.String projectId,
java.lang.String[] roles,
java.lang.String[] descriptions)
throws java.rmi.RemoteException
projectId - roles - to add (only added if missing).descriptions - of roles to add (the nth description refers to
the nth role)
java.rmi.RemoteException
public void addRole(java.lang.String projectId,
java.lang.String role,
java.lang.String description)
throws java.rmi.RemoteException
projectId - role - description -
java.rmi.RemoteException
public void grantRole(java.lang.String projectId,
java.lang.String roleName,
java.lang.String username)
throws java.rmi.RemoteException
projectId - roleName - username -
java.rmi.RemoteException
public void grantRole(java.lang.String roleId,
java.lang.String username)
throws java.rmi.RemoteException
roleId - username -
java.rmi.RemoteException
public java.util.Collection<java.lang.String> getUserRoles(java.lang.String projectId,
java.lang.String username)
throws java.rmi.RemoteException
projectId - username -
java.rmi.RemoteException
public java.util.Collection<java.lang.String> getRoleMembers(java.lang.String roleId)
throws java.rmi.RemoteException
roleId - the id of the role to get
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||