Package org.bremersee.groupman.model
Class Group
java.lang.Object
org.bremersee.groupman.model.Group
- All Implemented Interfaces:
Serializable
The group.
- Author:
- Christian Bremer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets created at.@Size(max=255) StringGets created by.@Size(max=255) StringGets description.@Size(max=255) StringgetId()Gets id.Gets members.Gets modified at.@NotNull @Size(min=3,max=75) StringgetName()Gets name.Gets owners.Gets source.Gets version.voidsetCreatedAt(OffsetDateTime createdAt) Sets created at.voidsetCreatedBy(String createdBy) Sets created by.voidsetDescription(String description) Sets description.voidSets id.voidsetMembers(List<String> members) Sets members.voidsetModifiedAt(OffsetDateTime modifiedAt) Sets modified at.voidSets name.voidSets owners.voidSets source.voidsetVersion(Long version) Sets version.
-
Constructor Details
-
Group
public Group(String id, Long version, String createdBy, OffsetDateTime createdAt, OffsetDateTime modifiedAt, Source source, String name, String description, List<String> members, List<String> owners) Instantiates a new group.- Parameters:
id- the idversion- the versioncreatedBy- the created bycreatedAt- the created atmodifiedAt- the modified atsource- the sourcename- the namedescription- the descriptionmembers- the membersowners- the owners
-
-
Method Details
-
getId
Gets id.- Returns:
- the id
-
setId
Sets id.- Parameters:
id- the id
-
getVersion
Gets version.- Returns:
- the version
-
setVersion
Sets version.- Parameters:
version- the version
-
getCreatedBy
Gets created by.- Returns:
- the created by
-
setCreatedBy
Sets created by.- Parameters:
createdBy- the created by
-
getCreatedAt
Gets created at.- Returns:
- the created at
-
setCreatedAt
Sets created at.- Parameters:
createdAt- the created at
-
getModifiedAt
Gets modified at.- Returns:
- the modified at
-
setModifiedAt
Sets modified at.- Parameters:
modifiedAt- the modified at
-
getSource
Gets source.- Returns:
- the source
-
setSource
Sets source.- Parameters:
source- the source
-
getName
Gets name.- Returns:
- the name
-
setName
Sets name.- Parameters:
name- the name
-
getDescription
Gets description.- Returns:
- the description
-
setDescription
Sets description.- Parameters:
description- the description
-
getMembers
Gets members.- Returns:
- the members
-
setMembers
Sets members.- Parameters:
members- the members
-
getOwners
Gets owners.- Returns:
- the owners
-
setOwners
Sets owners.- Parameters:
owners- the owners
-