Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api.security.impl
Class ACLImpl

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<ACE>
              extended by org.nuxeo.ecm.core.api.security.impl.ACLImpl
All Implemented Interfaces:
Serializable, Cloneable, Iterable<ACE>, Collection<ACE>, List<ACE>, RandomAccess, ACL

public class ACLImpl
extends ArrayList<ACE>
implements ACL

An ACL implementation.

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.nuxeo.ecm.core.api.security.ACL
INHERITED_ACL, LOCAL_ACL
 
Constructor Summary
ACLImpl()
           
ACLImpl(String name)
           
ACLImpl(String name, boolean isReadOnly)
           
 
Method Summary
 Object clone()
          Returns a recursive copy of the ACL sharing no mutable substructure with the original.
 ACE[] getACEs()
          Gets the ACEs defined by this list as an array.
 String getName()
          Gets the ACL name.
 boolean isReadOnly()
           
 void setACEs(ACE[] aces)
          Sets the ACEs defined by this ACL.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

ACLImpl

public ACLImpl(String name,
               boolean isReadOnly)

ACLImpl

public ACLImpl()

ACLImpl

public ACLImpl(String name)
Method Detail

getName

public String getName()
Description copied from interface: ACL
Gets the ACL name.

Specified by:
getName in interface ACL
Returns:
the ACL name

getACEs

public ACE[] getACEs()
Description copied from interface: ACL
Gets the ACEs defined by this list as an array.

Specified by:
getACEs in interface ACL
Returns:

setACEs

public void setACEs(ACE[] aces)
Description copied from interface: ACL
Sets the ACEs defined by this ACL.

Specified by:
setACEs in interface ACL
Parameters:
aces - the ACE array

isReadOnly

public boolean isReadOnly()

clone

public Object clone()
Description copied from interface: ACL
Returns a recursive copy of the ACL sharing no mutable substructure with the original.

Specified by:
clone in interface ACL
Overrides:
clone in class ArrayList<ACE>
Returns:
a copy

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.