fr.paris5.shaman.insight.operation
Class GetTopicPublicationsOperation
java.lang.Object
|
+--fr.paris5.shaman.insight.service.Operation
|
+--fr.paris5.shaman.insight.operation.GetTopicPublicationsOperation
- All Implemented Interfaces:
- java.io.Serializable
- public class GetTopicPublicationsOperation
- extends Operation
Retrieves Topic's Publications, optionally statisfying a set of
constraints (defined as filters
), and,
optionally, recursively from the given Topic.
- Version:
- $Id: GetTopicPublicationsOperation.java,v 1.2 2002/07/25 13:18:08 caillette Exp $
- Author:
- Laurent Caillette
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
topicId
private final long topicId
publicationFilters
private final java.util.ArrayList publicationFilters
recurse
private boolean recurse
result
private Publication[] result
GetTopicPublicationsOperation
public GetTopicPublicationsOperation(Topic topic)
GetTopicPublicationsOperation
public GetTopicPublicationsOperation(long topicId)
setRecurse
public void setRecurse(boolean recurse)
- Set recursive behavior. Default is false.
- Parameters:
recurse
- true if recursive exploration of
sub-Topics needed, false otherwise.- Returns:
-
addFilter
public void addFilter(PublicationFilter filter)
doExecute
protected void doExecute(InsightModel insightModel)
throws InvalidIdException
- Overrides:
doExecute
in class Operation
collectPublicationModels
private PublicationModel[] collectPublicationModels(TopicModel topicModel)
accepts
private boolean accepts(PublicationFilter[] filters,
Publication publication)
getResult
public Publication[] getResult()
isMutator
public boolean isMutator()
- Overrides:
isMutator
in class Operation
Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.