|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.tm.service.internal.security.AclPermissionEvaluationService
@Service(value="squashtest.core.security.PermissionEvaluationService") @Transactional(readOnly=true) public class AclPermissionEvaluationService
| Constructor Summary | |
|---|---|
AclPermissionEvaluationService()
|
|
| Method Summary | |
|---|---|
boolean |
canRead(Object object)
short hand for hasRoleOrPermissionOnObject('ROLE_ADMIN', 'READ', object); |
boolean |
hasMoreThanRead(Object object)
return true if the user has more than readonly on the object |
boolean |
hasPermissionOnObject(String permissionName,
Long entityId,
String entityClassName)
returns true if the current user has the given permission on the object of the given id and classname. |
boolean |
hasRole(String role)
return true if the user has the given role. |
boolean |
hasRoleOrPermissionOnObject(String role,
String permissionName,
Long entityId,
String entityClassName)
Same as PermissionEvaluationService.hasRoleOrPermissionOnObject(String, String, Object), except that Object is explicitly identified
by its ID and classname |
boolean |
hasRoleOrPermissionOnObject(String role,
String permissionName,
Object object)
|
Map<org.springframework.security.acls.model.Permission,Boolean> |
listPermissionsOnObject(Object object)
returns all existing permissions and says which of those the user is granted on the given object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AclPermissionEvaluationService()
| Method Detail |
|---|
public boolean hasRoleOrPermissionOnObject(String role,
String permissionName,
Object object)
hasRoleOrPermissionOnObject in interface PermissionEvaluationServicepermissionName - String representation of the permission.
public boolean hasRoleOrPermissionOnObject(String role,
String permissionName,
Long entityId,
String entityClassName)
PermissionEvaluationServicePermissionEvaluationService.hasRoleOrPermissionOnObject(String, String, Object), except that Object is explicitly identified
by its ID and classname
hasRoleOrPermissionOnObject in interface PermissionEvaluationServicepublic boolean canRead(Object object)
PermissionEvaluationService
canRead in interface PermissionEvaluationServicepublic boolean hasRole(String role)
PermissionEvaluationService
hasRole in interface PermissionEvaluationServicepublic boolean hasMoreThanRead(Object object)
PermissionEvaluationService
hasMoreThanRead in interface PermissionEvaluationService
public boolean hasPermissionOnObject(String permissionName,
Long entityId,
String entityClassName)
PermissionEvaluationServicetrue if the current user has the given permission on the object of the given id and classname.
hasPermissionOnObject in interface PermissionEvaluationServicetrue if the current user has the given permission on the object of the given id and classname.public Map<org.springframework.security.acls.model.Permission,Boolean> listPermissionsOnObject(Object object)
PermissionEvaluationService
listPermissionsOnObject in interface PermissionEvaluationService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||