public interface CustomAclService
| Modifier and Type | Method and Description |
|---|---|
void |
addCreatorPermissions(AclAwareModel target)
Adds the creator permissions.
|
boolean |
addPermissions(AclAwareModel entity,
AclSid sid,
Map<Integer,Boolean> permissionMap)
Adds the permissions.
|
boolean |
addPermissions(long objectIdIdentity,
String className,
AclSid sid,
Map<Integer,Boolean> permissions)
Adds the permissions.
|
Map<Integer,Boolean> |
blankPermissionsMap()
Utility method that creates a non-granting permission map
|
AclObjectIdentity |
ensureObjectIdentity(String className,
long objectIdIdentity)
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 of the specified authority
|
org.springframework.security.acls.model.Permission[] |
getAvailablePermissions(String className)
Gets the available permissions.
|
AclObjectIdentity |
getObjectIdentity(AclAwareModel entity)
Gets the object identity.
|
AclObjectIdentity |
getObjectIdentity(String clazz,
long id)
Gets the object identity.
|
Map<String,Map<Integer,Boolean>> |
getPermissions(AclAwareModel entity)
Gets the permissions.
|
Map<String,Map<Integer,Boolean>> |
getPermissions(long id,
String className)
Gets the permissions.
|
AclSid |
getSid(Long id)
Get SID by ID
|
List<AclSid> |
getSids(AclAwareModel entity)
Gets the sids.
|
List<AclSid> |
getSids(long id,
String className)
Gets the 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.
|
void |
removePermissions(AclAwareModel target)
Removes the permissions on ACL model.
|
void |
removePermissionsFor(AclSid sid)
Removes the all permissions of SID.
|
void |
updatePermissions(AclAwareModel entity,
AclSid sid,
Map<Integer,Boolean> permissionMap)
Update permissions.
|
void |
updatePermissions(AclObjectIdentity objectIdentity,
AclSid sid,
Map<Integer,Boolean> permissionMap) |
AclSid getSid(Long id)
id - -- ID of an AclSid entityAclSid getAuthoritySid(String authority)
authority - the authorityvoid addCreatorPermissions(AclAwareModel target)
target - the targetvoid removePermissions(AclAwareModel target)
target - the targetvoid removePermissionsFor(AclSid sid)
sid - the sidAclObjectIdentity getObjectIdentity(String clazz, long id)
clazz - the clazzid - the idAclObjectIdentity getObjectIdentity(AclAwareModel entity)
entity - the entityorg.springframework.security.acls.model.Permission[] getAvailablePermissions(String className)
className - the class nameMap<String,Map<Integer,Boolean>> getPermissions(long id, String className)
id - the idclassName - the class nameMap<String,Map<Integer,Boolean>> getPermissions(AclAwareModel entity)
entity - the entityList<AclEntry> getAclEntries(AclObjectIdentity objectIdentity)
objectIdentity - the object identityvoid updatePermissions(AclAwareModel entity, AclSid sid, Map<Integer,Boolean> permissionMap)
entity - the entitysid - the sidpermissionMap - the permission mapvoid updatePermissions(AclObjectIdentity objectIdentity, AclSid sid, Map<Integer,Boolean> permissionMap)
List<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 entityboolean addPermissions(long objectIdIdentity,
String className,
AclSid sid,
Map<Integer,Boolean> permissions)
objectIdIdentity - the object id identityclassName - the class namesid - TODOpermissions - the permissionsboolean addPermissions(AclAwareModel entity, AclSid sid, Map<Integer,Boolean> permissionMap)
entity - the entitysid - the sidpermissionMap - the permission mapAclObjectIdentity ensureObjectIdentity(String className, long objectIdIdentity)
className - the class nameobjectIdIdentity - the object id identityList<Long> listObjectIdentityIdsForSid(Class<? extends AclAwareModel> clazz, AclSid sid, org.springframework.security.acls.model.Permission permission)
clazz - the clazzsid - the sidpermission - the permissionCopyright © 2018 Global Crop Diversity Trust. All rights reserved.