Package org.ametys.cms.data.ametysobject
Interface IndexableAmetysObject
- All Superinterfaces:
AmetysObject,DataHolder,IndexableDataHolder,ModelAwareAmetysObject,ModelAwareDataHolder
- All Known Subinterfaces:
CalendarEvent,CalendarResource,CommentableContent,Content,ContributorCommentableContent,IndexableJCRAmetysObject,ModifiableCalendarEvent,ModifiableContent,ModifiableIndexableAmetysObject,ModifiableWebContent,ModifiableWorkflowAwareContent,ProgramPart,SharedContent,Task,TasksList,Thread,TraversableProgramPart,WebContent,WorkflowAwareContent
- All Known Implementing Classes:
AbstractProgram,AbstractProgramPart,AbstractTraversableProgramPart,Cart,Catalog,Container,ContentBackupAmetysObject,ContentConsistencyResult,Course,CourseList,CoursePart,DefaultContent,DefaultIndexableAmetysObject,DefaultIndexableTraversableAmetysObject,DefaultSharedContent,DefaultTrashElement,DefaultWebContent,DefaultWorkflowAwareContent,Form,FormEntry,FormPageRule,FormQuestion,JCRCalendar,JCRCalendarEvent,JCRCalendarResource,JCRProjectMember,JCRTask,JCRTasksList,JCRThread,ModifiableDefaultContent,ModifiableDefaultWebContent,OrgUnit,Person,Program,Query,SimpleIndexableAmetysObject,Site,SubProgram,TaskCalendarEvent
Model aware
AmetysObject that can handle indexable data.-
Field Summary
Fields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, STATUS_SUFFIX -
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<SystemPropertyExtensionPoint> Retrieves the system properties extension point of thisAmetysObject, or an emptyOptionalif this object does not support system propertiesdefault List<org.apache.solr.common.SolrInputDocument> indexData(org.apache.solr.common.SolrInputDocument document) Indexes all data and properties of thisAmetysObjectList<org.apache.solr.common.SolrInputDocument> indexData(org.apache.solr.common.SolrInputDocument document, CMSDataContext context) Indexes all data and properties of thisAmetysObjectMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCodeMethods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
copyTo, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAX, getRepositoryData, getValue, getValueOrDefault, hasValue, hasValueOrEmptyMethods inherited from interface org.ametys.cms.data.holder.IndexableDataHolder
getComposite, getExternalComposite, getExternalRepeater, getLocalComposite, getLocalRepeater, getParentDataHolder, getRepeater, getRootDataHolderMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareAmetysObject
getModelMethods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
dataToJSON, dataToJSON, dataToJSON, dataToJSON, dataToJSONForEdition, dataToMap, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, dataToSAX, dataToSAXForEdition, getDataNames, getDefinition, getDifferences, getDifferences, getDifferences, getDifferences, getExternalValue, getLocalValue, getModelItemTypeExtensionPoint, getStatus, getType, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, getValueWithMultiValuedPathSegments, hasDefinition, hasDifferences, hasDifferences, hasDifferences, hasDifferences, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, isMultiple, isMultiple
-
Method Details
-
getSystemPropertyExtensionPoint
Retrieves the system properties extension point of thisAmetysObject, or an emptyOptionalif this object does not support system properties- Returns:
- the system properties extension point of this
AmetysObject
-
indexData
default List<org.apache.solr.common.SolrInputDocument> indexData(org.apache.solr.common.SolrInputDocument document) throws BadItemTypeException Indexes all data and properties of thisAmetysObject- Parameters:
document- the solr document representing thisAmetysObject- Returns:
- additional solr documents that may have been created (ex: repeater entries)
- Throws:
BadItemTypeException- if the saxed value's type does not matches the stored data
-
indexData
List<org.apache.solr.common.SolrInputDocument> indexData(org.apache.solr.common.SolrInputDocument document, CMSDataContext context) throws BadItemTypeException Indexes all data and properties of thisAmetysObject- Parameters:
document- the solr document representing thisAmetysObjectcontext- The context of the data to index- Returns:
- additional solr documents that may have been created (ex: repeater entries)
- Throws:
BadItemTypeException- if the saxed value's type does not matches the stored data
-