Interface SystemGroupModifier
-
- All Superinterfaces:
GroupModifier<SystemGroup>
,Modifier<SystemGroup>
public interface SystemGroupModifier extends GroupModifier<SystemGroup>
- Since:
- 10.0.108
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SystemGroupModifier
addAssignedCategories(Category... categories)
Assign the group to the passed categories.SystemGroupModifier
addAssignedPrivileges(GroupPrivilege... groupPrivileges)
Assign the passed privileges to the group.SystemGroupModifier
addAssignedUsers(User... users)
Assign the group to the passed users.java.util.Set<GroupPrivilege>
getAssignedPrivileges()
Get an unmodifiable view of the current assigned privileges which are held in thisSystemGroupModifier
.java.util.Set<User>
getAssignedUsers()
Get an unmodifiable view of the current assigned users which are held in thisSystemGroupModifier
.Tenant
getTenant()
Get the current tenant which is held in thisSystemGroupModifier
.SystemGroupModifier
removeAssignedCategories(Category... categories)
Remove the assignment of the group to the passed categories.SystemGroupModifier
removeAssignedPrivileges(GroupPrivilege... groupPrivileges)
Remove the passed privileges from the group.SystemGroupModifier
removeAssignedUsers(User... users)
Remove the assignment of the group to the passed users.SystemGroupModifier
setDescription(java.lang.String description)
Change the description of the associatedGroup
.SystemGroupModifier
setName(java.lang.String name)
Change the name of the associatedGroup
.SystemGroupModifier
setParent(SystemGroup parent)
Change the parent system group of the associatedGroup
.SystemGroupModifier
setTenant(Tenant tenant)
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 Detail
-
setName
SystemGroupModifier setName(java.lang.String name) throws ValidationException
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
SystemGroupModifier setDescription(java.lang.String description) throws ValidationException
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
SystemGroupModifier addAssignedCategories(Category... categories) throws ValidationException
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
SystemGroupModifier removeAssignedCategories(Category... categories) throws ValidationException
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
SystemGroupModifier setParent(SystemGroup parent) throws ValidationException
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
SystemGroupModifier setTenant(Tenant tenant) throws ValidationException
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
boolean validateTenant(Tenant tenant) throws ValidationException
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
java.util.Set<User> 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
SystemGroupModifier addAssignedUsers(User... users) throws ValidationException
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
SystemGroupModifier removeAssignedUsers(User... users) throws ValidationException
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
java.util.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
-
-