|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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
LoggingManager
ConsensusFoundation
constructor to initialize the LoggingManager.
init
in interface LoggingManager
config
- 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
ConsensusFoundationModule
ConsensusFoundation
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 ConsensusFoundationModule
initCompleted
in class AbstractConsensusFoundationModule
Exception
public void shutdown()
ConsensusFoundationModule
ConsensusFoundation.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 ConsensusFoundationModule
shutdown
in class AbstractConsensusFoundationModule
public void setLevel(int level)
LoggingManager
setLevel
in interface LoggingManager
level
- the new loglevelLoggingManager.getLevel()
public int getLevel()
LoggingManager
Returns 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 LoggingManager
LoggingManager.setLevel(int)
public boolean isDebugEnabled()
LoggingManager
isDebugEnabled
in interface LoggingManager
true
if debugging messages are logged, false
otherwiseLoggingManager.LEVEL_DEBUG
public boolean isInfoEnabled()
LoggingManager
isInfoEnabled
in interface LoggingManager
true
if info messages are logged, false
otherwiseLoggingManager.LEVEL_INFO
public boolean isWarnEnabled()
LoggingManager
isWarnEnabled
in interface LoggingManager
true
if warning messages are logged, false
otherwiseLoggingManager.LEVEL_WARN
public boolean isErrorEnabled()
LoggingManager
isErrorEnabled
in interface LoggingManager
true
if error messages are logged, false
otherwiseLoggingManager.LEVEL_ERROR
public boolean isFatalEnabled()
LoggingManager
isFatalEnabled
in interface LoggingManager
true
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 LoggingManager
message
- the message to be loggedLoggingManager.isDebugEnabled()
public void info(Object message)
LoggingManager
info
in interface LoggingManager
message
- the message to be loggedLoggingManager.isInfoEnabled()
public void warn(Object message)
LoggingManager
warn
in interface LoggingManager
message
- the message to be loggedLoggingManager.isWarnEnabled()
public void error(Object message)
LoggingManager
error
in interface LoggingManager
message
- the message to be loggedLoggingManager.isErrorEnabled()
public void fatal(Object message)
LoggingManager
fatal
in interface LoggingManager
message
- the message to be loggedLoggingManager.isFatalEnabled()
public void userCreated(UserEvent event)
UserListener
userCreated
in interface UserListener
event
- the UserEvent object containing the new user accountpublic void userLoggedIn(UserEvent event)
UserListener
userLoggedIn
in interface UserListener
event
- the UserEvent object containing the user who logged onpublic void userLoggedOut(UserEvent event)
UserListener
userLoggedOut
in interface UserListener
event
- the UserEvent object containing the user who logged offpublic void conceptRatingChanged(RatingEvent event)
RatingListener
conceptRatingChanged
in interface RatingListener
event
- the RatingEvent object containing the user, his rating and the rated conceptpublic void conceptRatingSet(RatingEvent event)
RatingListener
conceptRatingSet
in interface RatingListener
event
- the RatingEvent object containing the user, his rating and the rated conceptpublic void conceptRatingRemoved(RatingEvent event)
RatingListener
conceptRatingRemoved
in interface RatingListener
event
- the RatingEvent object containing the user, the removed rating and the rated conceptpublic void userRatingChanged(RatingEvent event)
RatingListener
userRatingChanged
in interface RatingListener
event
- the RatingEvent object containing the rating user, his rating and the rated userpublic void userRatingSet(RatingEvent event)
RatingListener
userRatingSet
in interface RatingListener
event
- the RatingEvent object containing the rating user, his rating and the rated userpublic void userRatingRemoved(RatingEvent event)
RatingListener
userRatingRemoved
in interface RatingListener
event
- the RatingEvent object containing the user, the removed rating and the rated userpublic void topicCreated(OntologyEvent e)
OntologyListener
OntologyEvent.getConcept()
returns the newly created topic.
topicCreated
in interface OntologyListener
e
- the OntologyEvent object containing the user and the newly created topicpublic void associationCreated(OntologyEvent e)
OntologyListener
OntologyEvent.getConcept()
returns the newly created association.
associationCreated
in interface OntologyListener
e
- the OntologyEvent object containing the user and the newly created associationpublic void conceptCommentChanged(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base concept,
OntologyEvent.getOldValue()
the comment's old value.
conceptCommentChanged
in interface OntologyListener
event
- the OntologyEvent object containing the user, the concept and the comment's old valuepublic void conceptNameChanged(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base concept,
OntologyEvent.getOldValue()
the concept's old name.
conceptNameChanged
in interface OntologyListener
event
- the OntologyEvent object containing the user, the concept and the concept's old namepublic void conceptTypeChanged(OntologyEvent event)
OntologyListener
OntologyEvent.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 OntologyListener
event
- the OntologyEvent object containing the user, the concept and the concept's old typepublic void topicClassChanged(OntologyEvent event)
OntologyListener
OntologyEvent.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 OntologyListener
event
- the OntologyEvent object containing the user, the concept and the concept's old superclasspublic void associationTopicAdded(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the association,
OntologyEvent.getTopic()
the added topic.
associationTopicAdded
in interface OntologyListener
event
- the OntologyEvent object containing the user, the association and the added topicpublic void associationTopicRemoved(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the association,
OntologyEvent.getTopic()
the removed topic.
associationTopicRemoved
in interface OntologyListener
event
- the OntologyEvent object containing the user, the association and the removed topicpublic void attributeAdded(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the added attribute,
OntologyEvent.getTopic()
the base topic.
attributeAdded
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the added attributepublic void attributeValueChanged(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the attribute,
OntologyEvent.getOldValue()
the attribute's old value.
attributeValueChanged
in interface OntologyListener
event
- the OntologyEvent object containing the user, the attribute and its old valuepublic void attributeRemoved(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the removed attribute,
OntologyEvent.getTopic()
the base topic.
attributeRemoved
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the removed attributepublic void occurrenceCreated(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic,
OntologyEvent.getOccurrence()
the newly created occurrence.
occurrenceCreated
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the newly created occurrencepublic void occurrenceChanged(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic,
OntologyEvent.getOccurrence()
the occurrence and
OntologyEvent.getOldValue()
the occurrence's old value.
occurrenceChanged
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic, the occurrence and its old valuepublic void occurrenceRemoved(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic,
OntologyEvent.getOccurrence()
the removed occurrence.
occurrenceRemoved
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the removed occurrencepublic void synonymAdded(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic,
OntologyEvent.getSynonym()
the Synonym object that contains both synonymous topics.
synonymAdded
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the synonympublic void synonymRemoved(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic,
OntologyEvent.getSynonym()
the removed Synonym object that contains both synonymous topics.
synonymRemoved
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the synonympublic void associationDeleted(EvolutionEvent event)
EvolutionListener
EvolutionEvent.getConcept()
contains the deleted association.
associationDeleted
in interface EvolutionListener
event
- the EvolutionEvent object containing the user and the deleted associationEvolutionManager.deleteAssociation(User, Association)
public void topicDeleted(EvolutionEvent event)
EvolutionListener
EvolutionEvent.getConcept()
contains the deleted topic.
topicDeleted
in interface EvolutionListener
event
- the EvolutionEvent object containing the user and the deleted topicEvolutionManager.deleteTopic(User, Topic)
,
EvolutionManager.deleteTopicAndSubtopics(User, Topic)
public void topicsMerged(EvolutionEvent event)
EvolutionListener
EvolutionEvent.getConcept()
contains one of the merged topics, EvolutionEvent.getTopic()
the other.
topicsMerged
in interface EvolutionListener
event
- 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 |