java.lang.Object
app.valuationcontrol.multimodule.library.entities.User
All Implemented Interfaces:
DataTransformer<UserData>

@Entity public class User extends Object implements DataTransformer<UserData>
This class is an entity that a variable within a model
Author:
thomas
  • Constructor Details

    • User

      public User()
  • Method Details

    • setEmail

      public void setEmail(String email)
    • getModelRoleWithModelId

      public String getModelRoleWithModelId(long modelId)
    • 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 requiredRole
      modelId - - the id of the model to check access for
      isAnUnlockRequest - indicates wether this is a specific unlock request
      Returns:
      true if yes, false if not
      Throws:
      org.springframework.security.access.AccessDeniedException
    • addModel

      public void addModel(Model model, User.MODEL_ROLE role)
    • asData

      public UserData asData()
      Specified by:
      asData in interface DataTransformer<UserData>