Package de.esoco.process.step.entity
Klasse DisplayEntityHistory
java.lang.Object
org.obrel.core.RelatedObject
org.obrel.core.SerializableRelatedObject
de.esoco.process.ProcessElement
de.esoco.process.ProcessFragment
de.esoco.process.step.InteractionFragment
de.esoco.process.step.entity.DisplayEntityHistory
- Alle implementierten Schnittstellen:
de.esoco.lib.manage.Initializable
,de.esoco.lib.property.Updatable
,Serializable
,org.obrel.core.Relatable
public class DisplayEntityHistory
extends InteractionFragment
implements de.esoco.lib.property.Updatable
A fragment that displays the history of an arbitrary Entity and optionally
allows to create new history entries.
Input parameters:
ENTITY_HISTORY_TARGET
: The entity to display and create the history for.ENTITY_HISTORY_ROOT_TARGET
: An optional root entity to create history for.-
ENTITY_HISTORY_TYPES
: The types of the history records to display.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic class
A fragment that displays the value of a history record.static class
A fragment that displays the value and options for anDisplayEntityHistory
parent fragment. -
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final org.obrel.core.RelationType
<HistoryRecord> The entity history table parameter.static final org.obrel.core.RelationType
<de.esoco.lib.datatype.DateRange.StandardDateRange> The history date range to be displayed.static final org.obrel.core.RelationType
<List<org.obrel.core.RelationType<?>>> A standard parameter that can be used to display this fragment in a process step.Input parameter: the origin entities to display the history for.static final org.obrel.core.RelationType
<EntityRelationTypes.HierarchicalQueryMode> Input parameter: the hierarchical query mode (defaults toEntityRelationTypes.HierarchicalQueryMode.UNCONSTRAINED
).static final org.obrel.core.RelationType
<Entity> Input parameter (optional): the root target entity to create history for.static final org.obrel.core.RelationType
<Entity> Input parameter: the target entity to display and create history for.static final org.obrel.core.RelationType
<de.esoco.lib.expression.Predicate<org.obrel.core.Relatable>> Optional: a predicate containing the target query criteria.static final org.obrel.core.RelationType
<Set<HistoryRecord.HistoryType>> Input parameter: the history types to display.Von Klasse geerbte Felder de.esoco.process.step.InteractionFragment
MESSAGE_BOX_ERROR_ICON, MESSAGE_BOX_INFO_ICON, MESSAGE_BOX_QUESTION_ICON, MESSAGE_BOX_WARNING_ICON
Von Klasse geerbte Felder de.esoco.process.ProcessElement
MSG_PARAM_NOT_SET
-
Konstruktorübersicht
KonstruktorBeschreibungDisplayEntityHistory
(Entity historyOrigin, boolean noteEditAllowed, boolean showRootTarget, boolean showTarget) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic List
<de.esoco.lib.expression.Function<? super HistoryRecord, ?>> getHistoryQueryAttributes
(boolean includeRootTarget, boolean includeTarget) A helper method that returns a list of history record attributes to be used in a query.List
<org.obrel.core.RelationType<?>> Returns the collection of input parameters of this fragment.List
<org.obrel.core.RelationType<?>> Returns the list of interaction parameters for this fragment.void
handleInteraction
(org.obrel.core.RelationType<?> interactionParam) Must be implemented by subclasses to handle interactions for this fragment.void
init()
Must be implemented to initialize the interaction parameters of this fragment.protected void
This method will be invoked after the initialization of a fragment and it's hierarchy of sub-fragments has been completed.static de.esoco.lib.expression.Predicate
<org.obrel.core.Relatable> initHistoryParameter
(ProcessFragment processFragment, org.obrel.core.RelationType<HistoryRecord> historyParam, Collection<Entity> rootTargets, boolean includeTarget, HistoryRecord.HistoryType... excludedTypes) Initializes the a history parameter with a history query for certain targets.protected void
performHistoryRecordAction
(HistoryRecord historyRecord) This method can be overridden by subclasses to react to an action event for a certain history record.void
Resets all history input criteria.void
update()
Updates the history display to reflect the state of the input parameters of this fragment.Von Klasse geerbte Methoden de.esoco.process.step.InteractionFragment
abort, abortFragment, addDisplayParameters, addInputParameters, addInputParameters, addPanelParameters, addParameterUpdateListener, addSubFragment, addSubFragment, addSubFragment, addSubFragment, addViewFragment, afterInteraction, applyAllCoupledParameters, attach, button, buttons, buttons, canRollback, chart, checkBox, checkBox, checkBoxes, cleanup, clearInteractionParameters, clearSelection, comboBox, dateParam, deleteRelation, display, dropDown, dropDown, enableEdit, entityParam, entityParam, enumParam, executeCleanupActions, finish, finishFragment, flagParam, fragmentParam, get, getFragmentParameter, getParameterInteractionHandler, getParameterValidations, getParent, getProcess, getProcessStep, getRelation, getRelations, getRoot, getTemporaryParameterId, getValueDatatype, hasInteraction, icon, iconButtons, iconButtons, image, imageButtons, initProcessStep, initQueryParameter, input, input, input, inputAttr, inputAttr, inputDate, inputTags, inputText, inputTextLines, insertInputParameters, insertInputParameters, intParam, isAttached, isInitialized, label, label, layout, listParam, lockEntityForProcess, lockEntityForStep, markFragmentInputParams, markInputParams, markParameterHierarchyAsModified, notifyParameterUpdateListeners, panel, panel, panel, panel, panel, panel, param, param, param, paramLike, prepareInteraction, prepareUpload, prepareUpload, radioButtons, reloadEntity, removeInteractionParameters, removeSubFragment, removeViewFragment, rollback, set, setContinueOnInteraction, setParam, setParameterInteractionHandler, setParameterValuesFromEntity, setParameterValuesFromEntity, setParent, setup, showConfirmationMessage, showDialog, showDialog, showDialog, showErrorMessage, showInfoMessage, showMessageBox, showMessageBox, showModalDialog, showView, showWarningMessage, structureModified, textParam, title, updateAllCoupledParameters, updateEntityFromParameterValues, updateUserInterface, validateFragmentParameters, validateParameters, validationError
Von Klasse geerbte Methoden de.esoco.process.ProcessFragment
addCleanupAction, addLayoutFiller, addPanel, addPanel, addProcessStepMessage, addSelectionDependency, addSelectionDependency, addStackPanel, addTabPanel, annotateForEntityQuery, annotateForEntityQuery, annotateParameter, applyDerivedParameter, applyDerivedParameters, applyExtraAttribute, changeDate, checkParameter, clearUIFlag, clearUIFlag, collectDerivedParameter, collectDerivedParameters, deleteParameters, disableElements, disableElements, disableElements, disableMultiSelectionElements, displayHistoryValue, enableAllElements, getAbsoluteFilePath, getAllowedElements, getAllowedValues, getCurrentQuery, getDerivedParameterValue, getFragmentId, getInputMode, getInteractiveInputParameter, getNamedTmpListType, getNamedTmpParameterType, getParameter, getParameterAnnotation, getParameterRelation, getProcessUser, getSelectionIndex, getSubFragment, getSubFragments, getTemporaryListType, getTemporaryListType, getTemporaryParameterName, getTemporaryParameterPackage, getTemporaryParameterType, getTemporaryParameterType, getTemporaryParameterType, getTemporarySetType, getUIProperties, getUIProperties, getUIProperty, getUserSetting, getUserSettings, hasFlagParameter, hasParameter, hasUIFlag, hasUserSetting, initChartParameter, initCountChartParameter, initProgressParameter, isInteractiveInput, isPanelParameter, lockEntity, markParameterAsModified, performParameterValidations, prepareDateInput, prepareDownload, prepareDownload, removeAllSubFragments, removeAllUIProperties, removeAllUIProperties, removeCleanupAction, removePanel, removeParameterAnnotation, removeSubFragment, removeTemporaryParameterType, removeUIProperties, setAllowedElements, setAllowedValues, setAllowedValues, setDatePeriod, setEnabled, setEnabled, setHtmlSize, setImmediateAction, setImmediateAction, setImmediateAction, setInteractive, setInteractive, setInteractive, setInteractive, setInteractive, setLayout, setParameter, setParameter, setParameterBounds, setProcessStepInfo, setProcessStepMessage, setProgressIndicator, setSelectionDependency, setSelectionDependency, setUIFlag, setUIFlag, setUIProperty, setUIProperty, setUIProperty, setUIProperty, setVisible, setVisible, spawnProcess, storeEntity, throwMissingParameterException, unlockEntity
Von Klasse geerbte Methoden de.esoco.process.ProcessElement
addDisplayParameters, continueOnInteraction, hasInteractionParameter, markInputParams, params, removeAllParameterValidations, removeInteractionParameters, removeParameterValidations, removeParameterValidations, setMandatory, setParameterNotEmptyValidations, setParameterNotEmptyValidations, setParameterNotNullValidations, setParameterNotNullValidations, setParameterValidation, setParameterValidation, staticParams
Von Klasse geerbte Methoden org.obrel.core.RelatedObject
notifyRelationListeners, readRelations, relationsEqual, relationsHashCode, relationsString, set, toString, transform, writeRelations
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.obrel.core.Relatable
deleteRelation, deleteRelations, getAll, getOption, getRelationCount, getRelations, hasFlag, hasRelation, hasRelations, init, set, set, set, setOption, streamRelations
-
Felddetails
-
ENTITY_HISTORY_FRAGMENT
public static final org.obrel.core.RelationType<List<org.obrel.core.RelationType<?>>> ENTITY_HISTORY_FRAGMENTA standard parameter that can be used to display this fragment in a process step. -
ENTITY_HISTORY_TARGET
Input parameter: the target entity to display and create history for. -
ENTITY_HISTORY_ROOT_TARGET
Input parameter (optional): the root target entity to create history for. -
ENTITY_HISTORY_TARGET_CRITERIA
public static final org.obrel.core.RelationType<de.esoco.lib.expression.Predicate<org.obrel.core.Relatable>> ENTITY_HISTORY_TARGET_CRITERIAOptional: a predicate containing the target query criteria. If set the history target parameter will be ignored. -
ENTITY_HISTORY_ORIGINS
Input parameter: the origin entities to display the history for. -
ENTITY_HISTORY_TYPES
public static final org.obrel.core.RelationType<Set<HistoryRecord.HistoryType>> ENTITY_HISTORY_TYPESInput parameter: the history types to display. -
ENTITY_HISTORY_QUERY_MODE
public static final org.obrel.core.RelationType<EntityRelationTypes.HierarchicalQueryMode> ENTITY_HISTORY_QUERY_MODEInput parameter: the hierarchical query mode (defaults toEntityRelationTypes.HierarchicalQueryMode.UNCONSTRAINED
). -
ENTITY_HISTORY
The entity history table parameter. -
ENTITY_HISTORY_DATE
public static final org.obrel.core.RelationType<de.esoco.lib.datatype.DateRange.StandardDateRange> ENTITY_HISTORY_DATEThe history date range to be displayed.
-
-
Konstruktordetails
-
DisplayEntityHistory
public DisplayEntityHistory(Entity historyOrigin, boolean noteEditAllowed, boolean showRootTarget, boolean showTarget) Creates a new instance.- Parameter:
historyOrigin
- The origin entity of to always limit the history to or NULL for all historynoteEditAllowed
- TRUE to allow the editing of existing history notesshowRootTarget
- TRUE to display the root target columnshowTarget
- TRUE to display the target column
-
-
Methodendetails
-
getHistoryQueryAttributes
public static List<de.esoco.lib.expression.Function<? super HistoryRecord,?>> getHistoryQueryAttributes(boolean includeRootTarget, boolean includeTarget) A helper method that returns a list of history record attributes to be used in a query.- Parameter:
includeRootTarget
- TRUE to includeHistoryRecord.ROOT_TARGET
includeTarget
- TRUE to includeHistoryRecord.TARGET
- Gibt zurück:
- The list of history attributes
-
initHistoryParameter
public static de.esoco.lib.expression.Predicate<org.obrel.core.Relatable> initHistoryParameter(ProcessFragment processFragment, org.obrel.core.RelationType<HistoryRecord> historyParam, Collection<Entity> rootTargets, boolean includeTarget, HistoryRecord.HistoryType... excludedTypes) Initializes the a history parameter with a history query for certain targets.- Parameter:
processFragment
- The process fragmenthistoryParam
- The history parameter to initializerootTargets
- The target entities to query the history forincludeTarget
- TRUE to always include the history target column or else only if multiple targets existexcludedTypes
- An optional list of excluded history record types- Gibt zurück:
- The criteria predicate for the history record query
-
getInputParameters
Returns the collection of input parameters of this fragment. These must be a subset ofInteractionFragment.getInteractionParameters()
. The default implementation returns a mutable collection that can been modified directly by a subclass. Or it can be overridden by subclasses to return their own input parameter collection.- Setzt außer Kraft:
getInputParameters
in KlasseInteractionFragment
- Gibt zurück:
- The list of this fragment's input parameters
-
getInteractionParameters
Returns the list of interaction parameters for this fragment. The default implementation returns a mutable list that can been modified directly by a subclass. Or it can be overridden by subclasses to return their own interaction parameter list.- Setzt außer Kraft:
getInteractionParameters
in KlasseInteractionFragment
- Gibt zurück:
- The list of this fragment's interaction parameters
-
handleInteraction
Must be implemented by subclasses to handle interactions for this fragment. The default implementation does nothing.- Setzt außer Kraft:
handleInteraction
in KlasseInteractionFragment
- Parameter:
interactionParam
- The interaction parameter- Löst aus:
Exception
- Any kind of exception may be thrown in case of errors
-
init
Must be implemented to initialize the interaction parameters of this fragment.- Angegeben von:
init
in Schnittstellede.esoco.lib.manage.Initializable
- Angegeben von:
init
in KlasseInteractionFragment
- Löst aus:
Exception
- Any kind of exception may be thrown in case of errors
-
resetHistoryCriteria
public void resetHistoryCriteria()Resets all history input criteria. -
update
public void update()Updates the history display to reflect the state of the input parameters of this fragment.- Angegeben von:
update
in Schnittstellede.esoco.lib.property.Updatable
-
initComplete
protected void initComplete()This method will be invoked after the initialization of a fragment and it's hierarchy of sub-fragments has been completed. This means that when this method is invoked on a child fragment it's parent has been initialized but it'sInteractionFragment.initComplete()
method hasn't been invoked yet.The purpose of this method is for subclasses to execute code that depends on a full initialization. The default implementation does nothing.
- Setzt außer Kraft:
initComplete
in KlasseInteractionFragment
-
performHistoryRecordAction
This method can be overridden by subclasses to react to an action event for a certain history record. The default implementation does nothing.- Parameter:
historyRecord
- The history record for which the even occurred
-