Interface ExternalRoutingModifier
- All Superinterfaces:
IntermediateStorageProvider
,Modifier<ExternalRouting>
public interface ExternalRoutingModifier
extends Modifier<ExternalRouting>, IntermediateStorageProvider
Defines an API to modify an instance of type
ExternalRouting
- Since:
- 11.29
-
Method Summary
Modifier and TypeMethodDescriptionaddAssignedTenants
(Tenant... tenants) Assign theExternalRouting
to the passed tenants.Get an unmodifiable view of the current assigned tenants which are held in thisExternalRoutingModifier
.getName()
Get the current name of the associatedExternalRouting
which is held in thisExternalRoutingModifier
.boolean
Get the current enabled state which is held in thisExternalRoutingModifier
.removeAssignedTenants
(Tenant... tenants) Remove the assignment of theExternalRouting
to the passed tenants.setEnabled
(boolean enabled) Change the enabled state of the associatedExternalRouting
.Change the name of the associatedExternalRouting
.boolean
validateEnabled
(boolean enabled) Validate the given enabled state.boolean
validateName
(String name) Validate the given name.Methods inherited from interface com.novomind.ecom.api.iagent.provider.IntermediateStorageProvider
getIntermediateStorage
-
Method Details
-
getName
String getName()Get the current name of the associatedExternalRouting
which is held in thisExternalRoutingModifier
.- Returns:
- the name as String
- Since:
- 11.29
-
setName
Change the name of the associated
ExternalRouting
.The change is applied after the
Modifier.write()
method is called.- Parameters:
name
- the new name as String- Returns:
- the
ExternalRoutingModifier
- Throws:
ValidationException
- if the new name is invalid- Since:
- 11.29
-
validateName
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.29
-
isEnabled
boolean isEnabled()Get the current enabled state which is held in thisExternalRoutingModifier
.- Returns:
- the enabled state as boolean
- Since:
- 11.29
-
setEnabled
Change the enabled state of the associated
ExternalRouting
.The change is applied after the
Modifier.write()
method is called.- Parameters:
enabled
- the new enabled state as boolean- Returns:
- the
ExternalRoutingModifier
- Throws:
ValidationException
- if the new enabled state cannot be applied- Since:
- 11.29
-
validateEnabled
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.29
-
getAssignedTenants
Get an unmodifiable view of the current assigned tenants which are held in thisExternalRoutingModifier
.- Returns:
- the current assigned tenants as an unmodifiable set
- Since:
- 11.29
-
addAssignedTenants
Assign the
ExternalRouting
to the passed tenants.The change is applied after the
Modifier.write()
method is called.- Parameters:
tenants
- the tenants theExternalRouting
should be assigned to- Returns:
- the
ExternalRoutingModifier
- Throws:
ValidationException
- if a tenant is null or already assigned- Since:
- 11.29
-
removeAssignedTenants
Remove the assignment of the
ExternalRouting
to the passed tenants.The change is applied after the
Modifier.write()
method is called.- Parameters:
tenants
- the tenants for which the assignment should be removed- Returns:
- the
ExternalRoutingModifier
- Throws:
ValidationException
- if a tenant is null or not assigned- Since:
- 11.29
-