com.day.cq.mcm.core.predicate
Class NewsletterActivityObjectPredicate

java.lang.Object
  extended by com.day.cq.mcm.core.predicate.NewsletterActivityObjectPredicate
All Implemented Interfaces:
org.apache.commons.collections.Predicate

@Property(name="predicate.name",
          value="activityObjectTypePredicate",
          propertyPrivate=true)
@Service(value=org.apache.commons.collections.Predicate.class)
public class NewsletterActivityObjectPredicate
extends Object
implements org.apache.commons.collections.Predicate

Predicate evaluating an ActivityObject's type property (resource type) against a configurable resource type.


Field Summary
static String PREDICATE_NAME
          The predicate name used to register the predicate to the PredicateProvider = "activityObjectTypePredicate"
 
Constructor Summary
NewsletterActivityObjectPredicate()
           
 
Method Summary
protected  void activate(ComponentContext context)
           
protected  void deactivate(ComponentContext context)
           
 boolean evaluate(Object object)
          Evaluates true if: The given object is of type Activity using instanceof The activity used the verb 'send' The activity has at least one ActivityObject associated The first ActivityObject's type property is of type DEFAULT_ACTIVITY_OBJECT_TYPE False for all other cases.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREDICATE_NAME

public static final String PREDICATE_NAME
The predicate name used to register the predicate to the PredicateProvider = "activityObjectTypePredicate"

See Also:
Constant Field Values
Constructor Detail

NewsletterActivityObjectPredicate

public NewsletterActivityObjectPredicate()
Method Detail

evaluate

public boolean evaluate(Object object)
Evaluates true if: False for all other cases.

Specified by:
evaluate in interface org.apache.commons.collections.Predicate
See Also:
Predicate.evaluate(java.lang.Object)

activate

protected void activate(ComponentContext context)
                 throws RepositoryException
Throws:
RepositoryException

deactivate

protected void deactivate(ComponentContext context)


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.