org.apache.chemistry.opencmis.commons.impl.dataobjects
Class AccessControlEntryImpl

java.lang.Object
  extended by org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractExtensionData
      extended by org.apache.chemistry.opencmis.commons.impl.dataobjects.AccessControlEntryImpl
All Implemented Interfaces:
Serializable, Ace, ExtensionsData

public class AccessControlEntryImpl
extends AbstractExtensionData
implements Ace, Serializable

Access Control Entry data implementation.

See Also:
Serialized Form

Constructor Summary
AccessControlEntryImpl()
          Constructor.
AccessControlEntryImpl(Principal principal, List<String> permissions)
          Constructor.
 
Method Summary
 List<String> getPermissions()
          Returns the permissions granted to the principal.
 Principal getPrincipal()
          Returns the ACE principal.
 String getPrincipalId()
          Returns the ACE principal id.
 boolean isDirect()
          Indicates if the ACE was directly applied to the object or has been inherited from another object (e.g.
 void setDirect(boolean direct)
           
 void setPermissions(List<String> permissions)
           
 void setPrincipal(Principal principal)
           
 String toString()
           
 
Methods inherited from class org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractExtensionData
getExtensions, setExtensions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.chemistry.opencmis.commons.data.ExtensionsData
getExtensions, setExtensions
 

Constructor Detail

AccessControlEntryImpl

public AccessControlEntryImpl()
Constructor.


AccessControlEntryImpl

public AccessControlEntryImpl(Principal principal,
                              List<String> permissions)
Constructor.

Method Detail

getPrincipal

public Principal getPrincipal()
Description copied from interface: Ace
Returns the ACE principal.

Specified by:
getPrincipal in interface Ace

getPrincipalId

public String getPrincipalId()
Description copied from interface: Ace
Returns the ACE principal id. Shortcut for getPrincipal().getId().

Specified by:
getPrincipalId in interface Ace

setPrincipal

public void setPrincipal(Principal principal)

getPermissions

public List<String> getPermissions()
Description copied from interface: Ace
Returns the permissions granted to the principal.

Specified by:
getPermissions in interface Ace

setPermissions

public void setPermissions(List<String> permissions)

isDirect

public boolean isDirect()
Description copied from interface: Ace
Indicates if the ACE was directly applied to the object or has been inherited from another object (e.g. from the folder it resides in).

Specified by:
isDirect in interface Ace

setDirect

public void setDirect(boolean direct)

toString

public String toString()
Overrides:
toString in class AbstractExtensionData


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.