|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.uka.ipd.consensus.impl.TM4JObjectWrapper de.uka.ipd.consensus.impl.TM4JTopicWrapper
TODO
Field Summary |
Fields inherited from class de.uka.ipd.consensus.impl.TM4JObjectWrapper |
EMPTY_SCOPE |
Constructor Summary | |
protected |
TM4JTopicWrapper(OntologyManagerImpl omi,
org.tm4j.topicmap.Topic tmTopic)
|
Method Summary | |
int |
compareTo(Object other)
|
String |
getComment()
must not return null |
User |
getCreator()
Returns the user that created this element. |
String |
getId()
Returns the concept's unique id that was either computed automatically or given explicitely at creation time. |
String |
getName()
must not return null |
protected org.tm4j.topicmap.Occurrence |
getOccurrence(org.tm4j.topicmap.Topic tmType)
|
Version |
getVersion()
Returns the version of the versionable element. |
protected org.tm4j.topicmap.Topic |
getWrappedTopic()
|
protected Version |
incVersion()
|
void |
setComment(User setter,
String comment)
Changes the element's comment. |
void |
setName(User setter,
String name)
Changes the concept's name. |
Methods inherited from class de.uka.ipd.consensus.impl.TM4JObjectWrapper |
equals, getCache, getLoggingManager, getObjectId, getOccurrence, getOntologyManager, getWrappedObject, hashCode, putCache, wrap, wrap, wrap, wrap, wrap, wrap, wrap |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.uka.ipd.consensus.foundation.schema.Concept |
isOfType |
Methods inherited from interface de.uka.ipd.consensus.foundation.schema.Rateable |
addRating, getAverageRatingValue, getRating, getRatings, getRatingsCount |
Constructor Detail |
protected TM4JTopicWrapper(OntologyManagerImpl omi, org.tm4j.topicmap.Topic tmTopic)
Method Detail |
protected org.tm4j.topicmap.Topic getWrappedTopic()
public String getId()
Concept
getId
in interface Concept
null
)OntologyManager.createTopic(User, String, String, Topic)
,
OntologyManager.createAssociation(User, String, String, Topic)
,
OntologyManager.createAttribute(User, String, String, String, Topic)
public User getCreator()
Createable
getCreator
in interface Createable
public String getName()
getName
in interface Concept
null
)public void setName(User setter, String name) throws OntologyManagerException, DynamicRightsManagerException
Concept
setName
in interface Concept
setter
- the user who wants to change the namename
- the new name
DynamicRightsManagerException
- if the user is not allowed to change the name
OntologyManagerException
- if the name could not be changedprotected org.tm4j.topicmap.Occurrence getOccurrence(org.tm4j.topicmap.Topic tmType)
public String getComment()
getComment
in interface Commentatable
null
)public void setComment(User setter, String comment) throws OntologyManagerException, DynamicRightsManagerException
Commentatable
setComment
in interface Commentatable
setter
- the user who wants to change the commentcomment
- the new comment (null
is treated as an empty string)
DynamicRightsManagerException
- if the user is not allowed to change the comment
OntologyManagerException
- if the comment could not be changedDynamicRightsManager.mayChangeConceptComment(User, Concept)
,
DynamicRightsManager.mayChangeUserComment(User, User)
protected Version incVersion()
public Version getVersion()
Versionable
getVersion
in interface Versionable
null
if no version information is availablepublic int compareTo(Object other)
compareTo
in interface Comparable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |