Class NodeEligibleForRethumbnailingEvaluator
java.lang.Object
org.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
org.alfresco.repo.thumbnail.conditions.NodeEligibleForRethumbnailingEvaluator
- All Implemented Interfaces:
ActionConditionEvaluator,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
@Deprecated
public class NodeEligibleForRethumbnailingEvaluator
extends ActionConditionEvaluatorAbstractBase
Deprecated.
The thumbnails code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.
This action evaluator is specifically created for the
Thumbnail Service.
It is used to evaluate whether a ThumbnailDefinition should be executed - based on
previous failed thumbnail attempts for that definition on that source node, as well as some
configuration data.
The behaviour is as follows:
- All content nodes are eligible for thumbnailing initially. Of course thumbnails can only ever be
attempted for those content mime types that have at least one registered and active
ContentTransformer. - If the first attempt to produce a thumbnail for a node fails, then it may be retried up to a maximum of
system.thumbnail.retryCounttimes. - These initial retries to produce a thumbnail will occur not more often than every
system.thumbnail.retryPeriodseconds and will use which ever content transformers the ContentService#getTransformer(String, String content service gives. - If a thumbnail is not successfully produced for a node after these attempts then it is considered to be a 'difficult' piece of content with respect to thumbnailing and the assumption is that a thumbnail may never be available for it. However, in order to allow for the possibility of software upgrades or similiar, which may make the content thumbnailable at a later date, further attempts will be made, but at a much reduced frequency.
- Difficult pieces of content will not be attempted more often than every
system.thumbnail.quietPeriodseconds. - The attempts to thumbnail difficult pieces of content can be disabled by setting
system.thumbnail.quietPeriodRetriesEnabledto false.
- Since:
- 3.5.0
- Author:
- Neil Mc Erlean.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Evaluator constantsprotected NodeServiceDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.protected ThumbnailServiceDeprecated.Fields inherited from class org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
actionConditionDefinitionFields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionServiceFields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddParameterDefinitions(List<ParameterDefinition> paramList) Deprecated.Add parameter definitionsbooleanevaluateImpl(ActionCondition actionCondition, NodeRef actionedUponNodeRef) Deprecated.Evaluation implementationvoidsetNodeService(NodeService nodeService) Deprecated.voidsetThumbnailService(ThumbnailService thumbnailService) Deprecated.Methods inherited from class org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
evaluate, getActionConditionDefintion, init, setPublicConditionMethods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toStringMethods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
-
Field Details
-
NAME
Deprecated.Evaluator constants- See Also:
-
PARAM_THUMBNAIL_DEFINITION_NAME
Deprecated.- See Also:
-
PARAM_RETRY_PERIOD
Deprecated.- See Also:
-
PARAM_RETRY_COUNT
Deprecated.- See Also:
-
PARAM_QUIET_PERIOD
Deprecated.- See Also:
-
PARAM_QUIET_PERIOD_RETRIES_ENABLED
Deprecated.- See Also:
-
nodeService
Deprecated. -
thumbnailService
Deprecated.
-
-
Constructor Details
-
NodeEligibleForRethumbnailingEvaluator
public NodeEligibleForRethumbnailingEvaluator()Deprecated.
-
-
Method Details
-
setNodeService
Deprecated. -
setThumbnailService
Deprecated. -
addParameterDefinitions
Deprecated.Add parameter definitions- Specified by:
addParameterDefinitionsin classParameterizedItemAbstractBase- Parameters:
paramList- the parameter definitions list
-
evaluateImpl
Deprecated.Description copied from class:ActionConditionEvaluatorAbstractBaseEvaluation implementation- Specified by:
evaluateImplin classActionConditionEvaluatorAbstractBase- Parameters:
actionCondition- the action conditionactionedUponNodeRef- the actioned upon node reference- Returns:
- the result of the condition evaluation
- See Also:
-