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

Field Summary
private  java.util.ArrayList publicationFilters
           
private  boolean recurse
           
private  Publication[] result
           
(package private) static long serialVersionUID
           
private  long topicId
           
 
Fields inherited from class fr.paris5.shaman.insight.service.Operation
consumed, insightManager, insightModel
 
Constructor Summary
GetTopicPublicationsOperation(long topicId)
           
GetTopicPublicationsOperation(Topic topic)
           
 
Method Summary
private  boolean accepts(PublicationFilter[] filters, Publication publication)
           
 void addFilter(PublicationFilter filter)
           
private  PublicationModel[] collectPublicationModels(TopicModel topicModel)
           
protected  void doExecute(InsightModel insightModel)
           
 Publication[] getResult()
           
 boolean isMutator()
           
 void setRecurse(boolean recurse)
          Set recursive behavior.
 
Methods inherited from class fr.paris5.shaman.insight.service.Operation
execute, getInsightManager, getInsightModel
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

GetTopicPublicationsOperation

public GetTopicPublicationsOperation(Topic topic)

GetTopicPublicationsOperation

public GetTopicPublicationsOperation(long topicId)
Method Detail

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.