org.edg.security.voms.service
Class ACLEntryHelper

java.lang.Object
  |
  +--org.edg.security.voms.service.ACLEntry
        |
        +--org.edg.security.voms.service.ACLEntryHelper

public class ACLEntryHelper
extends ACLEntry

Convenience functions for ACLEntry.

Version:
$Name: v0_7_0 $
Author:
Akos Frohner, Karoly Lorentey

Field Summary
private static org.apache.log4j.Logger log
          Logger.
 
Constructor Summary
ACLEntryHelper(ACLEntry entry)
          Creates a new enhanced ACL entry from the given ACL entry.
ACLEntryHelper(java.lang.String adminDN, java.lang.String adminCA, Operation operation, boolean allow)
          Creates a new ACL entry with the given data.
 
Method Summary
 Operation getOperation()
          Returns the operation field of this ACL entry.
 void setOperation(Operation operation)
          Sets the operation field of this ACL entry.
 void setOperationName(java.lang.String operation)
          Sets the operation field of this ACL entry to the given string.
 java.lang.String toString()
          Prints the ACL entry.
 
Methods inherited from class org.edg.security.voms.service.ACLEntry
getAdminCA, getAdminDN, getOperationName, isAllow, setAdminCA, setAdminDN, setAllow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static final transient org.apache.log4j.Logger log
Logger.

Constructor Detail

ACLEntryHelper

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


ACLEntryHelper

public ACLEntryHelper(ACLEntry entry)
               throws ArgumentException
Creates a new enhanced ACL entry from the given ACL entry.

Throws:
ArgumentException - if there is no operation corresponding to the given integer. Calls to this should be eliminated, if possible.
Method Detail

setOperationName

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

Overrides:
setOperationName in class ACLEntry
Throws:
java.lang.IllegalArgumentException - (unchecked!) if there is no such operation.

setOperation

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


getOperation

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

ArgumentException

toString

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

Overrides:
toString in class java.lang.Object