org.edg.security.voms.database
Interface DBContainer

All Known Implementing Classes:
DBCapability, DBGroup, DBRole

public interface DBContainer

A simple interface capturing some of the common methods of container classes (DBGroup, DBRole and DBCapability) for easier ACL manipulation.

Version:
$Name: v0_7_0 $
Author:
Karoly Lorentey

Method Summary
 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 toString()
          Convert to a human-readable string.
 

Method Detail

getDN

public java.lang.String getDN()
Return the name of this container.


toString

public java.lang.String toString()
Convert to a human-readable string.

Overrides:
toString in class java.lang.Object

getACL

public DBACL getACL()
             throws GeneralDatabaseException
Return this container's ACL.

GeneralDatabaseException

checkPermission

public void checkPermission(Operation o)
                     throws GeneralDatabaseException,
                            VOMSSecurityException
Convenience method: check that the client has the necessary privileges to perform the given operation on this container.

GeneralDatabaseException
VOMSSecurityException