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 thekey
for the specifiedapplication
.void
setAttribute
(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:IApplicationAttributeRepository
Sets the specified attribute for the givenapplication
.- Specified by:
setAttribute
in 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:IApplicationAttributeRepository
Returns the attribute value by thekey
for the specifiedapplication
.- Specified by:
getAttribute
in 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
.
-