Class Workspace

java.lang.Object
dev.vernite.vernite.workspace.Workspace

@Entity public class Workspace extends Object
Entity for representing collection of projects. Its connected to user and has unique id for that user.
  • Constructor Details

    • Workspace

      public Workspace(long id, String name, User user)
      Default constructor for workspace.
      Parameters:
      id - unique to user positive number for new workspace
      name - must not be null and have size between 1 and 50
      user - must not be null and must be entity from database
    • Workspace

      public Workspace(long id, User user, CreateWorkspace create)
      Constructor for workspace from create request.
      Parameters:
      id - unique to user positive number for new workspace
      user - must not be null and must be entity from database
      create - must not be null and must be valid
  • Method Details

    • update

      public void update(UpdateWorkspace update)
      Updates workspace entity with data from update.
      Parameters:
      update - must not be null and be valid
    • setName

      public void setName(String name)
      Setter for name value. It performs String.trim() on its argument.
      Parameters:
      name - must not be null and have at least one non-whitespace character and less than 50 characters
    • getProjectsWithPrivileges

      @Deprecated public List<ProjectWithPrivileges> getProjectsWithPrivileges()
      Deprecated.