fr.paris5.shaman.insight.model
Class InsightModel

fr.paris5.shaman.insight.model.InsightModel
All Implemented Interfaces:
InsightConfigurationConstants

public class InsightModel
implements InsightConfigurationConstants

The root object for accessing all persistent objects of the Model.

Version:
$Id: InsightModel.java,v 1.6 2002/07/10 13:12:43 caillette Exp $
Author:
Laurent Caillette

Field Summary
private  prevayler.AlarmClock clock
           
private  java.lang.String[] commandLogDirectories
          Used by Prevayler 1.03.000 alpha
private  InsightManager insightManager
           
private  boolean persisting
           
private  prevayler.Prevayler prevayler
           
private  long publicationIdCounter
           
static java.lang.String ROLE
           
private  TopicModel rootTopic
           
private  java.lang.String snapshotDirectory
           
private  long topicIdCounter
           
 
Fields inherited from interface fr.paris5.shaman.insight.component.InsightConfigurationConstants
CLASS_ATTRIBUTE, COMMANDLOGS_ELEMENT, DEFAULT_PREVALENCEBASE_DIR, DIR_ELEMENT, EXPOSEDAS_ATTRIBUTE, LOGKITCONFIGURATION_DEFAULT_RESOURCE, PERSISTING_ATTRIBUTE, ROLE_ATTRIBUTE, SNAPSHOTDIR_ELEMENT, SYSTEMCONFIGURATIONURL_ATTRIBUTE
 
Constructor Summary
InsightModel()
           
 
Method Summary
 prevayler.AlarmClock clock()
           
 void compose(org.apache.avalon.framework.component.ComponentManager parentCM)
           
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
(package private)  long createPublicationId()
           
(package private)  long createTopicId()
           
 void executeOperation(Operation operation)
           
 PublicationModel getPublicationModel(Publication publication)
           
 TopicModel getRootTopicModel()
           
 TopicModel getTopicModel(long id)
           
 TopicModel getTopicModel(java.lang.String fqn)
          Not tested at all, may not work.
 TopicModel getTopicModel(Topic topic)
           
 void initialize()
           
private  TopicModel lookFor(TopicModel parent, long id)
           
 

Field Detail

rootTopic

private final TopicModel rootTopic

topicIdCounter

private long topicIdCounter

publicationIdCounter

private long publicationIdCounter

commandLogDirectories

private transient java.lang.String[] commandLogDirectories
Used by Prevayler 1.03.000 alpha

snapshotDirectory

private transient java.lang.String snapshotDirectory

persisting

private transient boolean persisting

prevayler

private transient prevayler.Prevayler prevayler

clock

private final prevayler.AlarmClock clock

ROLE

public static final java.lang.String ROLE

insightManager

private InsightManager insightManager
Constructor Detail

InsightModel

public InsightModel()
Method Detail

executeOperation

public void executeOperation(Operation operation)
                      throws java.lang.Exception

createTopicId

long createTopicId()

getRootTopicModel

public TopicModel getRootTopicModel()

createPublicationId

long createPublicationId()

getTopicModel

public TopicModel getTopicModel(Topic topic)
                         throws InvalidIdException

getTopicModel

public TopicModel getTopicModel(java.lang.String fqn)
                         throws InvalidTopicPathException
Not tested at all, may not work.

lookFor

private TopicModel lookFor(TopicModel parent,
                           long id)

getTopicModel

public TopicModel getTopicModel(long id)
                         throws InvalidIdException

getPublicationModel

public PublicationModel getPublicationModel(Publication publication)
                                     throws InvalidIdException,
                                            PublicationNotOwnedException

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException

clock

public prevayler.AlarmClock clock()

initialize

public void initialize()
                throws java.lang.Exception

compose

public void compose(org.apache.avalon.framework.component.ComponentManager parentCM)
             throws org.apache.avalon.framework.component.ComponentException


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