Package com.e1c.g5.dt.applications
Interface IApplicationAttributeRepository
- All Known Implementing Classes:
ApplicationAttributeRepository,PreferenceBasedAttributeRepository,ServerApplicationAttributeRepository
public interface IApplicationAttributeRepository
The application attribute repository provides the access to the application attributes presented by key-value pairs.
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(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 Details
-
setAttribute
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
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
-