public interface WorkspaceStorageCache extends MandatoryItemsPersistenceListener
| Modifier and Type | Field and Description |
|---|---|
static String |
LIVE_TIME_PARAMETER_NAME |
static String |
MAX_SIZE_PARAMETER_NAME |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildNodes(org.exoplatform.services.jcr.datamodel.NodeData parent,
List<org.exoplatform.services.jcr.datamodel.NodeData> childNodes)
Adds (update should not be the case!) list of child nodes.
|
void |
addChildNodes(org.exoplatform.services.jcr.datamodel.NodeData parent,
org.exoplatform.services.jcr.impl.core.itemfilters.QPathEntryFilter pattern,
List<org.exoplatform.services.jcr.datamodel.NodeData> childNodes)
Adds (update should not be the case!) list of child nodes.
|
void |
addChildNodesByPage(org.exoplatform.services.jcr.datamodel.NodeData parent,
List<org.exoplatform.services.jcr.datamodel.NodeData> childs,
int fromOrderNum)
Adds page of child nodes.
|
void |
addChildNodesCount(org.exoplatform.services.jcr.datamodel.NodeData parent,
int count)
Adds the total amount of children nodes.
|
void |
addChildProperties(org.exoplatform.services.jcr.datamodel.NodeData parent,
List<org.exoplatform.services.jcr.datamodel.PropertyData> childProperties)
Adds (update should not be the case!) list of child properties.
|
void |
addChildProperties(org.exoplatform.services.jcr.datamodel.NodeData parent,
org.exoplatform.services.jcr.impl.core.itemfilters.QPathEntryFilter pattern,
List<org.exoplatform.services.jcr.datamodel.PropertyData> childProperties)
Adds (update should not be the case!) list of child properties.
|
void |
addChildPropertiesList(org.exoplatform.services.jcr.datamodel.NodeData parent,
List<org.exoplatform.services.jcr.datamodel.PropertyData> childProperties)
Adds (update should not be the case!) list of child properties with empty values.
|
void |
addListener(WorkspaceStorageCacheListener listener)
Adds a new listener
|
void |
addReferencedProperties(String identifier,
List<org.exoplatform.services.jcr.datamodel.PropertyData> refProperties)
Add referenced properties.
|
void |
beginTransaction()
Start buffering process.
|
void |
commitTransaction()
Sort changes and commit data to the cache.
|
ItemData |
get(String identifier)
Get item by identifier.
|
ItemData |
get(String parentIdentifier,
org.exoplatform.services.jcr.datamodel.QPathEntry name,
org.exoplatform.services.jcr.datamodel.ItemType itemType)
Get item by parent identifier and name +index of define type.
|
List<org.exoplatform.services.jcr.datamodel.NodeData> |
getChildNodes(org.exoplatform.services.jcr.datamodel.NodeData parent)
Get child nodes.
|
List<org.exoplatform.services.jcr.datamodel.NodeData> |
getChildNodes(org.exoplatform.services.jcr.datamodel.NodeData parent,
org.exoplatform.services.jcr.impl.core.itemfilters.QPathEntryFilter pattern)
Get child nodes by pattern.
|
List<org.exoplatform.services.jcr.datamodel.NodeData> |
getChildNodesByPage(org.exoplatform.services.jcr.datamodel.NodeData parent,
int fromOrderNum)
Get page of child nodes.
|
int |
getChildNodesCount(org.exoplatform.services.jcr.datamodel.NodeData parent)
Get child nodes count.
|
List<org.exoplatform.services.jcr.datamodel.PropertyData> |
getChildProperties(org.exoplatform.services.jcr.datamodel.NodeData parent)
Get node child properties.
|
List<org.exoplatform.services.jcr.datamodel.PropertyData> |
getChildProperties(org.exoplatform.services.jcr.datamodel.NodeData parent,
org.exoplatform.services.jcr.impl.core.itemfilters.QPathEntryFilter pattern)
Get node child properties by pattern.
|
List<org.exoplatform.services.jcr.datamodel.PropertyData> |
getReferencedProperties(String identifier)
Get referenced properties.
|
long |
getSize()
Cache size.
|
boolean |
isChildNodesByPageSupported() |
boolean |
isEnabled() |
boolean |
isPatternSupported() |
List<org.exoplatform.services.jcr.datamodel.PropertyData> |
listChildProperties(org.exoplatform.services.jcr.datamodel.NodeData parentData)
List node child properties.
A difference from getChildProperties(org.exoplatform.services.jcr.datamodel.NodeData) it's that the
method may return list of node properties (PropertyData) which contains no data
(ValueData).Used for Node.hasProperties(), NodeIndexer.createDoc(). |
void |
put(ItemData item)
Adds (or updates if found) ItemData.
|
void |
remove(ItemData item)
Removes data and its children from cache.
|
void |
remove(String identifier,
ItemData item)
Removes an item from the cache if and only if the current item for the provided
identifier is equals to the provided item.
|
void |
removeListener(WorkspaceStorageCacheListener listener)
Removes a listener
|
void |
rollbackTransaction()
Forget about changes
|
isTXAware, onSaveItemsstatic final String MAX_SIZE_PARAMETER_NAME
static final String LIVE_TIME_PARAMETER_NAME
ItemData get(String parentIdentifier, org.exoplatform.services.jcr.datamodel.QPathEntry name, org.exoplatform.services.jcr.datamodel.ItemType itemType)
parentIdentifier - parent identifiername - item nameitemType - item typeItemData get(String identifier)
identifier - the Item Data identifierList<org.exoplatform.services.jcr.datamodel.NodeData> getChildNodes(org.exoplatform.services.jcr.datamodel.NodeData parent)
parent - the parent node dataList<org.exoplatform.services.jcr.datamodel.NodeData> getChildNodesByPage(org.exoplatform.services.jcr.datamodel.NodeData parent, int fromOrderNum)
parent - the parent node datafromOrderNum - the order number related to page of child nodesList<org.exoplatform.services.jcr.datamodel.NodeData> getChildNodes(org.exoplatform.services.jcr.datamodel.NodeData parent, org.exoplatform.services.jcr.impl.core.itemfilters.QPathEntryFilter pattern)
parent - the parent node datapattern - the filter to useint getChildNodesCount(org.exoplatform.services.jcr.datamodel.NodeData parent)
parent - the parent node dataList<org.exoplatform.services.jcr.datamodel.PropertyData> getChildProperties(org.exoplatform.services.jcr.datamodel.NodeData parent)
parent - the parent node dataList<org.exoplatform.services.jcr.datamodel.PropertyData> getChildProperties(org.exoplatform.services.jcr.datamodel.NodeData parent, org.exoplatform.services.jcr.impl.core.itemfilters.QPathEntryFilter pattern)
parent - the parent node datapattern - the filter to useList<org.exoplatform.services.jcr.datamodel.PropertyData> listChildProperties(org.exoplatform.services.jcr.datamodel.NodeData parentData)
getChildProperties(org.exoplatform.services.jcr.datamodel.NodeData) it's that the
method may return list of node properties (PropertyData) which contains no data
(ValueData).parentData - the parent node dataList<org.exoplatform.services.jcr.datamodel.PropertyData> getReferencedProperties(String identifier)
identifier - referenceable idvoid addReferencedProperties(String identifier, List<org.exoplatform.services.jcr.datamodel.PropertyData> refProperties)
identifier - referenceable idrefProperties - list of propertiesvoid put(ItemData item)
item - the item datavoid addChildNodesCount(org.exoplatform.services.jcr.datamodel.NodeData parent,
int count)
parent - the parent node datacount - the total amount of nodesvoid addChildNodesByPage(org.exoplatform.services.jcr.datamodel.NodeData parent,
List<org.exoplatform.services.jcr.datamodel.NodeData> childs,
int fromOrderNum)
parent - the parent node datachilds - the list of child nodesfromOrderNum - the order number related to page of child nodesvoid addChildNodes(org.exoplatform.services.jcr.datamodel.NodeData parent,
List<org.exoplatform.services.jcr.datamodel.NodeData> childNodes)
parent - the parent node datachildNodes - the list of child nodesvoid addChildNodes(org.exoplatform.services.jcr.datamodel.NodeData parent,
org.exoplatform.services.jcr.impl.core.itemfilters.QPathEntryFilter pattern,
List<org.exoplatform.services.jcr.datamodel.NodeData> childNodes)
parent - the parent node datapattern - the filter to usechildNodes - the list of children nodesvoid addChildProperties(org.exoplatform.services.jcr.datamodel.NodeData parent,
List<org.exoplatform.services.jcr.datamodel.PropertyData> childProperties)
parent - the parent node datachildProperties - the children propertiesvoid addChildProperties(org.exoplatform.services.jcr.datamodel.NodeData parent,
org.exoplatform.services.jcr.impl.core.itemfilters.QPathEntryFilter pattern,
List<org.exoplatform.services.jcr.datamodel.PropertyData> childProperties)
parent - the parent node datapattern - the filter to usechildProperties - the children propertiesvoid addChildPropertiesList(org.exoplatform.services.jcr.datamodel.NodeData parent,
List<org.exoplatform.services.jcr.datamodel.PropertyData> childProperties)
parent - the parent node datachildProperties - the list of child propertiesvoid remove(ItemData item)
item - the item datavoid remove(String identifier, ItemData item)
item - the item dataidentifier - the Item Data identifierboolean isEnabled()
boolean isPatternSupported()
boolean isChildNodesByPageSupported()
long getSize()
void beginTransaction()
void commitTransaction()
void rollbackTransaction()
void addListener(WorkspaceStorageCacheListener listener) throws UnsupportedOperationException
listener - the listener to registerUnsupportedOperationException - in case the listeners are not supported by the
implementationvoid removeListener(WorkspaceStorageCacheListener listener) throws UnsupportedOperationException
listener - the listener to removeUnsupportedOperationException - in case the listeners are not supported by the
implementationCopyright © 2003-2018 eXo Platform SAS. All Rights Reserved.