Package org.ametys.plugins.ai.search
Class CacheContentVersionChunk
java.lang.Object
org.ametys.plugins.repository.AbstractAmetysObject
org.ametys.plugins.repository.jcr.SimpleAmetysObject<CacheContentVersionChunkFactory>
org.ametys.plugins.ai.search.CacheContentVersionChunk
- All Implemented Interfaces:
AmetysObject,DataHolder,ModifiableDataHolder,JCRAmetysObject,MetadataAwareAmetysObject,ModifiableMetadataAwareAmetysObject,ModifiableAmetysObject,RemovableAmetysObject
A chunk of a cached content version
-
Constructor Summary
ConstructorsConstructorDescriptionCacheContentVersionChunk(javax.jcr.Node node, String parentPath, CacheContentVersionChunkFactory factory) Creates anActivity. -
Method Summary
Modifier and TypeMethodDescriptionGet the content id of the content this chunk belongs to.Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getComposite, getComposite, getDataHolder, getId, getMetadataHolder, getName, getNode, getParent, getParentDataHolder, getParentPath, getPath, getRepositoryData, getRootDataHolder, needsSave, remove, removeValue, rename, revertChanges, saveChanges, setValue, setValue, synchronizeValuesMethods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
dataToJSON, dataToJSON, dataToSAX, dataToSAX, equals, getDataNames, getModelItemTypeExtensionPoint, getType, getValue, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, hasDifferences, hashCode, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultiple, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, hashCodeMethods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
copyTo, copyTo, dataToJSON, dataToJSON, dataToJSON, dataToJSON, dataToSAX, dataToSAX, dataToSAX, dataToSAX, getDataNames, getModelItemTypeExtensionPoint, getType, getValue, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, hasDifferences, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultiple
-
Constructor Details
-
CacheContentVersionChunk
public CacheContentVersionChunk(javax.jcr.Node node, String parentPath, CacheContentVersionChunkFactory factory) Creates anActivity.- Parameters:
node- the node backing thisActivityparentPath- the parentPath in the Ametys hierarchyfactory- the factory which created the activity
-
-
Method Details
-
getContentId
public String getContentId() throws javax.jcr.ValueFormatException, javax.jcr.PathNotFoundException, AmetysRepositoryException, javax.jcr.RepositoryExceptionGet the content id of the content this chunk belongs to.- Returns:
- the content id
- Throws:
javax.jcr.RepositoryException- If an error occurs while accessing the repositoryAmetysRepositoryException- If an error occurs while accessing the Ametys repositoryjavax.jcr.PathNotFoundException- If the specified path is not foundjavax.jcr.ValueFormatException- If the value is not in the expected format
-