public interface MutableAcl extends Acl
Acl
.
A mutable ACL must ensure that appropriate security checks are performed before allowing access to its methods.
Modifier and Type | Method and Description |
---|---|
void |
deleteAce(Serializable aceId) |
AccessControlEntry[] |
getEntries()
Retrieves all of the non-deleted
AccessControlEntry instances currently stored by the
MutableAcl . |
Serializable |
getId()
Obtains an identifier that represents this
MutableAcl . |
void |
insertAce(Serializable afterAceId,
Permission permission,
Sid sid,
boolean granting) |
void |
setEntriesInheriting(boolean entriesInheriting)
Change the value returned by
Acl.isEntriesInheriting() . |
void |
setParent(Acl newParent)
Changes the parent of this ACL.
|
void |
updateAce(Serializable aceId,
Permission permission) |
getObjectIdentity, getOwner, getParentAcl, isEntriesInheriting, isGranted, isSidLoaded
void deleteAce(Serializable aceId) throws NotFoundException
NotFoundException
AccessControlEntry[] getEntries()
AccessControlEntry
instances currently stored by the
MutableAcl
. The returned objects should be immutable outside the package, and therefore it is safe
to return them to the caller for informational purposes. The AccessControlEntry
information is
needed so that invocations of update and delete methods on the MutableAcl
can refer to a valid
AccessControlEntry.getId()
.getEntries
in interface Acl
Serializable getId()
MutableAcl
.null
if unsavedvoid insertAce(Serializable afterAceId, Permission permission, Sid sid, boolean granting) throws NotFoundException
NotFoundException
void setEntriesInheriting(boolean entriesInheriting)
Acl.isEntriesInheriting()
.entriesInheriting
- the new valuevoid setParent(Acl newParent)
newParent
- the new parentvoid updateAce(Serializable aceId, Permission permission) throws NotFoundException
NotFoundException
Copyright © 2017. All rights reserved.