fr.paris5.shaman.insight.model
Class PublicationModel

java.lang.Object
  |
  +--fr.paris5.shaman.insight.model.PublicationModel
All Implemented Interfaces:
java.io.Serializable

public class PublicationModel
extends java.lang.Object
implements java.io.Serializable

Persistent implementation of a Publication.

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

Field Summary
private  boolean committed
           
private  java.lang.String format
           
private  java.util.ArrayList fragments
           
private  long id
           
private  java.lang.String state
           
private  TopicModel topic
           
 
Constructor Summary
PublicationModel(TopicModel topic)
          Constructor, does not add the PublicationModel to the topic until commited.
 
Method Summary
(package private)  void addFragmentModel(FragmentModel fragment)
           
 void commit()
          Adds the newly created PublicationModel to its TopicModel.
 java.lang.String getFormat()
           
 FragmentModel[] getFragmentModels()
           
 long getId()
           
 java.lang.String getState()
          Returns current state of the PublicationModel.
 TopicModel getTopicModel()
           
 void setFormat(java.lang.String format)
           
 void setState(java.lang.String newState)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

topic

private final TopicModel topic

id

private final long id

committed

private boolean committed

state

private java.lang.String state

format

private java.lang.String format

fragments

private final java.util.ArrayList fragments
Constructor Detail

PublicationModel

public PublicationModel(TopicModel topic)
Constructor, does not add the PublicationModel to the topic until commited.
Parameters:
topic -  
Method Detail

getId

public long getId()

getState

public java.lang.String getState()
Returns current state of the PublicationModel. An empty String ("") is the default value.
Returns:
Current state of the PublicationModel.

setState

public void setState(java.lang.String newState)
              throws PublicationSealedException

getFormat

public java.lang.String getFormat()

setFormat

public void setFormat(java.lang.String format)

commit

public void commit()
Adds the newly created PublicationModel to its TopicModel.

getTopicModel

public TopicModel getTopicModel()

addFragmentModel

void addFragmentModel(FragmentModel fragment)

getFragmentModels

public FragmentModel[] getFragmentModels()


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