Class User
java.lang.Object
app.valuationcontrol.multimodule.library.entities.User
- All Implemented Interfaces:
DataTransformer<UserData>
This class is an entity that a variable within a model
- Author:
- thomas
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModel(Model model, User.MODEL_ROLE role) asData()booleangetModelIsLocked(long modelId) getModelRoleWithModelId(long modelId) voidbooleanvalidateRole(String requiredRole, Long modelId, boolean isAnUnlockRequest) Check if the user has sufficient privilege to run the action
-
Constructor Details
-
User
public User()
-
-
Method Details
-
setEmail
-
getModelRoleWithModelId
-
getModelIsLocked
public boolean getModelIsLocked(long modelId) -
validateRole
public boolean validateRole(String requiredRole, Long modelId, boolean isAnUnlockRequest) throws org.springframework.security.access.AccessDeniedException Check if the user has sufficient privilege to run the action- Parameters:
requiredRole- - the requiredRolemodelId- - the id of the model to check access forisAnUnlockRequest- indicates wether this is a specific unlock request- Returns:
- true if yes, false if not
- Throws:
org.springframework.security.access.AccessDeniedException
-
addModel
-
asData
- Specified by:
asDatain interfaceDataTransformer<UserData>
-