Package dev.vernite.vernite.workspace
Class Workspace
java.lang.Object
dev.vernite.vernite.workspace.Workspace
Entity for representing collection of projects.
Its connected to user and has unique id for that user.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.voidSetter for name value.voidupdate(UpdateWorkspace update) Updates workspace entity with data from update.
-
Constructor Details
-
Workspace
Default constructor for workspace.- Parameters:
id- unique to user positive number for new workspacename- must not be null and have size between 1 and 50user- must not be null and must be entity from database
-
Workspace
Constructor for workspace from create request.- Parameters:
id- unique to user positive number for new workspaceuser- must not be null and must be entity from databasecreate- must not be null and must be valid
-
-
Method Details
-
update
Updates workspace entity with data from update.- Parameters:
update- must not be null and be valid
-
setName
Setter for name value. It performsString.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.
-