Interface SystemGroupModifier
- All Superinterfaces:
- GroupModifier<SystemGroup>,- Modifier<SystemGroup>
- Since:
- 10.0.108
- 
Method SummaryModifier and TypeMethodDescriptionaddAssignedCategories(Category... categories) Assign the group to the passed categories.addAssignedPrivileges(GroupPrivilege... groupPrivileges) Assign the passed privileges to the group.addAssignedUsers(User... users) Assign the group to the passed users.Get an unmodifiable view of the current assigned privileges which are held in thisSystemGroupModifier.Get an unmodifiable view of the current assigned users which are held in thisSystemGroupModifier.Get the current tenant which is held in thisSystemGroupModifier.removeAssignedCategories(Category... categories) Remove the assignment of the group to the passed categories.removeAssignedPrivileges(GroupPrivilege... groupPrivileges) Remove the passed privileges from the group.removeAssignedUsers(User... users) Remove the assignment of the group to the passed users.setDescription(String description) Change the description of the associatedGroup.Change the name of the associatedGroup.setParent(SystemGroup parent) Change the parent system group of the associatedGroup.Change the tenant of the associatedSystemGroup.booleanvalidateTenant(Tenant tenant) Validate the given tenant.Methods inherited from interface com.novomind.ecom.api.imail.routing.persistence.GroupModifiergetAssignedCategories, getDescription, getName, getParent, validateDescription, validateName, validateParent
- 
Method Details- 
setNameDescription copied from interface:GroupModifierChange the name of the associated Group.The change is applied after the Modifier.write()method is called.- Specified by:
- setNamein interface- GroupModifier<SystemGroup>
- Parameters:
- name- the new name as String
- Returns:
- the GroupModifier
- Throws:
- ValidationException- if the new name is invalid
 
- 
setDescriptionDescription copied from interface:GroupModifierChange the description of the associated Group.The change is applied after the Modifier.write()method is called.- Specified by:
- setDescriptionin interface- GroupModifier<SystemGroup>
- Parameters:
- description- the new description as String
- Returns:
- the GroupModifier
- Throws:
- ValidationException- if the new description is invalid
 
- 
addAssignedCategoriesDescription copied from interface:GroupModifierAssign the group to the passed categories. The change is applied after the Modifier.write()method is called.- Specified by:
- addAssignedCategoriesin interface- GroupModifier<SystemGroup>
- Parameters:
- categories- the categories the group should be assigned to
- Returns:
- the GroupModifier
- Throws:
- ValidationException- if a category is null
 
- 
removeAssignedCategoriesDescription copied from interface:GroupModifierRemove the assignment of the group to the passed categories. The change is applied after the Modifier.write()method is called.- Specified by:
- removeAssignedCategoriesin interface- GroupModifier<SystemGroup>
- Parameters:
- categories- the categories for which the assignment should be removed
- Returns:
- the GroupModifier
- Throws:
- ValidationException- if a category is null
 
- 
setParentDescription copied from interface:GroupModifierChange the parent system group of the associated Group.The change is applied after the Modifier.write()method is called.- Specified by:
- setParentin interface- GroupModifier<SystemGroup>
- Parameters:
- parent- the new parent system group
- Returns:
- the GroupModifier
- Throws:
- ValidationException- if the new parent is invalid
 
- 
getTenantTenant getTenant()Get the current tenant which is held in thisSystemGroupModifier.- Returns:
- the current tenant
- Since:
- 10.0.108
 
- 
setTenantChange the tenant of the associated SystemGroup.The change is applied after the Modifier.write()method is called.- Parameters:
- tenant- the new tenant
- Returns:
- the SystemGroupModifier
- Throws:
- ValidationException- if the new tenant is invalid
- Since:
- 10.0.108
 
- 
validateTenantValidate the given tenant.- Parameters:
- tenant- the tenant to validate
- Returns:
- true if the tenant is valid
- Throws:
- ValidationException- if the tenant is invalid
- Since:
- 10.0.108
 
- 
getAssignedUsersGet an unmodifiable view of the current assigned users which are held in thisSystemGroupModifier.- Returns:
- the current assigned users as an unmodifiable set
- Since:
- 10.0.108
 
- 
addAssignedUsersAssign the group to the passed users. The change is applied after the Modifier.write()method is called.- Parameters:
- users- the users the group should be assigned to
- Returns:
- the SystemGroupModifier
- Throws:
- ValidationException- if a user is null
- Since:
- 10.0.108
 
- 
removeAssignedUsersRemove the assignment of the group to the passed users. The change is applied after the Modifier.write()method is called.- Parameters:
- users- the users for which the assignment should be removed
- Returns:
- the SystemGroupModifier
- Throws:
- ValidationException- if a user is null
- Since:
- 10.0.108
 
- 
getAssignedPrivilegesSet<GroupPrivilege> getAssignedPrivileges()Get an unmodifiable view of the current assigned privileges which are held in thisSystemGroupModifier.- Returns:
- the current assigned privileges as an unmodifiable set
- Since:
- 12.29
 
- 
addAssignedPrivilegesSystemGroupModifier addAssignedPrivileges(GroupPrivilege... groupPrivileges) throws ValidationException Assign the passed privileges to the group. The change is applied after the Modifier.write()method is called.- Parameters:
- groupPrivileges- the privileges that should be assigned to the group
- Returns:
- the SystemGroupModifier
- Throws:
- ValidationException- if a privilege is null
- Since:
- 12.29
 
- 
removeAssignedPrivilegesSystemGroupModifier removeAssignedPrivileges(GroupPrivilege... groupPrivileges) throws ValidationException Remove the passed privileges from the group. The change is applied after the Modifier.write()method is called.- Parameters:
- groupPrivileges- the privileges for which the assignment should be removed
- Returns:
- the SystemGroupModifier
- Throws:
- ValidationException- if a privilege is null or the group is the administration group
- Since:
- 12.29
 
 
-