Interface PhoneSystemModifier
-
- All Superinterfaces:
IntermediateStorageProvider
,Modifier<PhoneSystem>
public interface PhoneSystemModifier extends Modifier<PhoneSystem>, IntermediateStorageProvider
Defines an API to modify an instance of typePhoneSystem
- Since:
- 11.27
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PhoneSystemModifier
addAssignedTenants(Tenant... tenants)
Assign thePhoneSystem
to the passed tenants.java.util.Set<Tenant>
getAssignedTenants()
Get an unmodifiable view of the current assigned tenants which are held in thisPhoneSystemModifier
.java.lang.String
getName()
Get the current name of the associatedPhoneSystem
which is held in thisPhoneSystemModifier
.boolean
isEnabled()
Get the current enabled state which is held in thisPhoneSystemModifier
.PhoneSystemModifier
removeAssignedTenants(Tenant... tenants)
Remove the assignment of thePhoneSystem
to the passed tenants.PhoneSystemModifier
setEnabled(boolean enabled)
Change the enabled state of the associatedPhoneSystem
.PhoneSystemModifier
setName(java.lang.String name)
Change the name of the associatedPhoneSystem
.boolean
validateEnabled(boolean enabled)
Validate the given enabled state.boolean
validateName(java.lang.String name)
Validate the given name.-
Methods inherited from interface com.novomind.ecom.api.iagent.provider.IntermediateStorageProvider
getIntermediateStorage
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
Get the current name of the associatedPhoneSystem
which is held in thisPhoneSystemModifier
.- Returns:
- the name as String
- Since:
- 11.27
-
setName
PhoneSystemModifier setName(java.lang.String name) throws ValidationException
Change the name of the associatedPhoneSystem
. The change is applied after theModifier.write()
method is called.- Parameters:
name
- the new name as String- Returns:
- the
PhoneSystemModifier
- Throws:
ValidationException
- if the new name is invalid- Since:
- 11.27
-
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:
- 11.27
-
isEnabled
boolean isEnabled()
Get the current enabled state which is held in thisPhoneSystemModifier
.- Returns:
- the enabled state as boolean
- Since:
- 11.27
-
setEnabled
PhoneSystemModifier setEnabled(boolean enabled) throws ValidationException
Change the enabled state of the associatedPhoneSystem
. The change is applied after theModifier.write()
method is called.- Parameters:
enabled
- the new enabled state as boolean- Returns:
- the
PhoneSystemModifier
- Throws:
ValidationException
- if the new enabled state cannot be applied- Since:
- 11.27
-
validateEnabled
boolean validateEnabled(boolean enabled) throws ValidationException
Validate the given enabled state.- Parameters:
enabled
- the new enabled state to be validated- Returns:
- true if the new enabled state can be applied
- Throws:
ValidationException
- if the new enabled state cannot be applied- Since:
- 11.27
-
getAssignedTenants
java.util.Set<Tenant> getAssignedTenants()
Get an unmodifiable view of the current assigned tenants which are held in thisPhoneSystemModifier
.- Returns:
- the current assigned tenants as an unmodifiable set
- Since:
- 11.27
-
addAssignedTenants
PhoneSystemModifier addAssignedTenants(Tenant... tenants) throws ValidationException
Assign thePhoneSystem
to the passed tenants. The change is applied after theModifier.write()
method is called.- Parameters:
tenants
- the tenants for which the assignment should be added- Returns:
- the
PhoneSystemModifier
- Throws:
ValidationException
- if a tenant is null or already assigned- Since:
- 11.27
-
removeAssignedTenants
PhoneSystemModifier removeAssignedTenants(Tenant... tenants) throws ValidationException
Remove the assignment of thePhoneSystem
to the passed tenants. The change is applied after theModifier.write()
method is called.- Parameters:
tenants
- the tenants for which the assignment should be removed- Returns:
- the
PhoneSystemModifier
- Throws:
ValidationException
- if a tenant is null or not assigned- Since:
- 11.27
-
-