Skip to main content

Contexts

To configure an indexing screen, you first need to identify the components for which you wish to apply the configuration. This identification is based on context.


These contexts will be used in the following sections to apply a particular configuration in a specific context.


By default, the following generic contexts are provided:

IdentifierDescription
documentInsertContextCreate document
documentModifyContextModify document
documentReadOnlyContextRead-only document
folderInsertContextCreate folder
folderModifyContextModify folder
folderReadOnlyContextRead-only folder
virtualFolderInsertContextCreate virtual folder
virtualFolderModifyContextModify virtual folder
virtualFolderReadOnlyContextRead-only virtual folder
taskInsertContextCreate task
taskModifyContextModify task
taskReadOnlyContextRead-only task

To identify components more precisely, a context can be defined in terms of a component class. To do this, you need to define it manually using the IdBasedContext class, which allows you to define:

  • component category
  • component class
  • phase

The different phases available are as follows:

ValueDescription
INSERTCreate component
MODIFYModify component
READONLYOpen a component as read-only

The different categories available are as follows:

ValueDescription
DOCUMENTDocument
FOLDERFolder
VIRTUAL_FOLDERVirtual folder
TASKTask

** Example:** Defining a context used to configure the IncomingMail document creation screen.

<bean class="com.flower.docs.domain.componentclass.IdBasedContext">
<property name="id">
<bean class="com.flower.docs.domain.common.Id">
<property name="value" value="CourrierEntrant" />
</bean>
</property>
<property name="category">
<value type="com.flower.docs.domain.component.Category">DOCUMENT</value>
</property>
<property name="phase">
<value type="com.flower.docs.domain.componentclass.Phase">INSERT</value>
</property>
</bean>