Interface MessengerAccountModifier

    • Method Detail

      • getName

        java.lang.String getName()
        Get the current messenger account name which is held in this MessengerAccountModifier.
        Returns:
        the name as String
        Since:
        12.20
      • 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:
        12.20
      • getProtocol

        java.lang.String getProtocol()
        Get the current protocol which is held in this MessengerAccountModifier.
        Returns:
        the protocol as String
        Since:
        12.20
      • setProtocol

        MessengerAccountModifier setProtocol​(java.lang.String protocol)
                                      throws ValidationException

        Change the protocol of the associated MessengerAccount.

        The change is applied after the Modifier.write() method is called.

        Parameters:
        protocol - the new protocol as String
        Returns:
        the MessengerAccountModifier
        Throws:
        ValidationException - if the new protocol is invalid
        Since:
        12.20
      • validateProtocol

        boolean validateProtocol​(java.lang.String protocol)
                          throws ValidationException
        Validate the given protocol.
        Parameters:
        protocol - the protocol to validate as String
        Returns:
        true if the protocol is valid
        Throws:
        ValidationException - if the protocol is invalid
        Since:
        12.20
      • getChannel

        ChatChannel getChannel()
        Get the current chat channel which is held in this MessengerAccountModifier.
        Returns:
        the chat channel
        Since:
        12.20
      • validateChannel

        boolean validateChannel​(ChatChannel chatChannel)
                         throws ValidationException
        Validate the given chat channel.
        Parameters:
        chatChannel - the chat channel to validate
        Returns:
        true if the chat channel is valid
        Throws:
        ValidationException - if the chat channel is invalid
        Since:
        12.20
      • getTenant

        Tenant getTenant()
        Get the current tenant which is held in this MessengerAccountModifier.
        Returns:
        the tenant
        Since:
        12.20
      • 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:
        12.20
      • isEnabled

        boolean isEnabled()
        Get the current enabled state which is held in this MessengerAccountModifier.
        Returns:
        the enabled state
        Since:
        12.20
      • setEnabled

        MessengerAccountModifier setEnabled​(boolean enabled)
                                     throws ValidationException

        Change the enabled state of the associated MessengerAccount.

        The change is applied after the Modifier.write() method is called.

        Parameters:
        enabled - the new enabled state
        Returns:
        the MessengerAccountModifier
        Throws:
        ValidationException - if the new enabled state cannot be applied
        Since:
        12.20
      • validateEnabled

        boolean validateEnabled​(boolean enabled)
                         throws ValidationException
        Validate the given enabled.
        Parameters:
        enabled - the enabled state to validate
        Returns:
        true if the enabled is valid
        Throws:
        ValidationException - if the enabled is invalid
        Since:
        12.20