public interface CustomAclService extends JsonSidConverter.SidProvider
| Modifier and Type | Interface and Description |
|---|---|
static class |
CustomAclService.AclObjectIdentityExt
Wraps
AclObjectIdentity and adds list of inherited permissions. |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupAcl()
Cleanup ACL: remove
AclEntry and AclObjectIdentity for
missing ACL-aware entities, remove obsolete AclClass. |
void |
createOrUpdatePermissions(AclAwareModel entity)
Adds the creator permissions or updates permission inheritance.
|
void |
createOrUpdatePermissions(AclAwareModel target,
AclSid ownerSid)
Adds the creator permissions or updates permission inheritance.
|
AclSid |
ensureAuthoritySid(String authority)
Gets (and creates if missing) the sid for the specified authority.
|
AclObjectIdentity |
ensureObjectIdentity(long id,
String className)
Ensure object identity.
|
List<AclEntry> |
getAclEntries(AclAwareModel entity)
Gets the acl entries.
|
List<AclEntry> |
getAclEntries(AclObjectIdentity objectIdentity)
Gets the acl entries.
|
AclSid |
getAuthoritySid(String authority)
Gets the sid for the specified authority.
|
org.springframework.security.acls.model.Permission[] |
getAvailablePermissions(String className)
Gets the available permissions.
|
AclObjectIdentity |
getObjectIdentity(AclAwareModel entity)
Gets the object identity of the entity.
|
AclObjectIdentity |
getObjectIdentity(long id)
Get object identity by internal id.
|
AclObjectIdentity |
getObjectIdentity(long id,
String className)
Gets the object identity for object of type className with specified id.
|
List<SidPermissions> |
getPermissions(AclAwareModel entity)
Gets the permissions.
|
List<SidPermissions> |
getPermissions(long id,
String className)
Gets the permissions.
|
AclSid |
getSid(Long id)
Get SID by ID.
|
Long |
getSidId(String sid)
Gets the sid id.
|
String |
getSidName(long id)
Gets the sid name.
|
List<AclSid> |
getSids(AclAwareModel entity)
Gets the sids.
|
List<AclSid> |
getSids(long id,
String className)
Gets the sids.
|
List<AclSid> |
listAuthoritySids()
List authority sids.
|
List<Long> |
listObjectIdentityIdsForSid(Class<? extends AclAwareModel> clazz,
AclSid sid,
org.springframework.security.acls.model.Permission permission)
List IDs of the specified class for the SID with specified permissions.
|
CustomAclService.AclObjectIdentityExt |
loadObjectIdentityExt(AclObjectIdentity objectIdentity)
Load object identity extended information.
|
void |
makePubliclyReadable(AclAwareModel aclAwareModel,
boolean publiclyReadable)
Make entity publicly readable (or not).
|
void |
removeAclAwareModel(AclAwareModel target)
Removes the permissions on ACL model.
|
AclSid |
removeAuthoritySid(String authorityName)
Removes the sid of the specified authority.
|
AclObjectIdentity |
removePermissions(AclObjectIdentity objectIdentity,
AclSid aclSid)
Removes the permissions for SID on ACL OID.
|
void |
removePermissionsFor(AclSid sid)
Removes the all permissions of SID.
|
AclObjectIdentity |
setAclParent(AclAwareModel target,
AclAwareModel parent)
Set ACL parent object for inherited permissions.
|
AclObjectIdentity |
setPermissions(AclAwareModel entity,
AclSid sid,
Permissions permissions)
Update permissions.
|
AclObjectIdentity |
setPermissions(AclObjectIdentity objectIdentity,
AclSid sid,
Permissions permissions)
Update permissions.
|
AclObjectIdentity |
updateInheriting(long objectIdIdentity,
boolean entriesInheriting)
Updates inheriting status of object identity.
|
AclObjectIdentity |
updateParentObject(long objectIdIdentity,
long parentObjectId)
Updates parent object of object identity.
|
org.springframework.security.acls.model.Permission[] getAvailablePermissions(String className)
className - the class nameAclSid getSid(Long id)
id - -- ID of an AclSid entityAclSid getAuthoritySid(String authority)
authority - the authority (must start with "ROLE_")AclSid ensureAuthoritySid(String authority)
authority - the authority (must start with "ROLE_")AclSid removeAuthoritySid(String authorityName)
authorityName - the authority nameList<AclSid> listAuthoritySids()
AclSid for authoritiesvoid createOrUpdatePermissions(AclAwareModel entity)
entity - the targetvoid createOrUpdatePermissions(AclAwareModel target, AclSid ownerSid)
target - the ACL entityownerSid - OwnerAclObjectIdentity updateInheriting(long objectIdIdentity, boolean entriesInheriting)
objectIdIdentity - the id of object identityentriesInheriting - the inheriting statusAclObjectIdentity updateParentObject(long objectIdIdentity, long parentObjectId)
objectIdIdentity - the id of object identityparentObjectId - the id of parent object identityAclObjectIdentity setAclParent(AclAwareModel target, AclAwareModel parent)
target - the target ACL object on which to change ACLparent - the parent ACL objectvoid removeAclAwareModel(AclAwareModel target)
target - the targetvoid removePermissionsFor(AclSid sid)
sid - the sidAclObjectIdentity getObjectIdentity(long id)
id - AclObjectIdentity idAclObjectIdentity getObjectIdentity(long id, String className)
id - the idclassName - the clazzAclObjectIdentity getObjectIdentity(AclAwareModel entity)
entity - the entityList<SidPermissions> getPermissions(long id, String className)
id - the idclassName - the class nameList<SidPermissions> getPermissions(AclAwareModel entity)
entity - the entityList<AclEntry> getAclEntries(AclObjectIdentity objectIdentity)
objectIdentity - the object identityAclObjectIdentity setPermissions(AclAwareModel entity, AclSid sid, Permissions permissions)
entity - the entitysid - the sidpermissions - the permissionsAclObjectIdentity setPermissions(AclObjectIdentity objectIdentity, AclSid sid, Permissions permissions)
objectIdentity - the object identitysid - the sidpermissions - the permissionsAclObjectIdentity removePermissions(AclObjectIdentity objectIdentity, AclSid aclSid)
objectIdentity - the object identityaclSid - the acl sidList<AclEntry> getAclEntries(AclAwareModel entity)
entity - the entityList<AclSid> getSids(long id, String className)
id - the idclassName - the class nameList<AclSid> getSids(AclAwareModel entity)
entity - the entityAclObjectIdentity ensureObjectIdentity(long id, String className)
id - the object id identityclassName - the class nameList<Long> listObjectIdentityIdsForSid(Class<? extends AclAwareModel> clazz, AclSid sid, org.springframework.security.acls.model.Permission permission)
clazz - the clazzsid - the sidpermission - the permissionvoid makePubliclyReadable(AclAwareModel aclAwareModel, boolean publiclyReadable)
aclAwareModel - The entitypubliclyReadable - true or false?void cleanupAcl()
AclEntry and AclObjectIdentity for
missing ACL-aware entities, remove obsolete AclClass.String getSidName(long id)
getSidName in interface JsonSidConverter.SidProviderid - the idCustomAclService.AclObjectIdentityExt loadObjectIdentityExt(AclObjectIdentity objectIdentity)
objectIdentity - the object identityCopyright © 2021 Global Crop Diversity Trust. All rights reserved.