|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PermissionEvaluationService
This service evaluates permissions of the current user.
| 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 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. |
| Method Detail |
|---|
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 classname
role - 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.Map<org.springframework.security.acls.model.Permission,Boolean> listPermissionsOnObject(Object object)
object -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||