Class Group

java.lang.Object
org.tailormap.api.persistence.Group

@Entity public class Group extends Object
  • Field Details

  • Constructor Details

    • Group

      public Group()
  • Method Details

    • getName

      public String getName()
    • setName

      public Group setName(String name)
    • getVersion

      public Long getVersion()
    • setVersion

      public Group setVersion(Long version)
    • isSystemGroup

      public boolean isSystemGroup()
    • setSystemGroup

      public Group setSystemGroup(boolean systemGroup)
    • getDescription

      public String getDescription()
    • setDescription

      public Group setDescription(String title)
    • getNotes

      public String getNotes()
    • setNotes

      public Group setNotes(String notes)
    • getMembers

      public Set<User> getMembers()
    • setMembers

      public Group setMembers(Set<User> members)
    • getAliasForGroup

      public String getAliasForGroup()
    • setAliasForGroup

      public Group setAliasForGroup(String aliasFor)
    • getAdditionalProperties

      public List<AdminAdditionalProperty> getAdditionalProperties()
    • setAdditionalProperties

      public Group setAdditionalProperties(List<AdminAdditionalProperty> additionalProperties)
    • addOrUpdateAdminProperty

      public void addOrUpdateAdminProperty(String key, Object value, boolean isPublic)
    • mapAdminPropertyValue

      public void mapAdminPropertyValue(String key, boolean isPublic, Function<Object,Object> valueMapper)
      Maps a property value in the additional properties of the group. If the property does not exist, it will be created and the valueMapper function will be called with a null value.
      Parameters:
      key - the key of the property
      isPublic - whether the property is public
      valueMapper - the function to map the value