public class Store
extends java.lang.Object
Constructor and Description |
---|
Store(Resource resource)
Constructs bean with information of specified store.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getCategories()
Returns store specific kernel client libraries.
|
java.lang.String |
getName()
Returns store name.
|
java.lang.String |
getPath()
If this store was created from a resource, returns store path (for example:
/etc/cloudsettings/default/contexthub/store-name).
|
ValueMap |
getProperties()
Returns store properties.
|
java.lang.String |
getResourceType()
Returns store resource type (for example: granite/contexthub/components/stores/store-name).
|
java.util.Set<java.lang.String> |
getRunModes()
Returns list of run modes in which store should be available.
|
boolean |
isEnabled()
Returns true if store is enabled.
|
void |
setEnabled(boolean enabled)
Set whether this store should be enabled or not.
|
void |
setName(java.lang.String name)
Set the store's name.
|
void |
setProperties(ValueMap properties)
Set all & any properties for this store.
|
java.lang.String |
toString()
Overrides default
toString() and returns store specific information. |
public Store(Resource resource)
resource
- store resourcepublic boolean isEnabled()
true
if store is enabledpublic java.lang.String getName()
public java.lang.String getPath()
null
.null
public java.util.Set<java.lang.String> getRunModes()
public java.lang.String getResourceType()
public ValueMap getProperties()
ValueMap
containing store propertiespublic void setEnabled(boolean enabled)
enabled
- whether this store should be enabled or notpublic void setName(java.lang.String name)
name
- the store's namepublic void setProperties(ValueMap properties)
properties
- the propertiespublic java.util.List<java.lang.String> getCategories()
List
of kernel client libraries used by the storepublic java.lang.String toString()
toString()
and returns store specific information.toString
in class java.lang.Object
name
, path
and resourceType
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"