@Service(value="squashtest.core.security.AclService") @Transactional public class JdbcManageableAclService extends org.springframework.security.acls.jdbc.JdbcAclService implements ManageableAclService, ObjectAclService
| Constructor and Description |
|---|
JdbcManageableAclService(DataSource dataSource,
org.springframework.security.acls.jdbc.LookupStrategy lookupStrategy,
org.springframework.security.acls.model.AclCache aclCache,
org.squashtest.tm.service.security.acls.jdbc.DerivedPermissionsManager derivedManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewResponsibility(long partyId,
org.springframework.security.acls.model.ObjectIdentity entityRef,
String qualifiedName) |
void |
createObjectIdentity(org.springframework.security.acls.model.ObjectIdentity objectIdentity)
Creates (persists) a not noll, not existing object identity
|
protected void |
evictFromCache(org.springframework.security.acls.model.ObjectIdentity oIdentity) |
List<org.squashtest.tm.security.acls.PermissionGroup> |
findAllPermissionGroupsByNamespace(String namespace) |
List<Long> |
findObjectWithoutPermissionByPartyId(long partyId,
List<String> qualifiedClasses)
Only a size of 1 or 2 is supported for now for the second parameter.
|
List<Long> |
findObjectWithoutPermissionByPartyId(long partyId,
String qualifiedClass) |
List<Long> |
findPartiesWithoutPermissionByObject(long objectId,
List<String> qualifiedClassNames)
Only a size of 1 or 2 is supported for now for the second parameter.
|
List<Long> |
findPartiesWithoutPermissionByObject(long objectId,
String qualifiedClassName) |
List<String> |
findUsersWithExecutePermission(List<org.springframework.security.acls.model.ObjectIdentity> entityRefs) |
List<String> |
findUsersWithWritePermission(List<org.springframework.security.acls.model.ObjectIdentity> entityRefs) |
void |
refreshAcls()
basically ensures that recent modification affecting the ACL will be taken into account immediately.
|
void |
removeAllResponsibilities(long partyId)
Remove all responsibilities for the Party of the given Id
|
void |
removeAllResponsibilities(long partyId,
org.springframework.security.acls.model.ObjectIdentity entityRef)
Removes all responsibilities a user might have on a entity.
|
void |
removeAllResponsibilities(org.springframework.security.acls.model.ObjectIdentity entityRef)
Removes ALL RESPONSIBILITIES from the given object.
|
void |
removeObjectIdentity(org.springframework.security.acls.model.ObjectIdentity objectIdentity) |
List<Object[]> |
retrieveClassAclGroupFromPartyId(long partyId,
List<String> qualifiedClassNames)
Only a size of 1 or 2 is supported for now for the second parameter.
|
List<Object[]> |
retrieveClassAclGroupFromPartyId(long partyId,
List<String> qualifiedClassNames,
org.squashtest.tm.core.foundation.collection.Sorting sorting,
org.squashtest.tm.core.foundation.collection.Filtering filtering)
Only a size of 1 or 2 is supported for now for the second parameter.
|
List<Object[]> |
retrieveClassAclGroupFromPartyId(long partyId,
String qualifiedClassName) |
List<Object[]> |
retrieveClassAclGroupFromPartyId(long partyId,
String qualifiedClassName,
org.squashtest.tm.core.foundation.collection.Sorting sorting,
org.squashtest.tm.core.foundation.collection.Filtering filtering) |
List<Object[]> |
retrieveClassAclGroupFromUserLogin(String userLogin,
List<String> qualifiedClassNames) |
List<Object[]> |
retrieveClassAclGroupFromUserLogin(String userLogin,
String qualifiedClassName) |
List<Object[]> |
retrievePartyAndAclGroupNameFromIdentityAndClass(long entityId,
Class<?> entityClass)
Will find squash User ids and theirs permission names for the given acl_object_identity.identity and acl_object_identity.className
|
List<Object[]> |
retrievePartyAndAclGroupNameFromIdentityAndClass(long entityId,
Class<?> entityClass,
org.squashtest.tm.core.foundation.collection.Sorting sorting,
org.squashtest.tm.core.foundation.collection.Filtering filtering)
Same as
#retriveUserAndAclGroupNameFromIdentityAndClass(long, Class), sorted and filtered version |
List<Object[]> |
retrieveUsersFromIdentityAndClass(long entityId) |
void |
updateDerivedPermissions(long partyId) |
@Inject public JdbcManageableAclService(DataSource dataSource, org.springframework.security.acls.jdbc.LookupStrategy lookupStrategy, org.springframework.security.acls.model.AclCache aclCache, org.squashtest.tm.service.security.acls.jdbc.DerivedPermissionsManager derivedManager)
public void addNewResponsibility(@NotNull
long partyId,
@NotNull
org.springframework.security.acls.model.ObjectIdentity entityRef,
@NotNull
String qualifiedName)
addNewResponsibility in interface ObjectAclServicepublic void removeObjectIdentity(org.springframework.security.acls.model.ObjectIdentity objectIdentity)
removeObjectIdentity in interface ManageableAclServicepublic void removeAllResponsibilities(org.springframework.security.acls.model.ObjectIdentity entityRef)
ObjectAclServiceremoveAllResponsibilities in interface ObjectAclServicepublic void removeAllResponsibilities(long partyId)
ObjectAclServiceremoveAllResponsibilities in interface ObjectAclServicepublic void removeAllResponsibilities(@NotNull
long partyId,
@NotNull
org.springframework.security.acls.model.ObjectIdentity entityRef)
removeAllResponsibilities in interface ObjectAclServicepartyId - entityRef - public void updateDerivedPermissions(long partyId)
updateDerivedPermissions in interface ObjectAclServicepublic void createObjectIdentity(@NotNull
org.springframework.security.acls.model.ObjectIdentity objectIdentity)
throws org.springframework.security.acls.model.AlreadyExistsException
ManageableAclServicecreateObjectIdentity in interface ManageableAclServiceorg.springframework.security.acls.model.AlreadyExistsExceptionpublic List<org.squashtest.tm.security.acls.PermissionGroup> findAllPermissionGroupsByNamespace(@NotNull String namespace)
findAllPermissionGroupsByNamespace in interface ObjectAclServicepublic List<Object[]> retrieveClassAclGroupFromPartyId(@NotNull long partyId, String qualifiedClassName)
retrieveClassAclGroupFromPartyId in interface ObjectAclServicepublic List<Object[]> retrieveClassAclGroupFromPartyId(long partyId, List<String> qualifiedClassNames)
retrieveClassAclGroupFromPartyId in interface ObjectAclServicepublic List<Object[]> retrieveClassAclGroupFromUserLogin(String userLogin, String qualifiedClassName)
retrieveClassAclGroupFromUserLogin in interface ObjectAclServicepublic List<Object[]> retrieveClassAclGroupFromUserLogin(String userLogin, List<String> qualifiedClassNames)
retrieveClassAclGroupFromUserLogin in interface ObjectAclServicepublic List<Object[]> retrieveClassAclGroupFromPartyId(@NotNull long partyId, String qualifiedClassName, org.squashtest.tm.core.foundation.collection.Sorting sorting, org.squashtest.tm.core.foundation.collection.Filtering filtering)
retrieveClassAclGroupFromPartyId in interface ObjectAclServicepublic List<Object[]> retrieveClassAclGroupFromPartyId(long partyId, List<String> qualifiedClassNames, org.squashtest.tm.core.foundation.collection.Sorting sorting, org.squashtest.tm.core.foundation.collection.Filtering filtering)
retrieveClassAclGroupFromPartyId in interface ObjectAclServicepublic List<Long> findObjectWithoutPermissionByPartyId(long partyId, String qualifiedClass)
findObjectWithoutPermissionByPartyId in interface ObjectAclServicepublic List<Long> findObjectWithoutPermissionByPartyId(long partyId, List<String> qualifiedClasses)
findObjectWithoutPermissionByPartyId in interface ObjectAclServicepublic List<String> findUsersWithExecutePermission(List<org.springframework.security.acls.model.ObjectIdentity> entityRefs)
findUsersWithExecutePermission in interface ObjectAclServicepublic List<String> findUsersWithWritePermission(@NotNull List<org.springframework.security.acls.model.ObjectIdentity> entityRefs)
findUsersWithWritePermission in interface ObjectAclServiceprotected void evictFromCache(org.springframework.security.acls.model.ObjectIdentity oIdentity)
public List<Object[]> retrievePartyAndAclGroupNameFromIdentityAndClass(long entityId, Class<?> entityClass)
ObjectAclServiceretrievePartyAndAclGroupNameFromIdentityAndClass in interface ObjectAclServicepublic List<Object[]> retrieveUsersFromIdentityAndClass(long entityId)
retrieveUsersFromIdentityAndClass in interface ObjectAclServicepublic List<Object[]> retrievePartyAndAclGroupNameFromIdentityAndClass(long entityId, Class<?> entityClass, org.squashtest.tm.core.foundation.collection.Sorting sorting, org.squashtest.tm.core.foundation.collection.Filtering filtering)
ObjectAclService#retriveUserAndAclGroupNameFromIdentityAndClass(long, Class), sorted and filtered versionretrievePartyAndAclGroupNameFromIdentityAndClass in interface ObjectAclServicepublic List<Long> findPartiesWithoutPermissionByObject(long objectId, String qualifiedClassName)
findPartiesWithoutPermissionByObject in interface ObjectAclServicepublic List<Long> findPartiesWithoutPermissionByObject(long objectId, List<String> qualifiedClassNames)
findPartiesWithoutPermissionByObject in interface ObjectAclServicepublic void refreshAcls()
ObjectAclServicerefreshAcls in interface ObjectAclServiceCopyright © 2010–2017 Henix, henix.fr. All rights reserved.