org.alfresco.repo.thumbnail.conditions
Class NodeEligibleForRethumbnailingEvaluator

java.lang.Object
  extended by org.alfresco.repo.action.CommonResourceAbstractBase
      extended by org.alfresco.repo.action.ParameterizedItemAbstractBase
          extended by org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
              extended by org.alfresco.repo.thumbnail.conditions.NodeEligibleForRethumbnailingEvaluator
All Implemented Interfaces:
ActionConditionEvaluator, org.springframework.beans.factory.BeanNameAware

public class NodeEligibleForRethumbnailingEvaluator
extends ActionConditionEvaluatorAbstractBase

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:

At all times, thumbnails will be attempted when a user navigates to a page which needs to show the relevant thumbnail (lazy production).

Since:
3.5.0

Field Summary
static java.lang.String NAME
          Evaluator constants
protected  org.alfresco.service.cmr.repository.NodeService nodeService
           
static java.lang.String PARAM_QUIET_PERIOD
           
static java.lang.String PARAM_QUIET_PERIOD_RETRIES_ENABLED
           
static java.lang.String PARAM_RETRY_COUNT
           
static java.lang.String PARAM_RETRY_PERIOD
           
static java.lang.String PARAM_THUMBNAIL_DEFINITION_NAME
           
protected  ThumbnailService thumbnailService
           
 
Fields inherited from class org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
actionConditionDefinition
 
Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
DISPLAY_LABEL, runtimeActionService
 
Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name
 
Constructor Summary
NodeEligibleForRethumbnailingEvaluator()
           
 
Method Summary
protected  void addParameterDefinitions(java.util.List 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)
           
 
Methods inherited from class org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
evaluate, getActionConditionDefintion, init, setPublicCondition
 
Methods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getParamDisplayLabel, getParameterDefintions, getTitleKey, setRuntimeActionService, toString
 
Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
Evaluator constants

See Also:
Constant Field Values

PARAM_THUMBNAIL_DEFINITION_NAME

public static final java.lang.String PARAM_THUMBNAIL_DEFINITION_NAME
See Also:
Constant Field Values

PARAM_RETRY_PERIOD

public static final java.lang.String PARAM_RETRY_PERIOD
See Also:
Constant Field Values

PARAM_RETRY_COUNT

public static final java.lang.String PARAM_RETRY_COUNT
See Also:
Constant Field Values

PARAM_QUIET_PERIOD

public static final java.lang.String PARAM_QUIET_PERIOD
See Also:
Constant Field Values

PARAM_QUIET_PERIOD_RETRIES_ENABLED

public static final java.lang.String PARAM_QUIET_PERIOD_RETRIES_ENABLED
See Also:
Constant Field Values

nodeService

protected org.alfresco.service.cmr.repository.NodeService nodeService

thumbnailService

protected ThumbnailService thumbnailService
Constructor Detail

NodeEligibleForRethumbnailingEvaluator

public NodeEligibleForRethumbnailingEvaluator()
Method Detail

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)

setThumbnailService

public void setThumbnailService(ThumbnailService thumbnailService)

addParameterDefinitions

protected void addParameterDefinitions(java.util.List paramList)
Add parameter definitions

Specified by:
addParameterDefinitions in class ParameterizedItemAbstractBase
Parameters:
paramList - the parameter definitions list

evaluateImpl

public boolean evaluateImpl(ActionCondition actionCondition,
                            org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Description copied from class: ActionConditionEvaluatorAbstractBase
Evaluation implementation

Specified by:
evaluateImpl in class ActionConditionEvaluatorAbstractBase
Parameters:
actionCondition - the action condition
actionedUponNodeRef - the actioned upon node reference
Returns:
the result of the condition evaluation
See Also:
ActionConditionEvaluatorAbstractBase.evaluateImpl(ActionCondition, NodeRef)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.