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

java.lang.Object
  extended by org.apache.directory.api.ldap.aci.ACIItem
      extended by org.apache.directory.api.ldap.aci.ItemFirstACIItem

public class ItemFirstACIItem
extends ACIItem

An ACIItem which specifies ProtectedItems first and then UserClasses each ProtectedItem will have. (18.4.2.4. X.501)

Author:
Apache Directory Project

Constructor Summary
ItemFirstACIItem(String identificationTag, int precedence, org.apache.directory.api.ldap.model.constants.AuthenticationLevel authenticationLevel, Collection<ProtectedItem> protectedItems, Collection<ItemPermission> itemPermissions)
          Creates a new instance.
 
Method Summary
 Collection<ItemPermission> getItemPermissions()
          Gets the collection of ItemPermissions.
 Collection<ProtectedItem> getProtectedItems()
          Gets the collection of ProtectedItems.
 String toString()
          
 Collection<ACITuple> toTuples()
          Transform this protected Item and permissions to a set of Tuples
 
Methods inherited from class org.apache.directory.api.ldap.aci.ACIItem
getAuthenticationLevel, getIdentificationTag, getPrecedence, toMicroOperations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ItemFirstACIItem

public ItemFirstACIItem(String identificationTag,
                        int precedence,
                        org.apache.directory.api.ldap.model.constants.AuthenticationLevel authenticationLevel,
                        Collection<ProtectedItem> protectedItems,
                        Collection<ItemPermission> itemPermissions)
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
protectedItems - the collection of ProtectedItems this item protects
itemPermissions - the collection of ItemPermissions each protectedItems will have
Method Detail

getProtectedItems

public Collection<ProtectedItem> getProtectedItems()
Gets the collection of ProtectedItems.

Returns:
the collection of ProtectedItems

getItemPermissions

public Collection<ItemPermission> getItemPermissions()
Gets the collection of ItemPermissions.

Returns:
the collection of ItemPermissions

toString

public String toString()

Overrides:
toString in class ACIItem

toTuples

public Collection<ACITuple> toTuples()
Transform this protected Item and permissions to a set of Tuples

Specified by:
toTuples in class ACIItem
Returns:
The list of created Tuples


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