Interface GroupModifier<T extends Group & MasterEntity>
-
- All Superinterfaces:
Modifier<T>
- All Known Subinterfaces:
AgentGroupModifier
,SystemGroupModifier
public interface GroupModifier<T extends Group & MasterEntity> extends Modifier<T>
- Since:
- 10.0.108
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GroupModifier<T>
addAssignedCategories(Category... categories)
Assign the group to the passed categories.java.util.Set<Category>
getAssignedCategories()
Get an unmodifiable view of the current assigned categories which are held in thisGroupModifier
.java.lang.String
getDescription()
Get the current group description which is held in thisGroupModifier
.java.lang.String
getName()
Get the current group name which is held in thisGroupModifier
.SystemGroup
getParent()
Get the current parent system group which is held in thisGroupModifier
.GroupModifier<T>
removeAssignedCategories(Category... categories)
Remove the assignment of the group to the passed categories.GroupModifier<T>
setDescription(java.lang.String description)
Change the description of the associatedGroup
.GroupModifier<T>
setName(java.lang.String name)
Change the name of the associatedGroup
.GroupModifier<T>
setParent(SystemGroup parent)
Change the parent system group of the associatedGroup
.boolean
validateDescription(java.lang.String description)
Validate the given description.boolean
validateName(java.lang.String name)
Validate the given name.boolean
validateParent(SystemGroup parent)
Validate the given parent system group.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Get the current group name which is held in thisGroupModifier
.- Returns:
- the name as String
- Since:
- 10.0.108
-
setName
GroupModifier<T> setName(java.lang.String name) throws ValidationException
Change the name of the associated
Group
.The change is applied after the
Modifier.write()
method is called.- Parameters:
name
- the new name as String- Returns:
- the
GroupModifier
- Throws:
ValidationException
- if the new name is invalid- Since:
- 10.0.108
-
validateName
boolean validateName(java.lang.String name) throws ValidationException
Validate the given name.- Parameters:
name
- the name to validate as String- Returns:
- true if the name is valid
- Throws:
ValidationException
- if the name is invalid- Since:
- 10.0.108
-
getDescription
java.lang.String getDescription()
Get the current group description which is held in thisGroupModifier
.- Returns:
- the description as String
- Since:
- 10.0.108
-
setDescription
GroupModifier<T> setDescription(java.lang.String description) throws ValidationException
Change the description of the associated
Group
.The change is applied after the
Modifier.write()
method is called.- Parameters:
description
- the new description as String- Returns:
- the
GroupModifier
- Throws:
ValidationException
- if the new description is invalid- Since:
- 10.0.108
-
validateDescription
boolean validateDescription(java.lang.String description) throws ValidationException
Validate the given description.- Parameters:
description
- the description to validate as String- Returns:
- true if the description is valid
- Throws:
ValidationException
- if the description is invalid- Since:
- 10.0.108
-
getAssignedCategories
java.util.Set<Category> getAssignedCategories()
Get an unmodifiable view of the current assigned categories which are held in thisGroupModifier
.- Returns:
- the current assigned categories as an unmodifiable set
- Since:
- 10.0.108
-
addAssignedCategories
GroupModifier<T> addAssignedCategories(Category... categories) throws ValidationException
Assign the group to the passed categories.
The change is applied after the
Modifier.write()
method is called.- Parameters:
categories
- the categories the group should be assigned to- Returns:
- the
GroupModifier
- Throws:
ValidationException
- if a category is null- Since:
- 10.0.108
-
removeAssignedCategories
GroupModifier<T> removeAssignedCategories(Category... categories) throws ValidationException
Remove the assignment of the group to the passed categories.
The change is applied after the
Modifier.write()
method is called.- Parameters:
categories
- the categories for which the assignment should be removed- Returns:
- the
GroupModifier
- Throws:
ValidationException
- if a category is null- Since:
- 10.0.108
-
getParent
SystemGroup getParent()
Get the current parent system group which is held in thisGroupModifier
.- Returns:
- the parent system group
- Since:
- 10.0.108
-
setParent
GroupModifier<T> setParent(SystemGroup parent) throws ValidationException
Change the parent system group of the associated
Group
.The change is applied after the
Modifier.write()
method is called.- Parameters:
parent
- the new parent system group- Returns:
- the
GroupModifier
- Throws:
ValidationException
- if the new parent is invalid- Since:
- 10.0.108
-
validateParent
boolean validateParent(SystemGroup parent) throws ValidationException
Validate the given parent system group.- Parameters:
parent
- the parent system group to validate- Returns:
- true if the parent is valid
- Throws:
ValidationException
- if the parent is invalid- Since:
- 10.0.108
-
-