public class NodeEligibleForRethumbnailingEvaluator extends ActionConditionEvaluatorAbstractBase
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:
ContentTransformer
.system.thumbnail.retryCount
times.system.thumbnail.retryPeriod
seconds
and will use which ever content transformers the content service
gives.system.thumbnail.quietPeriod
seconds.system.thumbnail.quietPeriodRetriesEnabled
to false.Modifier and Type | Field and Description |
---|---|
static String |
NAME
Evaluator constants
|
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
static String |
PARAM_QUIET_PERIOD |
static String |
PARAM_QUIET_PERIOD_RETRIES_ENABLED |
static String |
PARAM_RETRY_COUNT |
static String |
PARAM_RETRY_PERIOD |
static String |
PARAM_THUMBNAIL_DEFINITION_NAME |
protected ThumbnailService |
thumbnailService |
actionConditionDefinition
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionService
name
Constructor and Description |
---|
NodeEligibleForRethumbnailingEvaluator() |
Modifier and Type | Method and Description |
---|---|
protected void |
addParameterDefinitions(List<ParameterDefinition> paramList)
Add parameter definitions
|
boolean |
evaluateImpl(ActionCondition actionCondition,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Evaluation implementation
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setThumbnailService(ThumbnailService thumbnailService) |
evaluate, getActionConditionDefintion, init, setPublicCondition
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toString
setBeanName
public static final String NAME
public static final String PARAM_THUMBNAIL_DEFINITION_NAME
public static final String PARAM_RETRY_PERIOD
public static final String PARAM_RETRY_COUNT
public static final String PARAM_QUIET_PERIOD
public static final String PARAM_QUIET_PERIOD_RETRIES_ENABLED
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected ThumbnailService thumbnailService
public NodeEligibleForRethumbnailingEvaluator()
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setThumbnailService(ThumbnailService thumbnailService)
protected void addParameterDefinitions(List<ParameterDefinition> paramList)
addParameterDefinitions
in class ParameterizedItemAbstractBase
paramList
- the parameter definitions listpublic boolean evaluateImpl(ActionCondition actionCondition, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionConditionEvaluatorAbstractBase
evaluateImpl
in class ActionConditionEvaluatorAbstractBase
actionCondition
- the action conditionactionedUponNodeRef
- the actioned upon node referenceActionConditionEvaluatorAbstractBase.evaluateImpl(ActionCondition, NodeRef)
Copyright © 2005–2017 Alfresco Software. All rights reserved.