public class NSFACL extends NSFHandle
Constructor and Description |
---|
NSFACL(NSFDatabase parent,
long handle) |
Modifier and Type | Method and Description |
---|---|
List<NSFACLEntry> |
getEntries()
Returns a list of entries in the ACL, sorted with -Default- first and then case-insensitively by name (like the ACL dialog).
|
List<NSFACLHistoryEntry> |
getHistory()
Returns the ACL update history.
|
NSFDateTime |
getLastModified()
Returns the date that the ACL was last modified, according to its note.
|
protected NSFDatabase |
getParent() |
List<String> |
getRoles()
Returns a list of roles in the database, ignoring the pre-R4 roles.
|
_checkRefValidity, doFree, equals, getHandle, getSession, hashCode, isRefValid, setHandle, toString
addChild, addChildStruct, debugPrintChildHierarchy, finalize, free, free, free, getAPI, getChildObjectCount, getChildObjectCount, getChildStructCount, isFreed, isTraceCreation, removeChild, removeChildStruct, removeFromParent, retain, setNeedsFree, setTraceCreation
public NSFACL(NSFDatabase parent, long handle)
protected NSFDatabase getParent()
public List<NSFACLEntry> getEntries() throws DominoException
List
of NSFACLEntry
objectsDominoException
- if there is a problem reading the database ACLpublic List<String> getRoles() throws DominoException
List
of String
sDominoException
- if there is a problem building the role listpublic List<NSFACLHistoryEntry> getHistory() throws DominoException
Note: due to the fact that these entries are stored in locale-specific format with no indication of locale, the date/times are parsed using the server's current locale. If they're un-parseable that way (for example, a date of "15/1/2017" on a US-locale server), the entry is skipped.
List
of NSFACLHistoryEntry
objectsDominoException
- if there is a problem retrieving the ACL historypublic NSFDateTime getLastModified() throws DominoException
NSFDateTime
for when the ACL note was last modifiedDominoException
- if there is a problem reading the noteCopyright © 2014–2018. All rights reserved.