org.apache.directory.api.ldap.aci
Class ACIItem

java.lang.Object
  extended by org.apache.directory.api.ldap.aci.ACIItem
Direct Known Subclasses:
ItemFirstACIItem, UserFirstACIItem

public abstract class ACIItem
extends Object

An abstract class that provides common properties and operations for ItemFirstACIItem and UserFirstACIItem as specified X.501 specification.

Author:
Apache Directory Project

Constructor Summary
protected ACIItem(String identificationTag, int precedence, org.apache.directory.api.ldap.model.constants.AuthenticationLevel authenticationLevel)
          Creates a new instance
 
Method Summary
 org.apache.directory.api.ldap.model.constants.AuthenticationLevel getAuthenticationLevel()
          Gets the level of authentication required to this item.
 String getIdentificationTag()
          Gets the id string of this item.
 int getPrecedence()
          Gets the precedence of this item.
protected static Collection<MicroOperation> toMicroOperations(Collection<GrantAndDenial> grantsAndDenials)
          Converts a collection of GrantAndDenials into a collection of MicroOperations.
 String toString()
          
abstract  Collection<ACITuple> toTuples()
          Converts this item into a collection of ACITuples.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ACIItem

protected ACIItem(String identificationTag,
                  int precedence,
                  org.apache.directory.api.ldap.model.constants.AuthenticationLevel authenticationLevel)
Creates a new instance

Parameters:
identificationTag - the id string of this item
precedence - the precedence of this item
authenticationLevel - the level of authentication required to this item
Method Detail

getIdentificationTag

public String getIdentificationTag()
Gets the id string of this item.

Returns:
the identification tag

getPrecedence

public int getPrecedence()
Gets the precedence of this item.

Returns:
the precedence

getAuthenticationLevel

public org.apache.directory.api.ldap.model.constants.AuthenticationLevel getAuthenticationLevel()
Gets the level of authentication required to this item.

Returns:
the authentication level

toTuples

public abstract Collection<ACITuple> toTuples()
Converts this item into a collection of ACITuples.

Returns:
the converted collection of ACITuple

toMicroOperations

protected static Collection<MicroOperation> toMicroOperations(Collection<GrantAndDenial> grantsAndDenials)
Converts a collection of GrantAndDenials into a collection of MicroOperations.

Parameters:
grantsAndDenials - the grants and denials
Returns:
the collection of MicroOperations

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.