Indexing views are composed of two parts:
- component details (metadata, etc.)
- component content (ARender viewer, results table, etc.)
To add a configuration, first define the componentActivityConfigurations
bean and save the configuration, contained in the ComponentActivityConfiguration
object, according to the context:
Example:
<bean id="componentActivityConfigurations" class="com.flower.docs.gui.client.component.activity.ComponentActivityConfigurations">
<property name="activityConfigurations">
<map>
<entry>
<key>
<ref bean="documentModifyContext" />
</key>
<bean class="com.flower.docs.gui.client.component.activity.ComponentActivityConfiguration">
<!-- Custom configuration for document modifications -->
</bean>
</entry>
</map>
</property>
</bean>
General configuration
leftPanelWidthRatio
: defines the ratio occupied by the left panel (value between0.1f
and1.0f
)goBackAfterSave
: determines whether or not the user should be redirected after saving a component (including when applying a response to a task)
Task creation
saveBeforeTaskCreation
: determines whether the component should be saved before a task is created from itsaveAfterTaskCreation
: determines whether the component should be saved after a task has been created from itallowTaskCreationIfInvalid
: determines whether it is possible to create a task from an invalid component (if this is the case and save before/after is enabled, then the status is set toINVALID
)
Confirmations
showSaveConfirmationBeforeGo
: defines the display of a save confirmation popup when a modified component is removed from the index.
If the value isfalse
:- the confirmation popup displayed is a confirmation popup to cancel modifications
showCancelConfirmation
isfalse
, no confirmation popup is displayed
Save
showSaveConfirmationBeforeGo
: defines the display of a save confirmation popup when a modified component is removed from the index.excludedClassesFromSaveConfirmRule
: excludes component classes from the rule defined byshowSaveConfirmation
- If the
showSaveConfirmation
value istrue
, then modifying a component of a class present in this list will not result in the display of a confirmation popup.
- If the
Cancel
showCancelConfirmation
: defines whether or not to display a confirmation popup if modifications are cancelled when indexing a componentexcludedClassesFromCancelConfirmRule
: excludes component classes from the rule defined byshowCancelConfirmation
- If the
showCancelConfirmation
value istrue
, then cancelling modifications to a component of a class present in this list will not result in the display of a confirmation popup.
- If the
Specific configuration
Document
minFilesUpload
: the minimum number of files to upload for a documentmaxFilesUpload
: maximum number of files to upload for a document
Virtual folder
useAlternativeView
: allows results to be displayed as a list rather than in the viewer
Customize the virtual folder search
The search associated with a class of virtual folders can be overridden to hide columns or add criteria.
The identifier associated with the search bean of a DossierVirtuel
virtual folder class is contentDossiervirtualVirtualFolder
.
Task
allowInvalidSaving
: defines whether the component can be saved despite the invalidity of its data
Example:
<bean id="componentActivityConfigurations" class="com.flower.docs.gui.client.component.activity.ComponentActivityConfigurations">
<property name="activityConfigurations">
<map>
<entry>
<key>
<ref bean="documentModifyContext" />
</key>
<bean class="com.flower.docs.gui.client.component.activity.ComponentActivityConfiguration">
<property name="leftPanelWidthRatio" value="0.65f" />
<property name="showSaveConfirmation" value="true"/>
<property name="excludedClassesFromSaveConfirmRule">
<list>
<bean class="com.flower.docs.domain.common.Id">
<property name="value" value="MyClassId"/>
</bean>
</list>
</property>
</bean>
</entry>
</map>
</property>
</bean>