Interface PhoneSystemModifier

All Superinterfaces:
IntermediateStorageProvider, Modifier<PhoneSystem>

public interface PhoneSystemModifier extends Modifier<PhoneSystem>, IntermediateStorageProvider
Defines an API to modify an instance of type PhoneSystem
Since:
11.27
  • Method Details

    • getName

      String getName()
      Get the current name of the associated PhoneSystem which is held in this PhoneSystemModifier.
      Returns:
      the name as String
      Since:
      11.27
    • setName

      Change the name of the associated PhoneSystem. The change is applied after the Modifier.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(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 this PhoneSystemModifier.
      Returns:
      the enabled state as boolean
      Since:
      11.27
    • setEnabled

      PhoneSystemModifier setEnabled(boolean enabled) throws ValidationException
      Change the enabled state of the associated PhoneSystem. The change is applied after the Modifier.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

      Set<Tenant> getAssignedTenants()
      Get an unmodifiable view of the current assigned tenants which are held in this PhoneSystemModifier.
      Returns:
      the current assigned tenants as an unmodifiable set
      Since:
      11.27
    • addAssignedTenants

      PhoneSystemModifier addAssignedTenants(Tenant... tenants) throws ValidationException
      Assign the PhoneSystem 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 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 the PhoneSystem 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 PhoneSystemModifier
      Throws:
      ValidationException - if a tenant is null or not assigned
      Since:
      11.27