|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kohsuke.jnt.JNMembership
public class JNMembership
Membership of a project.
Method Summary | |
---|---|
void |
declineRole(JNUser user,
String roleName,
String reason)
Declines the specified role request. |
void |
declineRole(String userName,
String roleName,
String reason)
Deprecated. |
Set<JNUser> |
getMembers()
Gets all the members of this project as a Set of JNUser s. |
Set<JNRole> |
getRoles()
Gets all the roles used in this project as a Set of JNRole s. |
Set<JNRole> |
getRolesOf(JNUser user)
Gets the JNRole s that a given user has in this project. |
Set<JNUser> |
getUserOf(JNRole role)
Gets the JNUser s who has a specified role in this project. |
void |
grantRole(JNUser user,
String roleName)
Grants the specified role request. |
void |
grantRole(String userName,
String roleName)
Deprecated. |
void |
revokeRole(JNUser user,
String roleName)
Revokes the specified role from the user. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Set<JNUser> getMembers() throws ProcessingException
Set
of JNUser
s.
ProcessingException
public Set<JNRole> getRoles() throws ProcessingException
Set
of JNRole
s.
ProcessingException
public Set<JNRole> getRolesOf(JNUser user) throws ProcessingException
JNRole
s that a given user has in this project.
This method returns a copy of the information, and changing the values on the array will not grant/revoke roles.
ProcessingException
public Set<JNUser> getUserOf(JNRole role) throws ProcessingException
JNUser
s who has a specified role in this project.
ProcessingException
public void grantRole(JNUser user, String roleName) throws ProcessingException
ProcessingException
public void grantRole(String userName, String roleName) throws ProcessingException
ProcessingException
grantRole(JNUser, String)
public void revokeRole(JNUser user, String roleName) throws ProcessingException
ProcessingException
public void declineRole(String userName, String roleName, String reason) throws ProcessingException
ProcessingException
declineRole(JNUser, String, String)
public void declineRole(JNUser user, String roleName, String reason) throws ProcessingException
ProcessingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |