|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is a mixin interface for attributeable elements of the ontology. With the current schema definition, only topics are attributeable.
Topic
Method Summary | |
void |
addAttribute(User setter,
Attribute attr)
Adds an attribute object to the attributeable element. |
Attribute |
getAttribute(User getter,
String id)
Returns the attribute of a given id. |
Collection |
getAttributes(User getter)
Returns a collection of all Attribute objects of this element that the user may see. |
Collection |
getAttributes(User getter,
Topic type)
Returns a collection of all Attribute objects of the given type. |
void |
removeAttribute(User remover,
Attribute attr)
Removes the given attribute, if the object is an attribute of this element (otherwise, the call is ignored). |
Method Detail |
public void addAttribute(User setter, Attribute attr) throws OntologyManagerException, DynamicRightsManagerException
setter
- the user who wants to add the attributeattr
- the Attribute object
OntologyManagerException
- if the attribute could not be added
DynamicRightsManagerException
- if the user is not allowed to add the attributeOntologyManager.createAttribute(User, String, String, String, Topic)
,
DynamicRightsManager.mayAddAttribute(User, Attribute, Attributeable)
public void removeAttribute(User remover, Attribute attr) throws OntologyManagerException, DynamicRightsManagerException
remover
- the user who wants to remove the attributeattr
- the Attribute object to be removed
OntologyManagerException
- if the attribute could not be removed
DynamicRightsManagerException
- if the user is not allowed to remove the attributeDynamicRightsManager.mayRemoveAttribute(User, Attribute)
public Collection getAttributes(User getter)
getter
- the user who wants to see the attributes
null
Attribute
,
DynamicRightsManager.mayViewAttribute(User, Attribute)
,
DynamicRightsManager.mayViewTopic(User, Topic)
public Collection getAttributes(User getter, Topic type)
getter
- the user who wants to see the attributestype
- type the type topic of the attributes, including null
for the typeless attributes
null
Attribute
,
DynamicRightsManager.mayViewAttribute(User, Attribute)
public Attribute getAttribute(User getter, String id)
getter
- the user who wants to get the attributeid
- the id in question
null
if this element does not have an attribute with the idConcept.getId()
,
DynamicRightsManager.mayViewAttribute(User, Attribute)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |