|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.uka.ipd.consensus.foundation.AbstractConsensusFoundationModule
de.uka.ipd.consensus.impl.EvolutionManagerImpl
TODO
| Constructor Summary | |
EvolutionManagerImpl()
|
|
| Method Summary | |
void |
addEvolutionListener(EvolutionListener listener)
Registers a new EvolutionListener. |
void |
deleteAssociation(User user,
Association assoc)
Deletes an association and all dependant elements (e.g. topics, if it makes sense). |
void |
deleteAttribute(User user,
Topic topic,
Attribute attr)
Deletes an attribute (and all dependant elements if there are any). |
void |
deleteTopic(User user,
Topic topic)
Deletes a topic and all dependant elements (attributes and, if it makes sense, associations), but not the subtopics of the topic. |
void |
deleteTopicAndSubtopics(User user,
Topic topic)
Deletes a topic and all dependant elements, including the subtopics of the topic. |
String |
getVersion()
Returns a version string of the implementation of this module. |
void |
init(Properties config,
LoggingManager logging,
UserManager users,
OntologyManager ontology)
This method is called by the ConsensusFoundation constructor to initialize the EvolutionManager. |
void |
initCompleted(Properties config,
ConsensusFoundationManager cfm)
This method is called by the ConsensusFoundation constructor after all available modules have
been initialized (i.e. their init() method has been called). |
Topic |
makeClass(User user,
Topic instance)
Converts an instance topic into a class topic. |
Topic |
makeInstance(User user,
Topic cls)
Converts an instance topic into a class topic. |
Topic |
mergeTopics(User user,
Topic topic1,
Topic topic2)
Merges two topics. |
void |
removeEvolutionListener(EvolutionListener listener)
Removes an EvolutionListener, if it is registered with the EvolutionManager (otherwise this call is ignored). |
void |
shutdown()
Called by ConsensusFoundation.shutdown() when the application shuts down.
|
| Methods inherited from class de.uka.ipd.consensus.foundation.AbstractConsensusFoundationModule |
finalize, getConsensusFoundationManager, getDynamicRightsManager, getEvolutionManager, getIncentiveManager, getLoggingManager, getOntologyManager, getRatingManager, getUserManager |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.uka.ipd.consensus.foundation.ConsensusFoundationModule |
getConsensusFoundationManager |
| Constructor Detail |
public EvolutionManagerImpl()
| Method Detail |
public void init(Properties config,
LoggingManager logging,
UserManager users,
OntologyManager ontology)
throws Exception
EvolutionManagerThis method is called by the ConsensusFoundation constructor to initialize the EvolutionManager.
init in interface EvolutionManagerconfig - all entries from ConsensusFoundation.propertieslogging - the successfully initialized LoggingManager instanceusers - the the successfully initialized UserManager instanceontology - the the successfully initialized OntologyManager instance
Exception - if any error occurs (startup of the application is aborted in this case)ConsensusFoundation.ConsensusFoundation()
public void initCompleted(Properties config,
ConsensusFoundationManager cfm)
throws Exception
ConsensusFoundationModuleConsensusFoundation constructor after all available modules have
been initialized (i.e. their init() method has been called). Here a module can perform some final
initialization that is dependant on other modules.
initCompleted in interface ConsensusFoundationModuleinitCompleted in class AbstractConsensusFoundationModuleExceptionpublic void shutdown()
ConsensusFoundationModuleConsensusFoundation.shutdown() when the application shuts down.
When implementing this method make sure that the shutdown code is executed only once even if this method is called multiple times.
shutdown in interface ConsensusFoundationModuleshutdown in class AbstractConsensusFoundationModule
public void deleteTopic(User user,
Topic topic)
throws EvolutionManagerException,
DynamicRightsManagerException
EvolutionManager
deleteTopic in interface EvolutionManageruser - the user who wants to delete the topictopic - the topic to be deleted
EvolutionManagerException - if the topic could not be deleted
DynamicRightsManagerException - if the user is not allowed to delete the topicTopic.isClassTopic(),
DynamicRightsManager.mayDeleteTopic(User, Topic),
OntologyManager.deleteTopic(Topic),
EvolutionManager.deleteTopicAndSubtopics(User, Topic)
public void deleteTopicAndSubtopics(User user,
Topic topic)
throws EvolutionManagerException,
DynamicRightsManagerException
EvolutionManager
deleteTopicAndSubtopics in interface EvolutionManageruser - the user who wants to delete the topictopic - the topic to be deleted
EvolutionManagerException - if the topic and its subtopics could not be deleted
DynamicRightsManagerException - if the user is not allowed to delete the topic and its subtopicsDynamicRightsManager.mayDeleteTopic(User, Topic),
OntologyManager.deleteTopic(Topic),
EvolutionManager.deleteTopic(User, Topic)
public void deleteAssociation(User user,
Association assoc)
throws EvolutionManagerException,
DynamicRightsManagerException
EvolutionManager
deleteAssociation in interface EvolutionManageruser - the user who wants to delete the associationassoc - the association to be deleted
EvolutionManagerException - if the association could not be deleted
DynamicRightsManagerException - if the user is not allowed to delete the associationDynamicRightsManager.mayDeleteAssociation(User, Association),
OntologyManager.deleteAssociation(Association)
public void deleteAttribute(User user,
Topic topic,
Attribute attr)
throws EvolutionManagerException,
DynamicRightsManagerException
EvolutionManager
deleteAttribute in interface EvolutionManageruser - the user who wants to delete the attributetopic - the topic from which the attribute will be removedattr - the attribute to be deleted
EvolutionManagerException - if the attribute could not be deleted
DynamicRightsManagerException - if the user is not allowed to delete the attributeOntologyManager.deleteAttribute(Attribute)
public Topic mergeTopics(User user,
Topic topic1,
Topic topic2)
throws EvolutionManagerException,
DynamicRightsManagerException
EvolutionManagerNote that the topic returned is not necessarily one of the argument topics. An implementation may decide to return a newly created topic.
mergeTopics in interface EvolutionManageruser - the user who wants to merge the topicstopic1 - the first topic to be mergedtopic2 - the second topic to be merged
DynamicRightsManagerException - if the user is not allowed to merge the topics
EvolutionManagerException - if the two topics could not be mergedDynamicRightsManager.mayMergeTopics(User, Topic, Topic)
public Topic makeClass(User user,
Topic instance)
throws EvolutionManagerException,
DynamicRightsManagerException
EvolutionManager
makeClass in interface EvolutionManageruser - the user who wants to convert the topic into a class topicinstance - the instance topic to be converted
DynamicRightsManagerException - if the user is not allowed to convert the topic
EvolutionManagerException - if the instance topic could not be converted into a class topicTopic.isClassTopic()
public Topic makeInstance(User user,
Topic cls)
throws EvolutionManagerException,
DynamicRightsManagerException
EvolutionManagerThis is more than just calling Topic.setClassTopic() since the implementation has to take care
what happens with subclasses of the class topic.
makeInstance in interface EvolutionManageruser - the user who wants to convert the topic into an instance topiccls - the class topic to be converted
DynamicRightsManagerException - if the user is not allowed to convert the topic
EvolutionManagerException - if the class topic could not be converted into an instance topicTopic.isClassTopic()public void addEvolutionListener(EvolutionListener listener)
EvolutionManager
addEvolutionListener in interface EvolutionManagerlistener - the EvolutionListener to be addedpublic void removeEvolutionListener(EvolutionListener listener)
EvolutionManager
removeEvolutionListener in interface EvolutionManagerlistener - the EvolutionListener to be removedpublic String getVersion()
ConsensusFoundationModule
getVersion in interface ConsensusFoundationModule
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||