Class SolrWorkflowIndexer
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.content.indexing.solr.SolrWorkflowIndexer
- All Implemented Interfaces:
SolrFieldNames,LogEnabled,Initializable,Component,Serviceable
public class SolrWorkflowIndexer
extends AbstractLogEnabled
implements Component, Serviceable, SolrFieldNames, Initializable
Component indexing the whole workflow of
AmetysObjects.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SolrClientProviderThe Solr client providerprotected WorkflowProviderThe workflow provider.static final StringThe component role.Fields inherited from interface org.ametys.cms.content.indexing.solr.SolrFieldNames
ACL_INIT_VALUE_ALLOWED_GROUPS, ACL_INIT_VALUE_ALLOWED_USERS, ACL_INIT_VALUE_ANONYMOUS, ACL_INIT_VALUE_ANYCONNECTED, ACL_INIT_VALUE_DENIED_GROUPS, ACL_INIT_VALUE_DENIED_USERS, ALL_CONTENT_TYPES, ALL_MIXIN_TYPES, ALL_TAGS, ATTACHMENT_CONTENT_ID, CONTENT_COMMENTS_NONVALIDATED, CONTENT_COMMENTS_VALIDATED, CONTENT_CREATOR, CONTENT_FIRST_VALIDATOR, CONTENT_LANGUAGE, CONTENT_LANGUAGES, CONTENT_LAST_CONTRIBUTOR, CONTENT_LAST_MAJOR_VALIDATOR, CONTENT_LAST_VALIDATOR, CONTENT_NAME, CONTENT_OUTGOING_REFEERENCES_RESOURCE_IDS, CONTENT_TITLES, CONTENT_TYPE_RESOURCE, CONTENT_TYPES, CONTENT_VISIBLE_ATTACHMENT_RESOURCE_IDS, CREATION_DATE, DATE_FOR_SORTING, DATES_FACET, DC_CONTRIBUTOR, DC_COVERAGE, DC_CREATOR, DC_DATE, DC_DESCRIPTION, DC_FORMAT, DC_IDENTIFIER, DC_LANGUAGE, DC_PUBLISHER, DC_RELATION, DC_RIGHTS, DC_SOURCE, DC_SUBJECT, DC_TITLE, DC_TYPE, DOCUMENT_TYPE, EXACT_WS_OPERATOR, EXCERPT, FILENAME, FULL, ID, ID_DV, IS_AMETYS_OBJECT, LANGUAGE_SEPARATOR, LAST_MODIFIED, LENGTH, MIME_TYPES, MIXIN_TYPES, PATH, PSEUDO_CONTENT_TYPE_VALUE_RESOURCE, PSEUDO_CONTENT_TYPES, REPEATER_ENTRY_POSITION, RESOURCE_ANCESTOR_AND_SELF_IDS, RESOURCE_ANCESTOR_IDS, RESOURCE_CREATOR, RESOURCE_DATE, RESOURCE_LAST_MODIFIED, RESOURCE_MIME_TYPE_GROUP, RESOURCE_ROOT_ID, SIMPLE_CONTENT_PARENTS, STEMMED_OPERATOR, SUB_CONTENT, SYSTEM_FULL, TAGS, TITLE, TITLE_SORT, TYPE_CONTENT, TYPE_CONTENT_ATTACHMENT_RESOURCE, TYPE_CONTENT_ATTRIBUTE_RESOURCE, TYPE_REPEATER, TYPE_RESOURCE, TYPE_WF_ENTRY, TYPE_WF_STEP, WORKFLOW_CURRENT_STEPS, WORKFLOW_CURRENT_STEPS_DV, WORKFLOW_ENTRY_STATE, WORKFLOW_HISTORY_STEPS, WORKFLOW_HISTORY_STEPS_DV, WORKFLOW_NAME, WORKFLOW_REF, WORKFLOW_REF_DV, WORKFLOW_STEP_ACTIONID, WORKFLOW_STEP_CALLER, WORKFLOW_STEP_DUEDATE, WORKFLOW_STEP_FINISHDATE, WORKFLOW_STEP_ID, WORKFLOW_STEP_OWNER, WORKFLOW_STEP_STARTDATE, WORKFLOW_STEP_STATUS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidindexAmetysObjectWorkflow(WorkflowAwareAmetysObject object, String workspaceName) Index the workflow history of an Ametys object.voidindexAmetysObjectWorkflow(WorkflowAwareAmetysObject object, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) Index the workflow history of an Ametys object.voidvoidservice(ServiceManager serviceManager) voidunindexAmetysObjectWorkflow(String objectId, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) Unindex the workflow history of an Ametys object.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The component role. -
_solrClientProvider
The Solr client provider -
_workflowProvider
The workflow provider.
-
-
Constructor Details
-
SolrWorkflowIndexer
public SolrWorkflowIndexer()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
initialize
- Specified by:
initializein interfaceInitializable- Throws:
Exception
-
indexAmetysObjectWorkflow
public void indexAmetysObjectWorkflow(WorkflowAwareAmetysObject object, String workspaceName) throws org.apache.solr.client.solrj.SolrServerException, IOException Index the workflow history of an Ametys object.- Parameters:
object- The ametys object.workspaceName- The workspace where to work in- Throws:
org.apache.solr.client.solrj.SolrServerException- If a solr error occurs.IOException- If an I/O error occurs while indexing.
-
indexAmetysObjectWorkflow
public void indexAmetysObjectWorkflow(WorkflowAwareAmetysObject object, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) throws org.apache.solr.client.solrj.SolrServerException, IOException Index the workflow history of an Ametys object.- Parameters:
object- The ametys object.workspaceName- The workspace where to work insolrClient- The solr client to use- Throws:
org.apache.solr.client.solrj.SolrServerException- If a solr error occurs.IOException- If an I/O error occurs while indexing.
-
unindexAmetysObjectWorkflow
public void unindexAmetysObjectWorkflow(String objectId, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) throws org.apache.solr.client.solrj.SolrServerException, IOException Unindex the workflow history of an Ametys object.- Parameters:
objectId- The Ametys object ID.workspaceName- The workspace where to work insolrClient- The solr client to use- Throws:
org.apache.solr.client.solrj.SolrServerException- If a solr error occurs.IOException- If an I/O error occurs while indexing.
-