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) String
Gets created by.@Size(max=255) String
Gets description.@Size(max=255) String
getId()
Gets id.Gets members.Gets modified at.@NotNull @Size(min=3,max=75) String
getName()
Gets name.Gets owners.Gets source.Gets version.void
setCreatedAt
(OffsetDateTime createdAt) Sets created at.void
setCreatedBy
(String createdBy) Sets created by.void
setDescription
(String description) Sets description.void
Sets id.void
setMembers
(List<String> members) Sets members.void
setModifiedAt
(OffsetDateTime modifiedAt) Sets modified at.void
Sets name.void
Sets owners.void
Sets source.void
setVersion
(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
-