|
|||||||||||
| 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.DynamicRightsManagerImpl
TODO
| Constructor Summary | |
DynamicRightsManagerImpl()
|
|
| Method Summary | |
void |
checkAddAttribute(User user,
Attribute attr,
Attributeable attributeable)
Checks if the user is allowed to add the attribute to the given attributeable element (a topic). |
void |
checkAddClass(User user,
Topic base)
Checks if the user is allowed to add a superclass to a class topic. |
void |
checkAddRating(Rating rating,
Rateable rateable)
Checks if a user is allowed to assign a rating to a certain rateable element. |
void |
checkAddSynonym(User user,
Topic base)
Checks if the user is allowed to add a synonymous topic to a given topic. |
void |
checkAddType(User user,
Topic base)
Checks if the user is allowed to add a type topic to a given topic. |
void |
checkChangeAssociation(User user,
Association assoc)
Checks if the user is allowed to change an association (add/remove roles/topics). |
void |
checkChangeAttributeValue(User user,
Attribute attr)
Checks if the user is allowed to change the attribute's value. |
void |
checkChangeConceptComment(User user,
Concept concept)
Checks if the user is allowed to change the comment of a certain concept. |
void |
checkChangeOccurrence(User user)
Checks if the user is allowed to change (create/delete) occurrences. |
void |
checkChangeUserComment(User user,
User commentated)
Checks if the user is allowed to change the comment of a certain user (including himself). |
void |
checkCreateAssociation(User user,
Topic type)
Checks if the user is allowed to create associations of the given type. |
void |
checkCreateAttribute(User user,
Topic type)
Checks if the user is allowed to create attributes of the given type. |
void |
checkCreateClassTopic(User user,
Topic cls)
Checks if the user is allowed to create topics of the given superclass. |
void |
checkCreateRating(User user)
Checks if the user is allowed to create ratings. |
void |
checkCreateTopic(User user,
Topic type)
Checks if the user is allowed to create topics of the given type. |
void |
checkDeleteAssociation(User user,
Association assoc)
Checks if a user is allowed to remove an association permanently from the ontology. |
void |
checkDeleteTopic(User user,
Topic topic)
Checks if a user is allowed to remove a topic permanently from the ontology. |
void |
checkMergeTopics(User user,
Topic topic1,
Topic topic2)
Checks if a user is allowed to merge to topics. |
void |
checkQuery(User user,
String query)
Checks if the user is allowed to do queries using the provided query language(s). |
void |
checkRemoveAttribute(User user,
Attribute attr)
Checks if the user is allowed to remove the attribute from its topic. |
void |
checkRemoveClass(User user,
SuperSubclass cls)
Checks if the user is allowed to remove a superclass from a class topic. |
void |
checkRemoveRating(User remover,
Rating rating)
Checks if a user is allowed to remove a rating permanently from an element. |
void |
checkRemoveSynonym(User user,
Synonym synonym)
Checks if the user is allowed to remove a synonym relationship between two topics. |
void |
checkRemoveType(User user,
TypeInstance type)
Checks if the user is allowed to remove a type from a topic. |
void |
checkViewAssociation(User user,
Association assoc)
Checks if the user is allowed to view a certain association. |
void |
checkViewAttribute(User user,
Attribute attr)
Checks if the user is allowed to see a certain attribute. |
void |
checkViewTopic(User user,
Topic topic)
Checks if the user is allowed to view a certain topic. |
String |
getVersion()
Returns a version string of the implementation of this module. |
void |
init(Properties config,
LoggingManager logging,
UserManager users,
OntologyManager ontology,
IncentiveManager incentive)
This method is called by the ConsensusFoundation constructor to initialize the DynamicRightsManager. |
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 |
mayAddAttribute(User user,
Attribute attr,
Attributeable attributeable)
Checks if the user is allowed to add the attribute to the given attributeable element (a topic). |
boolean |
mayAddClass(User user,
Topic base)
Checks if the user is allowed to add a superclass to a class topic. |
boolean |
mayAddRating(Rating rating,
Rateable rateable)
Checks if a user is allowed to assign a rating to a certain rateable element. |
boolean |
mayAddSynonym(User user,
Topic base)
Checks if the user is allowed to add a synonymous topic to a given topic. |
boolean |
mayAddType(User user,
Topic base)
Checks if the user is allowed to add a type topic to a given topic. |
boolean |
mayChangeAssociation(User user,
Association assoc)
Checks if the user is allowed to change an association (add/remove roles/topics). |
boolean |
mayChangeAttributeValue(User user,
Attribute attr)
Checks if the user is allowed to change the attribute's value. |
boolean |
mayChangeConceptComment(User user,
Concept concept)
Checks if the user is allowed to change the comment of a certain concept. |
boolean |
mayChangeOccurrence(User user)
Checks if the user is allowed to change (create/delete) occurrences. |
boolean |
mayChangeUserComment(User user,
User commentated)
Checks if the user is allowed to change the comment of a certain user (including himself). |
boolean |
mayCreateAssociation(User user,
Topic type)
Checks if the user is allowed to create associations of the given type. |
boolean |
mayCreateAttribute(User user,
Topic type)
Checks if the user is allowed to create attributes of the given type. |
boolean |
mayCreateClassTopic(User user,
Topic cls)
Checks if the user is allowed to create topics of the given superclass. |
boolean |
mayCreateRating(User user)
Checks if the user is allowed to create ratings. |
boolean |
mayCreateTopic(User user,
Topic type)
Checks if the user is allowed to create topics of the given type. |
boolean |
mayDeleteAssociation(User user,
Association assoc)
Checks if a user is allowed to remove an association permanently from the ontology. |
boolean |
mayDeleteTopic(User user,
Topic topic)
Checks if a user is allowed to remove a topic permanently from the ontology. |
boolean |
mayMergeTopics(User user,
Topic topic1,
Topic topic2)
Checks if a user is allowed to merge to topics. |
boolean |
mayQuery(User user,
String query)
Checks if the user is allowed to do queries using the provided query language(s). |
boolean |
mayRemoveAttribute(User user,
Attribute attr)
Checks if the user is allowed to remove the attribute from its topic. |
boolean |
mayRemoveClass(User user,
SuperSubclass cls)
Checks if the user is allowed to remove a superclass from a class topic. |
boolean |
mayRemoveRating(User remover,
Rating rating)
Checks if a user is allowed to remove a rating permanently from an element. |
boolean |
mayRemoveSynonym(User user,
Synonym synonym)
Checks if the user is allowed to remove a synonym relationship between two topics. |
boolean |
mayRemoveType(User user,
TypeInstance type)
Checks if the user is allowed to remove a type from a topic. |
boolean |
mayViewAssociation(User user,
Association assoc)
Checks if the user is allowed to view a certain association. |
boolean |
mayViewAttribute(User user,
Attribute attr)
Checks if the user is allowed to see a certain attribute. |
boolean |
mayViewTopic(User user,
Topic topic)
Checks if the user is allowed to view a certain topic. |
void |
score(ScoringEvent event)
In this method a ScoringListener can change the user's score. |
void |
scored(ScoringEvent event)
This method is called after all listener's score() methods have been called for this ScoringEvent. |
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 DynamicRightsManagerImpl()
| Method Detail |
public void init(Properties config,
LoggingManager logging,
UserManager users,
OntologyManager ontology,
IncentiveManager incentive)
throws Exception
DynamicRightsManagerConsensusFoundation constructor to initialize the DynamicRightsManager.
init in interface DynamicRightsManagerconfig - all entries from ConsensusFoundation.propertieslogging - the successfully initialized LoggingManager instanceusers - the the successfully initialized UserManager instanceontology - the the successfully initialized OntologyManager instanceincentive - the the successfully initialized IncentiveManager instance or null, if no IncentiveManager is available
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 boolean mayCreateTopic(User user,
Topic type)
DynamicRightsManager
mayCreateTopic in interface DynamicRightsManageruser - the user who wants to create a topictype - the type of the topic to be created, including null for a typeless topic
true if the user is allowed to create the topic, false otherwiseDynamicRightsManager.checkCreateTopic(User, Topic)
public boolean mayCreateClassTopic(User user,
Topic cls)
DynamicRightsManager
mayCreateClassTopic in interface DynamicRightsManageruser - user the user who wants to create a class topiccls - the superclass of the class topic to be created, including null for a root class topic
true if the user is allowed to create the class topic, false otherwiseDynamicRightsManager.checkCreateClassTopic(User, Topic),
Topic.isClassTopic()
public boolean mayViewTopic(User user,
Topic topic)
DynamicRightsManager
mayViewTopic in interface DynamicRightsManageruser - the user who wants to see the topictopic - the topic in question
true if the user is allowed to view the topic, false otherwiseDynamicRightsManager.checkViewTopic(User, Topic)
public boolean mayDeleteTopic(User user,
Topic topic)
DynamicRightsManager
mayDeleteTopic in interface DynamicRightsManageruser - the user who wants to delete the topictopic - the topic to be deleted
true if the user is allowed to delete the topic, false otherwiseDynamicRightsManager.checkDeleteTopic(User, Topic)
public boolean mayMergeTopics(User user,
Topic topic1,
Topic topic2)
DynamicRightsManager
mayMergeTopics in interface DynamicRightsManageruser - the user who wants to merge the topicstopic1 - the first topic to be mergedtopic2 - the second topic to be merged
true if the user is allowed to merge the topics, false otherwiseDynamicRightsManager.checkMergeTopics(User, Topic, Topic)
public boolean mayCreateAssociation(User user,
Topic type)
DynamicRightsManager
mayCreateAssociation in interface DynamicRightsManageruser - the user who wants to create an associationtype - the type of the association to be created, including null for a typeless association
true if the user is allowed to create the association, false otherwiseDynamicRightsManager.checkCreateAssociation(User, Topic)
public boolean mayViewAssociation(User user,
Association assoc)
DynamicRightsManager
mayViewAssociation in interface DynamicRightsManageruser - the user who wants to see the associationassoc - the association in question
true if the user is allowed to see the association, false otherwiseDynamicRightsManager.checkViewAssociation(User, Association)
public boolean mayChangeAssociation(User user,
Association assoc)
DynamicRightsManager
mayChangeAssociation in interface DynamicRightsManageruser - the user who wants to change the associationassoc - the association to be changed
true if the user is allowed to change the association, false otherwiseDynamicRightsManager.checkChangeAssociation(User, Association)
public boolean mayDeleteAssociation(User user,
Association assoc)
DynamicRightsManager
mayDeleteAssociation in interface DynamicRightsManageruser - the user who wants to delete the associationassoc - the association to be deleted
true if the user is allowed to delete the association, false otherwiseDynamicRightsManager.checkDeleteAssociation(User, Association)
public boolean mayCreateAttribute(User user,
Topic type)
DynamicRightsManager
mayCreateAttribute in interface DynamicRightsManageruser - the user who wants to create an attributetype - the type of the attribute to be created, including null for a typeless attribute
true if the user is allowed to create the attribute, false otherwiseDynamicRightsManager.checkCreateAttribute(User, Topic),
DynamicRightsManager.mayAddAttribute(User, Attribute, Attributeable)
public boolean mayViewAttribute(User user,
Attribute attr)
DynamicRightsManager
mayViewAttribute in interface DynamicRightsManageruser - the user who wants to see the attributeattr - the attribute in question
true if the user is allowed to see the attribute, false otherwiseDynamicRightsManager.checkViewAttribute(User, Attribute)
public boolean mayAddAttribute(User user,
Attribute attr,
Attributeable attributeable)
DynamicRightsManager
mayAddAttribute in interface DynamicRightsManageruser - the user who wants to add the attributeattr - the attribute to be addedattributeable - the topic that will be container of the attribute
true if the user is allowed to add the attribute, false otherwiseDynamicRightsManager.checkAddAttribute(User, Attribute, Attributeable),
DynamicRightsManager.mayCreateAttribute(User, Topic)
public boolean mayChangeAttributeValue(User user,
Attribute attr)
DynamicRightsManager
mayChangeAttributeValue in interface DynamicRightsManageruser - the user who wants to change the valueattr - the attribute in question
true if the user is allowed to change the attribute's value, false otherwiseDynamicRightsManager.checkChangeAttributeValue(User, Attribute)
public boolean mayRemoveAttribute(User user,
Attribute attr)
DynamicRightsManager
mayRemoveAttribute in interface DynamicRightsManageruser - the user who wants to remove the attributeattr - the attribute to be removed
true if the user is allowed to remove the attribute, false otherwiseDynamicRightsManager.checkRemoveAttribute(User, Attribute)public boolean mayCreateRating(User user)
DynamicRightsManager
mayCreateRating in interface DynamicRightsManageruser - the user who wants to create a rating
true if the user is allowed to create ratings, false otherwiseDynamicRightsManager.checkCreateRating(User),
DynamicRightsManager.mayAddRating(Rating, Rateable)
public boolean mayChangeConceptComment(User user,
Concept concept)
DynamicRightsManager
mayChangeConceptComment in interface DynamicRightsManageruser - the user who wants to change the commentconcept - the concept in question
true if the user is allowed to change the comment, false otherwiseDynamicRightsManager.checkChangeConceptComment(User, Concept)
public boolean mayChangeUserComment(User user,
User commentated)
DynamicRightsManager
mayChangeUserComment in interface DynamicRightsManageruser - the user who wants to change the commentcommentated - the user who's comment string will be changed
true if the user is allowed to change the comment, false otherwiseDynamicRightsManager.checkChangeUserComment(User, User)public boolean mayChangeOccurrence(User user)
DynamicRightsManager
mayChangeOccurrence in interface DynamicRightsManageruser - the user who wants to change an occurrence
true if the user is allowed to change occurrences, false otherwiseDynamicRightsManager.checkChangeOccurrence(User)
public boolean mayAddRating(Rating rating,
Rateable rateable)
DynamicRightsManager
mayAddRating in interface DynamicRightsManagerrating - the rating to be assignedrateable - the rateable element that will receive the rating
true if the user is allowed to add the rating, false otherwiseDynamicRightsManager.checkAddRating(Rating, Rateable),
DynamicRightsManager.mayCreateRating(User)
public boolean mayRemoveRating(User remover,
Rating rating)
DynamicRightsManager
mayRemoveRating in interface DynamicRightsManagerremover - the user who wants to remove the ratingrating - the rating to be removed
true if the user is allowed to remove the rating, false otherwiseDynamicRightsManager.checkRemoveRating(User, Rating)
public boolean mayAddSynonym(User user,
Topic base)
DynamicRightsManager
mayAddSynonym in interface DynamicRightsManageruser - the user who wants to add the synonymbase - the topic that is assigned the synonymous topic
true if the user is allowed to add the synonym, false otherwiseDynamicRightsManager.checkAddSynonym(User, Topic)
public boolean mayRemoveSynonym(User user,
Synonym synonym)
DynamicRightsManager
mayRemoveSynonym in interface DynamicRightsManageruser - the user who wants to remove the synonym relationshipsynonym - the Synonym object containing the two synonymous topics
true if the user is allowed to remove the synonym, false otherwiseDynamicRightsManager.checkRemoveSynonym(User, Synonym)
public boolean mayAddType(User user,
Topic base)
DynamicRightsManager
mayAddType in interface DynamicRightsManageruser - the user who wants to add a typebase - the topic which is assigned the new type
true if the user is allowed to add a type, false otherwiseDynamicRightsManager.checkAddType(User, Topic)
public boolean mayRemoveType(User user,
TypeInstance type)
DynamicRightsManager
mayRemoveType in interface DynamicRightsManageruser - the user who wants to remove a typetype - the TypeInstance object which contains both the type topic and the base topic
true if the user is allowed to remove the type, false otherwiseDynamicRightsManager.checkRemoveType(User, TypeInstance)
public boolean mayAddClass(User user,
Topic base)
DynamicRightsManager
mayAddClass in interface DynamicRightsManageruser - the user who wants to add the superclassbase - the topic that will be assigned a new superclass
true if the user is allowed to add a superclass, false otherwiseDynamicRightsManager.checkAddClass(User, Topic),
Topic.isClassTopic()
public boolean mayRemoveClass(User user,
SuperSubclass cls)
DynamicRightsManager
mayRemoveClass in interface DynamicRightsManageruser - the user who wants to remove the superclasscls - the SuperSubclass object containing both the superclass and the subclass topic
true if the user is allowed to remove the superclass, false otherwiseDynamicRightsManager.checkRemoveClass(User, SuperSubclass)
public boolean mayQuery(User user,
String query)
DynamicRightsManager
mayQuery in interface DynamicRightsManageruser - the user who wants to do the queryquery - the query string
true if the user is allowed to do the query, false otherwiseDynamicRightsManager.checkQuery(User, String)
public void checkCreateTopic(User user,
Topic type)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkCreateTopic in interface DynamicRightsManageruser - the user who wants to create a topictype - the type of the topic to be created, including null for a typeless topic
DynamicRightsManagerException - if the user is not allowed to create the topicDynamicRightsManager.mayCreateTopic(User, Topic)
public void checkCreateClassTopic(User user,
Topic cls)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkCreateClassTopic in interface DynamicRightsManageruser - user the user who wants to create a class topiccls - the superclass of the class topic to be created, including null for a root class topic
DynamicRightsManagerException - if the user is not allowed to create the class topicDynamicRightsManager.mayCreateClassTopic(User, Topic),
Topic.isClassTopic()
public void checkViewTopic(User user,
Topic topic)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkViewTopic in interface DynamicRightsManageruser - the user who wants to see the topictopic - the topic in question
DynamicRightsManagerException - if the user is not allowed to view the topicDynamicRightsManager.mayViewTopic(User, Topic)
public void checkDeleteTopic(User user,
Topic topic)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkDeleteTopic in interface DynamicRightsManageruser - the user who wants to delete the topictopic - the topic to be deleted
DynamicRightsManagerException - if the user is not allowed to delete the topicDynamicRightsManager.mayDeleteTopic(User, Topic)
public void checkMergeTopics(User user,
Topic topic1,
Topic topic2)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkMergeTopics in interface DynamicRightsManageruser - 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 topicsDynamicRightsManager.mayMergeTopics(User, Topic, Topic)
public void checkCreateAssociation(User user,
Topic type)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkCreateAssociation in interface DynamicRightsManageruser - the user who wants to create an associationtype - the type of the association to be created, including null for a typeless association
DynamicRightsManagerException - if the user is not allowed to create the associationDynamicRightsManager.mayCreateAssociation(User, Topic)
public void checkViewAssociation(User user,
Association assoc)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkViewAssociation in interface DynamicRightsManageruser - the user who wants to see the associationassoc - the association in question
DynamicRightsManagerException - if the user is not allowed to see the associationDynamicRightsManager.mayViewAssociation(User, Association)
public void checkChangeAssociation(User user,
Association assoc)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkChangeAssociation in interface DynamicRightsManageruser - the user who wants to change the associationassoc - the association to be changed
DynamicRightsManagerException - if the user is not allowed to change the associationDynamicRightsManager.mayChangeAssociation(User, Association)
public void checkDeleteAssociation(User user,
Association assoc)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkDeleteAssociation in interface DynamicRightsManageruser - the user who wants to delete the associationassoc - the association to be deleted
DynamicRightsManagerException - if the user is not allowed to delete the associationDynamicRightsManager.mayDeleteAssociation(User, Association)
public void checkCreateAttribute(User user,
Topic type)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkCreateAttribute in interface DynamicRightsManageruser - the user who wants to create an attributetype - the type of the attribute to be created, including null for a typeless attribute
DynamicRightsManagerException - if the user is not allowed to create the attributeDynamicRightsManager.mayCreateAttribute(User, Topic),
DynamicRightsManager.checkAddAttribute(User, Attribute, Attributeable)
public void checkViewAttribute(User user,
Attribute attr)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkViewAttribute in interface DynamicRightsManageruser - the user who wants to see the attributeattr - the attribute in question
DynamicRightsManagerException - if the user is not allowed to see the attributeDynamicRightsManager.mayViewAttribute(User, Attribute)
public void checkAddAttribute(User user,
Attribute attr,
Attributeable attributeable)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkAddAttribute in interface DynamicRightsManageruser - the user who wants to add the attributeattr - the attribute to be addedattributeable - the topic that will be container of the attribute
DynamicRightsManagerException - if the user is not allowed to add the attributeDynamicRightsManager.mayAddAttribute(User, Attribute, Attributeable),
DynamicRightsManager.checkCreateAttribute(User, Topic)
public void checkChangeAttributeValue(User user,
Attribute attr)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkChangeAttributeValue in interface DynamicRightsManageruser - the user who wants to change the valueattr - the attribute in question
DynamicRightsManagerException - if the user is not allowed to change the attribute's valueDynamicRightsManager.mayChangeAttributeValue(User, Attribute)
public void checkRemoveAttribute(User user,
Attribute attr)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkRemoveAttribute in interface DynamicRightsManageruser - the user who wants to remove the attributeattr - the attribute to be removed
DynamicRightsManagerException - if the user is not allowed to remove the attributeDynamicRightsManager.mayRemoveAttribute(User, Attribute)
public void checkCreateRating(User user)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkCreateRating in interface DynamicRightsManageruser - the user who wants to create a rating
DynamicRightsManagerException - if the user is not allowed to create ratingsDynamicRightsManager.mayCreateRating(User),
DynamicRightsManager.checkAddRating(Rating, Rateable)
public void checkAddRating(Rating rating,
Rateable rateable)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkAddRating in interface DynamicRightsManagerrating - the rating to be assignedrateable - the rateable element that will receive the rating
DynamicRightsManagerException - if the user is not allowed to add the ratingDynamicRightsManager.mayAddRating(Rating, Rateable),
DynamicRightsManager.checkCreateRating(User)
public void checkRemoveRating(User remover,
Rating rating)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkRemoveRating in interface DynamicRightsManagerremover - the user who wants to remove the ratingrating - the rating to be removed
DynamicRightsManagerException - if the user is not allowed to remove the ratingDynamicRightsManager.mayRemoveRating(User, Rating)
public void checkChangeConceptComment(User user,
Concept concept)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkChangeConceptComment in interface DynamicRightsManageruser - the user who wants to change the commentconcept - the concept in question
DynamicRightsManagerException - if the user is not allowed to change the commentDynamicRightsManager.mayChangeConceptComment(User, Concept)
public void checkChangeUserComment(User user,
User commentated)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkChangeUserComment in interface DynamicRightsManageruser - the user who wants to change the commentcommentated - the user who's comment string will be changed
DynamicRightsManagerException - if the user is not allowed to change the commentDynamicRightsManager.mayChangeUserComment(User, User)
public void checkChangeOccurrence(User user)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkChangeOccurrence in interface DynamicRightsManageruser - the user who wants to change an occurrence
DynamicRightsManagerException - if the user is not allowed to change occurrencesDynamicRightsManager.mayChangeOccurrence(User)
public void checkAddSynonym(User user,
Topic base)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkAddSynonym in interface DynamicRightsManageruser - the user who wants to add the synonymbase - the topic that is assigned the synonymous topic
DynamicRightsManagerException - if the user is not allowed to add a synonymDynamicRightsManager.mayAddSynonym(User, Topic)
public void checkRemoveSynonym(User user,
Synonym synonym)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkRemoveSynonym in interface DynamicRightsManageruser - the user who wants to remove the synonym relationshipsynonym - the Synonym object containing the two synonymous topics
DynamicRightsManagerException - if the user is not allowed to remove the synonymDynamicRightsManager.mayRemoveSynonym(User, Synonym)
public void checkAddType(User user,
Topic base)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkAddType in interface DynamicRightsManageruser - the user who wants to add a typebase - the topic which is assigned the new type
DynamicRightsManagerException - if the user is not allowed to add a typeDynamicRightsManager.mayAddType(User, Topic)
public void checkRemoveType(User user,
TypeInstance type)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkRemoveType in interface DynamicRightsManageruser - the user who wants to remove a typetype - the TypeInstance object which contains both the type topic and the base topic
DynamicRightsManagerException - if the user is not allowed to remove the typeDynamicRightsManager.mayRemoveType(User, TypeInstance)
public void checkAddClass(User user,
Topic base)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkAddClass in interface DynamicRightsManageruser - the user who wants to add the superclassbase - the topic that will be assigned a new superclass
DynamicRightsManagerException - if the user is not allowed to add a superclassDynamicRightsManager.mayAddClass(User, Topic),
Topic.isClassTopic()
public void checkRemoveClass(User user,
SuperSubclass cls)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkRemoveClass in interface DynamicRightsManageruser - the user who wants to remove the superclasscls - the SuperSubclass object containing both the superclass and the subclass topic
DynamicRightsManagerException - if the user is not allowed to remove the superclassDynamicRightsManager.mayRemoveClass(User, SuperSubclass)
public void checkQuery(User user,
String query)
throws DynamicRightsManagerException
DynamicRightsManagerThis method returns silently if the user is granted the right.
checkQuery in interface DynamicRightsManageruser - the user who wants to do the queryquery - the query string
DynamicRightsManagerException - if the user is not allowed to do the queryDynamicRightsManager.mayQuery(User, String)public void score(ScoringEvent event)
ScoringListener
score in interface ScoringListenerUser.getScore(),
User.setScore(double)public void scored(ScoringEvent event)
ScoringListenerThis method is called after all listener's score() methods have been called for this ScoringEvent.
Do not change the user's score here! This method is intended to be used for calculations based upon the finished scoring for this ScoringEvent, e.g. calculating the user's roles/rights.
scored in interface ScoringListenerUser.getScore()public String getVersion()
ConsensusFoundationModule
getVersion in interface ConsensusFoundationModule
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||