public class ACL
extends java.lang.Object
Constructor and Description |
---|
ACL()
Default constructor
|
ACL(ACE ace)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addACE(ACE ace)
Add an access control entry (ACE) to the ACL
|
void |
deleteACE(ACE ace)
Delete an access control entry from the ACL
|
void |
deleteACE(int idx)
Delete an access control entry from the ACL
|
void |
deleteAllACEs()
Delete all access control entries from the ACL
|
ACE |
getACE(int idx)
Return the required access control entry from the ACL
|
int |
getRevision()
Return the revision
|
int |
loadACL(byte[] buf,
int off)
Load the access control list from the specified buffer
|
int |
loadACL(DataBuffer buf)
Load the access control list from the specified buffer
|
int |
numberOfEntries()
Return the count of access control entries
|
int |
saveACL(byte[] buf,
int off)
Save the access control list to the specified buffer
|
int |
saveACL(DataBuffer buf)
Save the access control list to the specified buffer
|
java.lang.String |
toString()
Return the ACL as a string
|
public ACL()
public ACL(ACE ace)
ace
- ACEpublic final int getRevision()
public final int numberOfEntries()
public final void addACE(ACE ace)
ace
- ACEpublic final ACE getACE(int idx)
idx
- intpublic final void deleteACE(ACE ace)
ace
- ACEpublic final void deleteACE(int idx)
idx
- intpublic final void deleteAllACEs()
public final int loadACL(byte[] buf, int off) throws LoadException
buf
- byte[]off
- intLoadException
public final int loadACL(DataBuffer buf) throws LoadException
buf
- DataBufferLoadException
public final int saveACL(byte[] buf, int off) throws SaveException
buf
- byte[]off
- intSaveException
public final int saveACL(DataBuffer buf) throws SaveException
buf
- DataBufferoff
- intSaveException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.