public interface OntologyHierarchyDesignSession extends OsidSession
This session defines methods for managing a hierarchy of
Ontology
objects. Each node in the hierarchy is a unique
Ontology.
Modifier and Type | Method and Description |
---|---|
void |
addChildOntology(Id ontologyId,
Id childId)
Adds a child to an ontology.
|
void |
addRootOntology(Id ontologyId)
Adds a root ontology.
|
boolean |
canModifyOntologyHierarchy()
Tests if this user can change the hierarchy.
|
Hierarchy |
getOntologyHierarchy()
Gets the hierarchy associated with this session.
|
Id |
getOntologyHierarchyId()
Gets the hierarchy
Id associated with this session. |
void |
removeChildOntologies(Id ontologyId)
Removes all children from an ontology.
|
void |
removeChildOntology(Id ontologyId,
Id childId)
Removes a child from an ontology.
|
void |
removeRootOntology(Id ontologyId)
Removes a root ontology.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getOntologyHierarchyId()
Id
associated with this session. Id
associated with this sessionmandatory
- This method must be implemented. Hierarchy getOntologyHierarchy() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canModifyOntologyHierarchy()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer these operations to an
unauthorized user. false
if changing this hierarchy is not
authorized, true
otherwisemandatory
- This method must be implemented. void addRootOntology(Id ontologyId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
ontologyId
- the Id
of an ontologyAlreadyExistsException
- ontologyId
is
already in hierarchyNotFoundException
- ontologyId
not foundNullArgumentException
- ontologyId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeRootOntology(Id ontologyId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ontologyId
- the Id
of an ontologyNotFoundException
- ontologyId
is not a
rootNullArgumentException
- ontologyId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void addChildOntology(Id ontologyId, Id childId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
ontologyId
- the Id
of an ontologychildId
- the Id
of the new childAlreadyExistsException
- ontologyId
is
already a parent of childId
NotFoundException
- ontologyId
or
childId
not foundNullArgumentException
- ontologyId
or
childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildOntology(Id ontologyId, Id childId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ontologyId
- the Id
of an ontologychildId
- the Id
of the new childNotFoundException
- ontologyId
not a
parent of childId
NullArgumentException
- ontologyId
or
childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildOntologies(Id ontologyId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ontologyId
- the Id
of an ontologyNotFoundException
- ontologyId
not in
hierarchyNullArgumentException
- ontologyId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.