public interface

MutableAclService

implements AclService
org.springframework.security.acls.model.MutableAclService
Known Indirect Subclasses

Class Overview

Provides support for creating and storing Acl instances.

Summary

Public Methods
abstract MutableAcl createAcl(ObjectIdentity objectIdentity)
Creates an empty Acl object in the database.
abstract void deleteAcl(ObjectIdentity objectIdentity, boolean deleteChildren)
Removes the specified entry from the database.
abstract MutableAcl updateAcl(MutableAcl acl)
Changes an existing Acl in the database.
[Expand]
Inherited Methods
From interface org.springframework.security.acls.model.AclService

Public Methods

public abstract MutableAcl createAcl (ObjectIdentity objectIdentity)

Creates an empty Acl object in the database. It will have no entries. The returned object will then be used to add entries.

Parameters
objectIdentity the object identity to create
Returns
  • an ACL object with its ID set
Throws
AlreadyExistsException if the passed object identity already has a record

public abstract void deleteAcl (ObjectIdentity objectIdentity, boolean deleteChildren)

Removes the specified entry from the database.

Parameters
objectIdentity the object identity to remove
deleteChildren whether to cascade the delete to children
Throws
ChildrenExistException if the deleteChildren argument was false but children exist

public abstract MutableAcl updateAcl (MutableAcl acl)

Changes an existing Acl in the database.

Parameters
acl to modify
Throws
NotFoundException if the relevant record could not be found (did you remember to use createAcl(ObjectIdentity) to create the object, rather than creating it with the new keyword?)