|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A simple interface capturing some of the common methods of container classes (DBGroup, DBRole and DBCapability) for easier ACL manipulation.
Method Summary | |
void |
addMember(DBUser user)
Include a user in this container. |
void |
checkPermission(Operation o)
Convenience method: check that the client has the necessary privileges to perform the given operation on this container. |
DBACL |
getACL()
Return this container's ACL. |
java.lang.String |
getDN()
Return the name of this container. |
java.lang.String[] |
getMemberNames()
Return the names of all users that are in this container. |
DBUser[] |
getMembers()
Return all users that are in this container. |
User[] |
getMembersAsUser()
Return all users that are in this container. |
void |
removeMember(DBUser user)
Remove a user from this container. |
java.lang.String |
toString()
Convert to a human-readable string. |
Method Detail |
public java.lang.String getDN()
public java.lang.String toString()
public DBACL getACL() throws GeneralDatabaseException
GeneralDatabaseException
public DBUser[] getMembers() throws GeneralDatabaseException
GeneralDatabaseException
public User[] getMembersAsUser() throws GeneralDatabaseException
GeneralDatabaseException
public java.lang.String[] getMemberNames() throws GeneralDatabaseException
GeneralDatabaseException
public void checkPermission(Operation o) throws GeneralDatabaseException, VOMSSecurityException
GeneralDatabaseException
VOMSSecurityException
public void addMember(DBUser user) throws GeneralDatabaseException, ArgumentException
GeneralDatabaseException
ArgumentException
public void removeMember(DBUser user) throws GeneralDatabaseException, ArgumentException
GeneralDatabaseException
ArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |