org.glite.security.voms.service
Class ACLEntry

java.lang.Object
  extended byorg.glite.security.voms.service.ACLEntry
All Implemented Interfaces:
java.io.Serializable

public class ACLEntry
extends java.lang.Object
implements java.io.Serializable

Convenience functions for ACLEntry.

Author:
Akos Frohner, Karoly Lorentey
See Also:
Serialized Form

Constructor Summary
ACLEntry()
           
ACLEntry(DBAdmin admin, Operation operation, boolean allow)
          Creates a new ACL entry with the given data.
ACLEntry(java.lang.String adminDN, java.lang.String adminCA, Operation operation, boolean allow)
          Creates a new ACL entry with the given data.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAdminCA()
           
 java.lang.String getAdminDN()
           
 java.lang.String getOperationName()
           
 int hashCode()
           
 boolean isAllow()
           
 DBAdmin myGetAdmin()
          Returns the admin field of this ACL entry, or null, if it was not given.
 Operation myGetOperation()
          Returns the operation field of this ACL entry.
 void mySetAdmin(DBAdmin admin)
          Sets the admin field of this ACL entry.
 void mySetOperation(Operation operation)
          Sets the operation field of this ACL entry.
 void setAdminCA(java.lang.String adminCA)
           
 void setAdminDN(java.lang.String adminDN)
           
 void setAllow(boolean allow)
           
 void setOperationName(java.lang.String operationName)
          Sets the operation field of this ACL entry to the given string.
 java.lang.String toString()
          Prints the ACL entry.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ACLEntry

public ACLEntry()

ACLEntry

public ACLEntry(java.lang.String adminDN,
                java.lang.String adminCA,
                Operation operation,
                boolean allow)
Creates a new ACL entry with the given data.


ACLEntry

public ACLEntry(DBAdmin admin,
                Operation operation,
                boolean allow)
         throws GeneralDatabaseException
Creates a new ACL entry with the given data.

Method Detail

getAdminCA

public java.lang.String getAdminCA()

getAdminDN

public java.lang.String getAdminDN()

isAllow

public boolean isAllow()

getOperationName

public java.lang.String getOperationName()

setAdminCA

public void setAdminCA(java.lang.String adminCA)

setAdminDN

public void setAdminDN(java.lang.String adminDN)

setAllow

public void setAllow(boolean allow)

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

setOperationName

public void setOperationName(java.lang.String operationName)
Sets the operation field of this ACL entry to the given string.

Throws:
java.lang.IllegalArgumentException - (unchecked!) if there is no such operation.

mySetOperation

public void mySetOperation(Operation operation)
Sets the operation field of this ACL entry.


myGetOperation

public Operation myGetOperation()
                         throws ArgumentException
Returns the operation field of this ACL entry.

Throws:
ArgumentException

mySetAdmin

public void mySetAdmin(DBAdmin admin)
                throws GeneralDatabaseException
Sets the admin field of this ACL entry.

Throws:
GeneralDatabaseException

myGetAdmin

public DBAdmin myGetAdmin()
Returns the admin field of this ACL entry, or null, if it was not given.


toString

public java.lang.String toString()
Prints the ACL entry.