|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.voms.database.DBQualifiedRole
A class representing qualified roles in the VO. A qualified role is a composition of a group and a role. Users are assigned roles in a given group. Essentially, a qualified role is a group-local projection of a role.
Method Summary | |
void |
addMember(DBUser user)
Adds this qualified role to the given user. |
void |
checkPermission(Operation o)
Convenience method: check that the client has the necessary privileges to perform the given operation on this container. |
int |
countMembers()
Returns the number of users who have this qualified role. |
DBACL |
getACL()
Return the qualified role's ACL. |
java.lang.String |
getDN()
Return the name of this qualified role. |
DBGroup |
getGroup()
|
static DBQualifiedRole |
getInstance(DBGroup group,
DBRole role)
Returns a DBQualifiedRole object representing the qualified role composed of the given components. |
static DBQualifiedRole |
getInstance(java.lang.String name)
Returns a DBQualifiedRole object representing the named qualified role. |
java.lang.String[] |
getMemberNames()
Return all users that have this qualified role in the given group. |
DBUser[] |
getMembers()
Return all users that have this qualified role. |
User[] |
getMembersAsUser()
Return all users that have this qualified role in the given group. |
DBRole |
getRole()
|
boolean |
isMember(DBUser user)
Returns true if the given user has this qualified role. |
void |
removeAllMembers()
Removes this qualified role from every user. |
void |
removeMember(DBUser user)
Rids the given user from this qualified role. |
java.lang.String |
toString()
Convert to a human-readable string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static DBQualifiedRole getInstance(java.lang.String name) throws GeneralDatabaseException, NotInDatabase, ArgumentException
GeneralDatabaseException
NotInDatabase
ArgumentException
public static DBQualifiedRole getInstance(DBGroup group, DBRole role)
public java.lang.String getDN()
getDN
in interface DBContainer
public java.lang.String toString()
toString
in interface DBContainer
public DBGroup getGroup()
public DBRole getRole()
public DBACL getACL() throws GeneralDatabaseException
getRole().getACL()
.
getACL
in interface DBContainer
GeneralDatabaseException
public void checkPermission(Operation o) throws GeneralDatabaseException, VOMSSecurityException
checkPermission
in interface DBContainer
GeneralDatabaseException
VOMSSecurityException
public int countMembers() throws GeneralDatabaseException
GeneralDatabaseException
public boolean isMember(DBUser user) throws GeneralDatabaseException
GeneralDatabaseException
public DBUser[] getMembers() throws GeneralDatabaseException
getMembers
in interface DBContainer
GeneralDatabaseException
public User[] getMembersAsUser() throws GeneralDatabaseException
getMembersAsUser
in interface DBContainer
GeneralDatabaseException
public java.lang.String[] getMemberNames() throws GeneralDatabaseException
getMemberNames
in interface DBContainer
GeneralDatabaseException
public void addMember(DBUser user) throws GeneralDatabaseException, ArgumentException
addMember
in interface DBContainer
GeneralDatabaseException
ArgumentException
public void removeMember(DBUser user) throws GeneralDatabaseException, ArgumentException
removeMember
in interface DBContainer
GeneralDatabaseException
ArgumentException
public void removeAllMembers() throws GeneralDatabaseException
GeneralDatabaseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |