|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.acls.jdbc.JdbcAclService
org.squashtest.tm.service.security.acls.jdbc.JdbcManageableAclService
@Transactional public class JdbcManageableAclService
When one update the Acl of an object (ie the permissions of a user), one want to refresh the aclCache if there is one. The right way to do this would have been to delegate such task to the LookupStrategy when it's relevant to do so. However we cannot subclass BasicLookupStrategy because it's final and duplicating its code for a class of ours would be illegal. So we're bypassing the cache encapsulation and expose it right here.
| Field Summary |
|---|
| Fields inherited from class org.springframework.security.acls.jdbc.JdbcAclService |
|---|
jdbcTemplate, log |
| Constructor Summary | |
|---|---|
JdbcManageableAclService(DataSource dataSource,
org.springframework.security.acls.jdbc.LookupStrategy lookupStrategy)
|
|
| Method Summary | |
|---|---|
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 |
void |
setAclCache(org.springframework.security.acls.model.AclCache aclCache)
|
void |
updateDerivedPermissions(long partyId)
|
| Methods inherited from class org.springframework.security.acls.jdbc.JdbcAclService |
|---|
findChildren, readAclById, readAclById, readAclsById, readAclsById, setFindChildrenQuery |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcManageableAclService(DataSource dataSource,
org.springframework.security.acls.jdbc.LookupStrategy lookupStrategy)
| Method Detail |
|---|
public void setAclCache(org.springframework.security.acls.model.AclCache aclCache)
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)
ObjectAclService
removeAllResponsibilities in interface ObjectAclServicepublic void removeAllResponsibilities(long partyId)
ObjectAclService
removeAllResponsibilities in interface ObjectAclService
public void removeAllResponsibilities(@NotNull
long partyId,
@NotNull
org.springframework.security.acls.model.ObjectIdentity entityRef)
removeAllResponsibilities in interface ObjectAclServicepartyId - objectIdentity - public void updateDerivedPermissions(long partyId)
updateDerivedPermissions in interface ObjectAclService
public void createObjectIdentity(@NotNull
org.springframework.security.acls.model.ObjectIdentity objectIdentity)
throws org.springframework.security.acls.model.AlreadyExistsException
ManageableAclService
createObjectIdentity in interface ManageableAclServiceorg.springframework.security.acls.model.AlreadyExistsException
public List<org.squashtest.tm.security.acls.PermissionGroup> findAllPermissionGroupsByNamespace(@NotNull
String namespace)
findAllPermissionGroupsByNamespace in interface ObjectAclService
public List<Object[]> retrieveClassAclGroupFromPartyId(@NotNull
long partyId,
String qualifiedClassName)
retrieveClassAclGroupFromPartyId in interface ObjectAclService
public List<Object[]> retrieveClassAclGroupFromPartyId(long partyId,
List<String> qualifiedClassNames)
retrieveClassAclGroupFromPartyId in interface ObjectAclService
public List<Object[]> retrieveClassAclGroupFromUserLogin(String userLogin,
String qualifiedClassName)
retrieveClassAclGroupFromUserLogin in interface ObjectAclService
public List<Object[]> retrieveClassAclGroupFromUserLogin(String userLogin,
List<String> qualifiedClassNames)
retrieveClassAclGroupFromUserLogin in interface ObjectAclService
public 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 ObjectAclService
public 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 ObjectAclService
public List<Long> findObjectWithoutPermissionByPartyId(long partyId,
String qualifiedClass)
findObjectWithoutPermissionByPartyId in interface ObjectAclService
public 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 ObjectAclService
public 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)
ObjectAclService
retrievePartyAndAclGroupNameFromIdentityAndClass in interface ObjectAclService
public 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 version
retrievePartyAndAclGroupNameFromIdentityAndClass in interface ObjectAclService
public List<Long> findPartiesWithoutPermissionByObject(long objectId,
String qualifiedClassName)
findPartiesWithoutPermissionByObject in interface ObjectAclService
public List<Long> findPartiesWithoutPermissionByObject(long objectId,
List<String> qualifiedClassNames)
findPartiesWithoutPermissionByObject in interface ObjectAclServicepublic void refreshAcls()
ObjectAclService
refreshAcls in interface ObjectAclService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||