Interface IUser
- All Known Implementing Classes:
UserModel
public interface IUser
-
Method Summary
Modifier and TypeMethodDescriptionattributeAsList
(String key) Get the user's business location IDs that were populated usingBizLocationAuthExtension
extension.bizSteps()
Get the user's business step IDs that were populated usingBizStepAuthExtension
extension.default boolean
hasBizLocation
(com.persequor.event.ElementUri locationId) Check if the user has access to a specific business location.default boolean
hasBizStep
(com.persequor.event.ElementUri stepId) Check if the user has access to a specific business step.default boolean
isAdmin()
Check if the user is an admin, meaning that it has theUser.Role.ROLE_ADMIN
role.roles()
Get the user's roles.
-
Method Details
-
getUsername
String getUsername() -
attributeAsList
-
attribute
-
bizLocations
Get the user's business location IDs that were populated usingBizLocationAuthExtension
extension. -
hasBizLocation
default boolean hasBizLocation(com.persequor.event.ElementUri locationId) Check if the user has access to a specific business location. -
bizSteps
Get the user's business step IDs that were populated usingBizStepAuthExtension
extension. -
hasBizStep
default boolean hasBizStep(com.persequor.event.ElementUri stepId) Check if the user has access to a specific business step. -
roles
Get the user's roles. -
isAdmin
default boolean isAdmin()Check if the user is an admin, meaning that it has theUser.Role.ROLE_ADMIN
role.
-