Class Group

java.lang.Object
org.bremersee.groupman.model.Group
All Implemented Interfaces:
Serializable

@Valid public class Group extends Object implements Serializable
The group.
Author:
Christian Bremer
See Also:
  • 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 id
      version - the version
      createdBy - the created by
      createdAt - the created at
      modifiedAt - the modified at
      source - the source
      name - the name
      description - the description
      members - the members
      owners - the owners
  • Method Details

    • getId

      @Size(max=255) public @Size(max=255) String getId()
      Gets id.
      Returns:
      the id
    • setId

      public void setId(String id)
      Sets id.
      Parameters:
      id - the id
    • getVersion

      public Long getVersion()
      Gets version.
      Returns:
      the version
    • setVersion

      public void setVersion(Long version)
      Sets version.
      Parameters:
      version - the version
    • getCreatedBy

      @Size(max=255) public @Size(max=255) String getCreatedBy()
      Gets created by.
      Returns:
      the created by
    • setCreatedBy

      public void setCreatedBy(String createdBy)
      Sets created by.
      Parameters:
      createdBy - the created by
    • getCreatedAt

      public OffsetDateTime getCreatedAt()
      Gets created at.
      Returns:
      the created at
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
      Sets created at.
      Parameters:
      createdAt - the created at
    • getModifiedAt

      public OffsetDateTime getModifiedAt()
      Gets modified at.
      Returns:
      the modified at
    • setModifiedAt

      public void setModifiedAt(OffsetDateTime modifiedAt)
      Sets modified at.
      Parameters:
      modifiedAt - the modified at
    • getSource

      public Source getSource()
      Gets source.
      Returns:
      the source
    • setSource

      public void setSource(Source source)
      Sets source.
      Parameters:
      source - the source
    • getName

      @NotNull @Size(min=3, max=75) public @NotNull @Size(min=3,max=75) String getName()
      Gets name.
      Returns:
      the name
    • setName

      public void setName(String name)
      Sets name.
      Parameters:
      name - the name
    • getDescription

      @Size(max=255) public @Size(max=255) String getDescription()
      Gets description.
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Sets description.
      Parameters:
      description - the description
    • getMembers

      public List<String> getMembers()
      Gets members.
      Returns:
      the members
    • setMembers

      public void setMembers(List<String> members)
      Sets members.
      Parameters:
      members - the members
    • getOwners

      public List<String> getOwners()
      Gets owners.
      Returns:
      the owners
    • setOwners

      public void setOwners(List<String> owners)
      Sets owners.
      Parameters:
      owners - the owners