Interface IApplicationAttributeRepository


  • public interface IApplicationAttributeRepository
    The application attribute repository provides the access to the application attributes presented by key-value pairs.
    Since:
    1.0.0
    • Method Detail

      • setAttribute

        void setAttribute​(IApplication application,
                          String key,
                          String value)
                   throws ApplicationException
        Sets the specified attribute for the given application.
        Parameters:
        application - the application to set the attribute, cannot be null.
        key - the string field that represents the key of the attribute, cannot be null.
        value - the string field that represents the value of the attribute, can be null.
        Throws:
        ApplicationException - if repostiory request failed
      • getAttribute

        Optional<String> getAttribute​(IApplication application,
                                      String key)
                               throws ApplicationException
        Returns the attribute value by the key for the specified application.
        Parameters:
        application - the application to obtain the attribute, cannot be null.
        key - the string field that represents the key of the attribute, cannot be null.
        Returns:
        the string field that represents the value of the attribute, never null.
        Throws:
        ApplicationException - if repostiory request failed