|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.uka.ipd.consensus.impl.TM4JObjectWrapper
de.uka.ipd.consensus.impl.AssociationRoleImpl
TODO
| Field Summary |
| Fields inherited from class de.uka.ipd.consensus.impl.TM4JObjectWrapper |
EMPTY_SCOPE |
| Constructor Summary | |
protected |
AssociationRoleImpl(OntologyManagerImpl omi,
org.tm4j.topicmap.Member tmMember)
|
| Method Summary | |
void |
addTopic(User adder,
Topic topic)
Adds a topic to this role. |
int |
compareTo(Object other)
|
Association |
getAssociation()
Returns the association that this role belongs to. |
String |
getName()
Returns the name of this role's type. |
Collection |
getTopics(User user)
Returns the player Topic objects of this role. |
Topic |
getType()
Returns the type topic of this role. |
protected org.tm4j.topicmap.Member |
getWrappedMember()
|
boolean |
hasTopic(Topic topic)
Checks if the given topic is a player of this role. |
boolean |
isOfType(Topic type)
Checks if this role is of the given type. |
void |
removeTopic(User remover,
Topic topic)
Removes a topic from this role. |
void |
setType(User setter,
Topic type)
Sets the type of the role. |
String |
toString()
|
| 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, wait, wait, wait |
| Constructor Detail |
protected AssociationRoleImpl(OntologyManagerImpl omi,
org.tm4j.topicmap.Member tmMember)
| Method Detail |
protected org.tm4j.topicmap.Member getWrappedMember()
public Association getAssociation()
AssociationRole
getAssociation in interface AssociationRolenullpublic Topic getType()
AssociationRole
getType in interface AssociationRolenull if the role does not have a type
public void setType(User setter,
Topic type)
throws OntologyManagerException,
DynamicRightsManagerException
AssociationRole
setType in interface AssociationRolesetter - the user who wants to set the typetype - the type topic (or null to remove the type)
OntologyManagerException - if the type could not be set
DynamicRightsManagerException - if the user is not allowed to change the typeTopic.isClassTopic(),
DynamicRightsManager.mayChangeAssociation(User, Association)public boolean isOfType(Topic type)
AssociationRole
isOfType in interface AssociationRoletype - the type topic, including null for the typeless role
true if the role is of the specified type, false otherwisepublic String getName()
AssociationRole
getName in interface AssociationRolenull)Concept.getName()public Collection getTopics(User user)
AssociationRole
getTopics in interface AssociationRoleuser - the user who wants to see the topics
nullDynamicRightsManager.mayViewTopic(User, Topic)
public void addTopic(User adder,
Topic topic)
throws OntologyManagerException,
DynamicRightsManagerException
AssociationRole
addTopic in interface AssociationRoleadder - the user who wants to add the topictopic - the topic to be added
OntologyManagerException - if the topic could not be added
DynamicRightsManagerException - if the user is not allowed to add the topicDynamicRightsManager.mayChangeAssociation(User, Association)
public void removeTopic(User remover,
Topic topic)
throws OntologyManagerException,
DynamicRightsManagerException
AssociationRole
removeTopic in interface AssociationRoleremover - the user who wants to remove the topic.topic - the topic to be removed
DynamicRightsManagerException - if the user is not allowed to remove the topic
OntologyManagerException - if the topic could not be removedDynamicRightsManager.mayChangeAssociation(User, Association)public boolean hasTopic(Topic topic)
AssociationRole
hasTopic in interface AssociationRoletopic - the topic in question
true if the topic is player of this role, false otherwisepublic int compareTo(Object other)
compareTo in interface Comparablepublic String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||