org.squashtest.tm.service.security
public interface PermissionEvaluationService
| Modifier and Type | Method and Description |
|---|---|
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 permission,
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 permission,
Long entityId,
String entityClassName)
Same as
hasRoleOrPermissionOnObject(String, String, Object), except that Object is explicitly identified
by its ID and classname |
boolean |
hasRoleOrPermissionOnObject(String role,
String permission,
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.
|
boolean hasRoleOrPermissionOnObject(String role, String permission, Object object)
role - permission - String representation of the permission.object - boolean hasRoleOrPermissionOnObject(String role, String permission, Long entityId, String entityClassName)
hasRoleOrPermissionOnObject(String, String, Object), except that Object is explicitly identified
by its ID and classnamerole - permission - entityId - entityClassName - boolean canRead(Object object)
object - boolean hasMoreThanRead(Object object)
object - boolean hasRole(String role)
role - boolean hasPermissionOnObject(String permission, Long entityId, String entityClassName)
true if the current user has the given permission on the object of the given id and classname.permission - entityId - entityClassName - true if the current user has the given permission on the object of the given id and classname.Copyright © 2010-2014 Henix, henix.fr. All Rights Reserved.