Package org.tailormap.api.persistence
Class Group
java.lang.Object
org.tailormap.api.persistence.Group
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOrUpdateAdminProperty
(String key, Object value, boolean isPublic) getName()
getNotes()
boolean
void
mapAdminPropertyValue
(String key, boolean isPublic, Function<Object, Object> valueMapper) Maps a property value in the additional properties of the group.setAdditionalProperties
(List<AdminAdditionalProperty> additionalProperties) setAliasForGroup
(String aliasFor) setDescription
(String title) setMembers
(Set<User> members) setSystemGroup
(boolean systemGroup) setVersion
(Long version)
-
Field Details
-
ANONYMOUS
- See Also:
-
AUTHENTICATED
- See Also:
-
ADMIN
- See Also:
-
ACTUATOR
- See Also:
-
-
Constructor Details
-
Group
public Group()
-
-
Method Details
-
getName
-
setName
-
getVersion
-
setVersion
-
isSystemGroup
public boolean isSystemGroup() -
setSystemGroup
-
getDescription
-
setDescription
-
getNotes
-
setNotes
-
getMembers
-
setMembers
-
getAliasForGroup
-
setAliasForGroup
-
getAdditionalProperties
-
setAdditionalProperties
-
addOrUpdateAdminProperty
-
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 propertyisPublic
- whether the property is publicvalueMapper
- the function to map the value
-