|
|||||||||||
| 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.LoggingManagerImpl
TODO
| Field Summary |
| Fields inherited from interface de.uka.ipd.consensus.foundation.logging.LoggingManager |
LEVEL_ALL, LEVEL_DEBUG, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_OFF, LEVEL_WARN |
| Constructor Summary | |
LoggingManagerImpl()
|
|
| Method Summary | |
void |
associationCreated(OntologyEvent e)
Called by the OntologyManager when an association is created. |
void |
associationDeleted(EvolutionEvent event)
Called by the EvolutionManager when an association is deleted. |
void |
associationTopicAdded(OntologyEvent event)
Called by the OntologyManager when topic is added as a player to an association. |
void |
associationTopicRemoved(OntologyEvent event)
Called by the OntologyManager when player topic is removed from an association. |
void |
attributeAdded(OntologyEvent event)
Called by the OntologyManager when an attribute is added to a topic. |
void |
attributeRemoved(OntologyEvent event)
Called by the OntologyManager when an attribute is removed from a topic. |
void |
attributeValueChanged(OntologyEvent event)
Called by the OntologyManager when an attribute's value is changed. |
void |
conceptCommentChanged(OntologyEvent event)
Called by the OntologyManager when the comment of a concept has changed. |
void |
conceptNameChanged(OntologyEvent event)
Called by the OntologyManager when the name of a concept has changed. |
void |
conceptRatingChanged(RatingEvent event)
Called by the RatingManager when an existing concept's rating was changed. |
void |
conceptRatingRemoved(RatingEvent event)
Called by the RatingManager when a concept's rating was removed. |
void |
conceptRatingSet(RatingEvent event)
Called by the RatingManager when a new rating was added to a concept. |
void |
conceptTypeChanged(OntologyEvent event)
Called by the OntologyManager when a type is added to or removed from a concept. |
void |
debug(Object message)
Logs the given message if the debug loglevel is active. |
void |
error(Object message)
Logs the given message if the error loglevel is active. |
void |
fatal(Object message)
Logs the given message if the fatal loglevel is active. |
int |
getLevel()
Returns the current loglevel. |
String |
getVersion()
Returns a version string of the implementation of this module. |
void |
info(Object message)
Logs the given message if the info loglevel is active. |
void |
init(Properties config)
This method is called by the ConsensusFoundation constructor to initialize the LoggingManager. |
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). |
boolean |
isDebugEnabled()
Checks if the debug loglevel is enabled. |
boolean |
isErrorEnabled()
Checks if the error loglevel is enabled. |
boolean |
isFatalEnabled()
Checks if the fatal loglevel is enabled. |
boolean |
isInfoEnabled()
Checks if the info loglevel is enabled. |
boolean |
isWarnEnabled()
Checks if the warning loglevel is enabled. |
protected void |
log(int level,
Object message)
|
void |
occurrenceChanged(OntologyEvent event)
Called by the OntologyManager when an occurrence's value is changed. |
void |
occurrenceCreated(OntologyEvent event)
Called by the OntologyManager when an occurrence is created. |
void |
occurrenceRemoved(OntologyEvent event)
Called by the OntologyManager when an occurrence is removed from a topic. |
void |
setLevel(int level)
Changes the loglevel. |
void |
shutdown()
Called by ConsensusFoundation.shutdown() when the application shuts down.
|
void |
synonymAdded(OntologyEvent event)
Called by the OntologyManager when a synonym is added to a base topic. |
void |
synonymRemoved(OntologyEvent event)
Called by the OntologyManager when a synonym is removed from a base topic. |
void |
topicClassChanged(OntologyEvent event)
Called by the OntologyManager when a superclass is added to or removed from a topic. |
void |
topicCreated(OntologyEvent e)
Called by the OntologyManager when a topic is created. |
void |
topicDeleted(EvolutionEvent event)
Called by the EvolutionManager when a topic is deleted. |
void |
topicsMerged(EvolutionEvent event)
Called by the EvolutionManager when two topics are merged. |
void |
userCreated(UserEvent event)
Called by the UserManager when a new user account has been created |
void |
userLoggedIn(UserEvent event)
Called by the UserManager when a user logged on. |
void |
userLoggedOut(UserEvent event)
Called by the UserManager when a user logged off. |
void |
userRatingChanged(RatingEvent event)
Called by the RatingManager when an existing user's rating was changed. |
void |
userRatingRemoved(RatingEvent event)
Called by the RatingManager when a user's rating was removed. |
void |
userRatingSet(RatingEvent event)
Called by the RatingManager when a new rating was added to an user. |
void |
warn(Object message)
Logs the given message if the warning loglevel is active. |
protected void |
write(StringBuffer buffer)
|
| 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 LoggingManagerImpl()
| Method Detail |
public void init(Properties config)
throws Exception
LoggingManagerConsensusFoundation constructor to initialize the LoggingManager.
init in interface LoggingManagerconfig - all entries from ConsensusFoundation.properties
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 AbstractConsensusFoundationModulepublic void setLevel(int level)
LoggingManager
setLevel in interface LoggingManagerlevel - the new loglevelLoggingManager.getLevel()public int getLevel()
LoggingManagerReturns the current loglevel. See the loglevel constants in this interface.
To check whether a certain level is active, use one of the isXXXEnabled() methods.
getLevel in interface LoggingManagerLoggingManager.setLevel(int)public boolean isDebugEnabled()
LoggingManager
isDebugEnabled in interface LoggingManagertrue if debugging messages are logged, false otherwiseLoggingManager.LEVEL_DEBUGpublic boolean isInfoEnabled()
LoggingManager
isInfoEnabled in interface LoggingManagertrue if info messages are logged, false otherwiseLoggingManager.LEVEL_INFOpublic boolean isWarnEnabled()
LoggingManager
isWarnEnabled in interface LoggingManagertrue if warning messages are logged, false otherwiseLoggingManager.LEVEL_WARNpublic boolean isErrorEnabled()
LoggingManager
isErrorEnabled in interface LoggingManagertrue if error messages are logged, false otherwiseLoggingManager.LEVEL_ERRORpublic boolean isFatalEnabled()
LoggingManager
isFatalEnabled in interface LoggingManagertrue if fatal messages are logged, false otherwiseLoggingManager.LEVEL_FATAL
protected void log(int level,
Object message)
protected void write(StringBuffer buffer)
public void debug(Object message)
LoggingManager
debug in interface LoggingManagermessage - the message to be loggedLoggingManager.isDebugEnabled()public void info(Object message)
LoggingManager
info in interface LoggingManagermessage - the message to be loggedLoggingManager.isInfoEnabled()public void warn(Object message)
LoggingManager
warn in interface LoggingManagermessage - the message to be loggedLoggingManager.isWarnEnabled()public void error(Object message)
LoggingManager
error in interface LoggingManagermessage - the message to be loggedLoggingManager.isErrorEnabled()public void fatal(Object message)
LoggingManager
fatal in interface LoggingManagermessage - the message to be loggedLoggingManager.isFatalEnabled()public void userCreated(UserEvent event)
UserListener
userCreated in interface UserListenerevent - the UserEvent object containing the new user accountpublic void userLoggedIn(UserEvent event)
UserListener
userLoggedIn in interface UserListenerevent - the UserEvent object containing the user who logged onpublic void userLoggedOut(UserEvent event)
UserListener
userLoggedOut in interface UserListenerevent - the UserEvent object containing the user who logged offpublic void conceptRatingChanged(RatingEvent event)
RatingListener
conceptRatingChanged in interface RatingListenerevent - the RatingEvent object containing the user, his rating and the rated conceptpublic void conceptRatingSet(RatingEvent event)
RatingListener
conceptRatingSet in interface RatingListenerevent - the RatingEvent object containing the user, his rating and the rated conceptpublic void conceptRatingRemoved(RatingEvent event)
RatingListener
conceptRatingRemoved in interface RatingListenerevent - the RatingEvent object containing the user, the removed rating and the rated conceptpublic void userRatingChanged(RatingEvent event)
RatingListener
userRatingChanged in interface RatingListenerevent - the RatingEvent object containing the rating user, his rating and the rated userpublic void userRatingSet(RatingEvent event)
RatingListener
userRatingSet in interface RatingListenerevent - the RatingEvent object containing the rating user, his rating and the rated userpublic void userRatingRemoved(RatingEvent event)
RatingListener
userRatingRemoved in interface RatingListenerevent - the RatingEvent object containing the user, the removed rating and the rated userpublic void topicCreated(OntologyEvent e)
OntologyListenerOntologyEvent.getConcept() returns the newly created topic.
topicCreated in interface OntologyListenere - the OntologyEvent object containing the user and the newly created topicpublic void associationCreated(OntologyEvent e)
OntologyListenerOntologyEvent.getConcept() returns the newly created association.
associationCreated in interface OntologyListenere - the OntologyEvent object containing the user and the newly created associationpublic void conceptCommentChanged(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base concept,
OntologyEvent.getOldValue() the comment's old value.
conceptCommentChanged in interface OntologyListenerevent - the OntologyEvent object containing the user, the concept and the comment's old valuepublic void conceptNameChanged(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base concept,
OntologyEvent.getOldValue() the concept's old name.
conceptNameChanged in interface OntologyListenerevent - the OntologyEvent object containing the user, the concept and the concept's old namepublic void conceptTypeChanged(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base concept,
OntologyEvent.getOldType() the concept's old type. For topics, the old type is null if a new type is added.
conceptTypeChanged in interface OntologyListenerevent - the OntologyEvent object containing the user, the concept and the concept's old typepublic void topicClassChanged(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base topic.
OntologyEvent.getOldType() returns the topic's old superclass if it was removed, or null if a superclass was added.
topicClassChanged in interface OntologyListenerevent - the OntologyEvent object containing the user, the concept and the concept's old superclasspublic void associationTopicAdded(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the association,
OntologyEvent.getTopic() the added topic.
associationTopicAdded in interface OntologyListenerevent - the OntologyEvent object containing the user, the association and the added topicpublic void associationTopicRemoved(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the association,
OntologyEvent.getTopic() the removed topic.
associationTopicRemoved in interface OntologyListenerevent - the OntologyEvent object containing the user, the association and the removed topicpublic void attributeAdded(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the added attribute,
OntologyEvent.getTopic() the base topic.
attributeAdded in interface OntologyListenerevent - the OntologyEvent object containing the user, the topic and the added attributepublic void attributeValueChanged(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the attribute,
OntologyEvent.getOldValue() the attribute's old value.
attributeValueChanged in interface OntologyListenerevent - the OntologyEvent object containing the user, the attribute and its old valuepublic void attributeRemoved(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the removed attribute,
OntologyEvent.getTopic() the base topic.
attributeRemoved in interface OntologyListenerevent - the OntologyEvent object containing the user, the topic and the removed attributepublic void occurrenceCreated(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base topic,
OntologyEvent.getOccurrence() the newly created occurrence.
occurrenceCreated in interface OntologyListenerevent - the OntologyEvent object containing the user, the topic and the newly created occurrencepublic void occurrenceChanged(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base topic,
OntologyEvent.getOccurrence() the occurrence and
OntologyEvent.getOldValue() the occurrence's old value.
occurrenceChanged in interface OntologyListenerevent - the OntologyEvent object containing the user, the topic, the occurrence and its old valuepublic void occurrenceRemoved(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base topic,
OntologyEvent.getOccurrence() the removed occurrence.
occurrenceRemoved in interface OntologyListenerevent - the OntologyEvent object containing the user, the topic and the removed occurrencepublic void synonymAdded(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base topic,
OntologyEvent.getSynonym() the Synonym object that contains both synonymous topics.
synonymAdded in interface OntologyListenerevent - the OntologyEvent object containing the user, the topic and the synonympublic void synonymRemoved(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base topic,
OntologyEvent.getSynonym() the removed Synonym object that contains both synonymous topics.
synonymRemoved in interface OntologyListenerevent - the OntologyEvent object containing the user, the topic and the synonympublic void associationDeleted(EvolutionEvent event)
EvolutionListenerEvolutionEvent.getConcept() contains the deleted association.
associationDeleted in interface EvolutionListenerevent - the EvolutionEvent object containing the user and the deleted associationEvolutionManager.deleteAssociation(User, Association)public void topicDeleted(EvolutionEvent event)
EvolutionListenerEvolutionEvent.getConcept() contains the deleted topic.
topicDeleted in interface EvolutionListenerevent - the EvolutionEvent object containing the user and the deleted topicEvolutionManager.deleteTopic(User, Topic),
EvolutionManager.deleteTopicAndSubtopics(User, Topic)public void topicsMerged(EvolutionEvent event)
EvolutionListenerEvolutionEvent.getConcept() contains one of the merged topics, EvolutionEvent.getTopic() the other.
topicsMerged in interface EvolutionListenerevent - the EvolutionEvent object containing the user and the two merged topicsEvolutionManager.mergeTopics(User, Topic, Topic)public String getVersion()
ConsensusFoundationModule
getVersion in interface ConsensusFoundationModule
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||