Class ApplicationAttributeRepository
java.lang.Object
com.e1c.g5.dt.internal.applications.ApplicationAttributeRepository
- All Implemented Interfaces:
IApplicationAttributeRepository
public class ApplicationAttributeRepository
extends Object
implements IApplicationAttributeRepository
The default implementation of
IApplicationAttributeRepository that combines repositories registered for extension
point com.e1c.g5.dt.applications.applicationContributions/attributeManager. If there are no registered
repository it uses the PreferenceBasedAttributeRepository by default.-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
ApplicationAttributeRepository
public ApplicationAttributeRepository()
-
-
Method Details
-
setAttribute
Description copied from interface:IApplicationAttributeRepositorySets the specified attribute for the givenapplication.- Specified by:
setAttributein interfaceIApplicationAttributeRepository- 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.
-
getAttribute
Description copied from interface:IApplicationAttributeRepositoryReturns the attribute value by thekeyfor the specifiedapplication.- Specified by:
getAttributein interfaceIApplicationAttributeRepository- 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.
-