Interface SystemGroupModifier
- All Superinterfaces:
GroupModifier<SystemGroup>
,Modifier<SystemGroup>
- Since:
- 10.0.108
-
Method Summary
Modifier 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
.boolean
validateTenant
(Tenant tenant) Validate the given tenant.Methods inherited from interface com.novomind.ecom.api.imail.routing.persistence.GroupModifier
getAssignedCategories, getDescription, getName, getParent, validateDescription, validateName, validateParent
-
Method Details
-
setName
Description copied from interface:GroupModifier
Change the name of the associated
Group
.The change is applied after the
Modifier.write()
method is called.- Specified by:
setName
in interfaceGroupModifier<SystemGroup>
- Parameters:
name
- the new name as String- Returns:
- the
GroupModifier
- Throws:
ValidationException
- if the new name is invalid
-
setDescription
Description copied from interface:GroupModifier
Change the description of the associated
Group
.The change is applied after the
Modifier.write()
method is called.- Specified by:
setDescription
in interfaceGroupModifier<SystemGroup>
- Parameters:
description
- the new description as String- Returns:
- the
GroupModifier
- Throws:
ValidationException
- if the new description is invalid
-
addAssignedCategories
Description copied from interface:GroupModifier
Assign the group to the passed categories.
The change is applied after the
Modifier.write()
method is called.- Specified by:
addAssignedCategories
in interfaceGroupModifier<SystemGroup>
- Parameters:
categories
- the categories the group should be assigned to- Returns:
- the
GroupModifier
- Throws:
ValidationException
- if a category is null
-
removeAssignedCategories
Description copied from interface:GroupModifier
Remove the assignment of the group to the passed categories.
The change is applied after the
Modifier.write()
method is called.- Specified by:
removeAssignedCategories
in interfaceGroupModifier<SystemGroup>
- Parameters:
categories
- the categories for which the assignment should be removed- Returns:
- the
GroupModifier
- Throws:
ValidationException
- if a category is null
-
setParent
Description copied from interface:GroupModifier
Change the parent system group of the associated
Group
.The change is applied after the
Modifier.write()
method is called.- Specified by:
setParent
in interfaceGroupModifier<SystemGroup>
- Parameters:
parent
- the new parent system group- Returns:
- the
GroupModifier
- Throws:
ValidationException
- if the new parent is invalid
-
getTenant
Tenant getTenant()Get the current tenant which is held in thisSystemGroupModifier
.- Returns:
- the current tenant
- Since:
- 10.0.108
-
setTenant
Change 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
-
validateTenant
Validate 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
-
getAssignedUsers
Get 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
-
addAssignedUsers
Assign 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
-
removeAssignedUsers
Remove 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
-
getAssignedPrivileges
Set<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
-
addAssignedPrivileges
SystemGroupModifier 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
-
removeAssignedPrivileges
SystemGroupModifier 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
-