Package com.adobe.granite.contexthub.api
Class Store
java.lang.Object
com.adobe.granite.contexthub.api.Store
This class is a bean providing information of the ContextHub's store.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns store specific kernel client libraries.getName()Returns store name.getPath()If this store was created from a resource, returns store path (for example: /etc/cloudsettings/default/contexthub/store-name).Returns store properties.Returns store resource type (for example: granite/contexthub/components/stores/store-name).Returns list of run modes in which store should be available.booleanReturns true if store is enabled.voidsetEnabled(boolean enabled) Set whether this store should be enabled or not.voidSet the store's name.voidsetProperties(ValueMap properties) Set all & any properties for this store.toString()Overrides defaulttoString()and returns store specific information.
-
Constructor Details
-
Store
Constructs bean with information of specified store.- Parameters:
resource- store resource
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns true if store is enabled.- Returns:
trueif store is enabled
-
getName
Returns store name.- Returns:
- store name
-
getPath
If this store was created from a resource, returns store path (for example: /etc/cloudsettings/default/contexthub/store-name). Otherwise, returnsnull.- Returns:
- store path, or
null
-
getRunModes
Returns list of run modes in which store should be available.- Returns:
- list of run modes
-
getResourceType
Returns store resource type (for example: granite/contexthub/components/stores/store-name).- Returns:
- store resource type
-
getProperties
Returns store properties.- Returns:
ValueMapcontaining store properties
-
setEnabled
public void setEnabled(boolean enabled) Set whether this store should be enabled or not.- Parameters:
enabled- whether this store should be enabled or not
-
setName
Set the store's name.- Parameters:
name- the store's name
-
setProperties
Set all & any properties for this store.- Parameters:
properties- the properties
-
getCategories
Returns store specific kernel client libraries.- Returns:
Listof kernel client libraries used by the store
-
toString
Overrides defaulttoString()and returns store specific information.
-