Package com.e1c.g5.dt.applications
Interface IApplicationAttributeRepository
-
public interface IApplicationAttributeRepositoryThe application attribute repository provides the access to the application attributes presented by key-value pairs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<String>getAttribute(IApplication application, String key)Returns the attribute value by thekeyfor the specifiedapplication.voidsetAttribute(IApplication application, String key, String value)Sets the specified attribute for the givenapplication.
-
-
-
Method Detail
-
setAttribute
void setAttribute(IApplication application, String key, String value) throws ApplicationException
Sets the specified attribute for the givenapplication.- Parameters:
application- the application to set the attribute, cannot benull.key- the string field that represents the key of the attribute, cannot benull.value- the string field that represents the value of the attribute, can benull.- Throws:
ApplicationException- if repostiory request failed
-
getAttribute
Optional<String> getAttribute(IApplication application, String key) throws ApplicationException
Returns the attribute value by thekeyfor the specifiedapplication.- Parameters:
application- the application to obtain the attribute, cannot benull.key- the string field that represents the key of the attribute, cannot benull.- Returns:
- the string field that represents the value of the attribute, never
null. - Throws:
ApplicationException- if repostiory request failed
-
-