public interface SecurityService
| Modifier and Type | Method and Description |
|---|---|
Long |
getCurrentUserId()
Returns the id of the currently logged in user
|
String |
getCurrentUserName()
Returns the name of the currently logged in user
|
Long |
getCurrentUserOrQcadooBotId()
Returns the id of the currently logged in user or qcadoo_bot
|
String |
getCurrentUserOrQcadooBotName()
Returns the name of the currently logged in user or qcadoo_bot
|
boolean |
hasCurrentUserRole(String targetRoleIdentifier) |
boolean |
hasRole(Entity userEntity,
String targetRoleIdentifier)
Checks if given user can access resource with specified access role identifier
|
Long getCurrentUserId()
String getCurrentUserName()
Long getCurrentUserOrQcadooBotId()
String getCurrentUserOrQcadooBotName()
boolean hasCurrentUserRole(String targetRoleIdentifier)
boolean hasRole(Entity userEntity, String targetRoleIdentifier)
userEntity - user to checktargetRoleIdentifier - resource access role identifierCopyright © 2010-2025 Qcadoo Limited