|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.voms.database.DBCapability
A class representing capabilities in a VO. Essentially, a wrapper class for the capabilities table.
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 capability. |
static int |
countCapabilities()
Return the number of capabilities in this VO. |
int |
countMembers()
Returns the number of users that have this capability. |
static DBCapability |
createCapability(java.lang.String name)
Creates a new capability. |
void |
deleteCapability()
Delete this capability. |
DBACL |
getACL()
Return this capability's ACL. |
static java.lang.String[] |
getCapabilityNames()
Returns the names of all capabilities in this VO. |
DBAdmin |
getCreatedBy()
Return the user who created this capability. |
long |
getCreatedByid()
Return the id of the user who created this capability. |
long |
getCreatedSerial()
Return the serial number of the transaction that committed this capability. |
java.lang.String |
getDN()
Return the name of this capability. |
static DBCapability |
getInstance(java.lang.String name)
Returns a DBCapability object representing the name capability. |
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. |
boolean |
isMember(DBUser user)
|
void |
removeAllMembers()
|
void |
removeMember(DBUser user)
Remove a user from this container. |
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 DBCapability getInstance(java.lang.String name) throws GeneralDatabaseException, NotInDatabase, ArgumentException
name
- The name of the capability.
NotInDatabase
- If there is no such group in the database.
GeneralDatabaseException
ArgumentException
public java.lang.String getDN()
getDN
in interface DBContainer
public java.lang.String toString()
toString
in interface DBContainer
public long getCreatedByid()
getCreatedBy
instead of this
method.
public long getCreatedSerial()
public DBACL getACL() throws GeneralDatabaseException
getACL
in interface DBContainer
GeneralDatabaseException
public DBAdmin getCreatedBy() throws GeneralDatabaseException, NotInDatabase, ArgumentException
GeneralDatabaseException
NotInDatabase
ArgumentException
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
DBContainer
getMembers
in interface DBContainer
GeneralDatabaseException
public User[] getMembersAsUser() throws GeneralDatabaseException
DBContainer
getMembersAsUser
in interface DBContainer
GeneralDatabaseException
public java.lang.String[] getMemberNames() throws GeneralDatabaseException
DBContainer
getMemberNames
in interface DBContainer
GeneralDatabaseException
public void addMember(DBUser user) throws GeneralDatabaseException
DBContainer
addMember
in interface DBContainer
GeneralDatabaseException
public void removeMember(DBUser user) throws GeneralDatabaseException
DBContainer
removeMember
in interface DBContainer
GeneralDatabaseException
public void removeAllMembers() throws GeneralDatabaseException
GeneralDatabaseException
public static DBCapability createCapability(java.lang.String name) throws GeneralDatabaseException, ArgumentException
name
- The name of the new capability.
DBRole
object corresponding to the newly created capability.
ArgumentException
- if the capability is already in the database.
GeneralDatabaseException
public void deleteCapability() throws GeneralDatabaseException, ArgumentException
GeneralDatabaseException
ArgumentException
public static int countCapabilities() throws GeneralDatabaseException
GeneralDatabaseException
public static java.lang.String[] getCapabilityNames() throws GeneralDatabaseException
GeneralDatabaseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |