fr.paris5.shaman.insight.operation
Class CreatePublicationOperation

java.lang.Object
  |
  +--fr.paris5.shaman.insight.service.Operation
        |
        +--fr.paris5.shaman.insight.operation.CreatePublicationOperation
All Implemented Interfaces:
java.io.Serializable

public class CreatePublicationOperation
extends Operation

Creates a new Publication, by performing a resource import from active Legend repository.

Version:
$Id: CreatePublicationOperation.java,v 1.3 2002/07/25 13:18:08 caillette Exp $
Author:
Laurent Caillette
See Also:
Serialized Form

Inner Class Summary
private  class CreatePublicationOperation.MutableImportParameters
           
 
Field Summary
private  java.lang.String contentPath
           
private  java.lang.String format
           
private  ImportedResources importedResources
           
private  CreatePublicationOperation.MutableImportParameters importParameters
           
private  java.lang.String initialState
           
private  java.lang.String legendUserName
           
private  java.lang.String legendUserPassword
           
private  Publication result
           
(package private) static long serialVersionUID
           
private  Topic topic
          Ugly variable for helping MutableImportParameters.
private  long topicId
           
 
Fields inherited from class fr.paris5.shaman.insight.service.Operation
consumed, insightManager, insightModel
 
Constructor Summary
CreatePublicationOperation(long topicId)
          Creates a new Publication for a given Topic.
CreatePublicationOperation(Topic topic)
           
 
Method Summary
 void addContentPath(java.lang.String contentPath)
          Only 1 contentPath value currently supported.
protected  void doExecute(InsightModel insightModel)
           
 ImportedResources getImportedResources()
           
 Publication getResult()
           
 void setFormat(java.lang.String format)
           
 void setInitialState(java.lang.String initialState)
           
 void setLegendUserName(java.lang.String legendUserName)
           
 void setLegendUserPassword(java.lang.String legendUserPassword)
           
 
Methods inherited from class fr.paris5.shaman.insight.service.Operation
execute, getInsightManager, getInsightModel, isMutator
 
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

importParameters

private final CreatePublicationOperation.MutableImportParameters importParameters

initialState

private java.lang.String initialState

contentPath

private java.lang.String contentPath

legendUserName

private java.lang.String legendUserName

legendUserPassword

private java.lang.String legendUserPassword

format

private java.lang.String format

result

private Publication result

importedResources

private ImportedResources importedResources

topic

private Topic topic
Ugly variable for helping MutableImportParameters.
Constructor Detail

CreatePublicationOperation

public CreatePublicationOperation(Topic topic)

CreatePublicationOperation

public CreatePublicationOperation(long topicId)
Creates a new Publication for a given Topic.
Parameters:
topic - The Topic owning the Publication.
impactStore - Update content store from Legend repository.
Method Detail

setInitialState

public void setInitialState(java.lang.String initialState)

addContentPath

public void addContentPath(java.lang.String contentPath)
Only 1 contentPath value currently supported.
Parameters:
contentPath -  

setLegendUserName

public void setLegendUserName(java.lang.String legendUserName)

setLegendUserPassword

public void setLegendUserPassword(java.lang.String legendUserPassword)

setFormat

public void setFormat(java.lang.String format)

getResult

public Publication getResult()

getImportedResources

public ImportedResources getImportedResources()

doExecute

protected void doExecute(InsightModel insightModel)
                  throws java.lang.Exception
Overrides:
doExecute in class Operation


Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.