public interface RelevancyEnablerOntologyAssignmentSession extends OsidSession
This session provides methods to re-assign RelevancyEnabler
to Ontology
mappings. A RelevancyEnabler
may appear in multiple Ontology
objects and
removing the last reference to a RelevancyEnabler
is the
equivalent of deleting it. Each Ontology
may have its own
authorizations governing who is allowed to operate on it.
Adding a reference of a RelevancyEnabler
to another
Ontology
is not a copy operation (eg: does not change its
Id
).
Modifier and Type | Method and Description |
---|---|
void |
assignRelevancyEnablerToOntology(Id relevancyEnablerId,
Id ontologyId)
Adds an existing
RelevancyEnabler to an
Ontology. |
boolean |
canAssignRelevancyEnablers()
Tests if this user can alter relevancy enabler/ontology mappings.
|
boolean |
canAssignRelevancyEnablersToOntology(Id ontologyId)
Tests if this user can alter relevancy enabler/ontology mappings.
|
IdList |
getAssignableOntologyIds(Id ontologyId)
Gets a list of ontologies including and under the given ontology node
in which any relevancy enabler can be assigned.
|
IdList |
getAssignableOntologyIdsForRelevancyEnabler(Id ontologyId,
Id relevancyEnablerId)
Gets a list of ontologies including and under the given ontology node
in which a specific relevancy enabler can be assigned.
|
void |
unassignRelevancyEnablerFromOntology(Id relevancyEnablerId,
Id ontologyId)
Removes a
RelevancyEnabler from an Ontology. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canAssignRelevancyEnablers()
PERMISSION_DENIED.
This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users. false
if mapping is not authorized, true
otherwisemandatory
- This method must be implemented. boolean canAssignRelevancyEnablersToOntology(Id ontologyId)
PERMISSION_DENIED.
This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users.ontologyId
- the Id
of the Ontology
false
if mapping is not authorized, true
otherwiseNullArgumentException
- ontologyId
is
null
mandatory
- This method must be implemented. IdList getAssignableOntologyIds(Id ontologyId) throws OperationFailedException
ontologyId
- the Id
of the Ontology
Ids
NullArgumentException
- ontologyId
is
null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. IdList getAssignableOntologyIdsForRelevancyEnabler(Id ontologyId, Id relevancyEnablerId) throws OperationFailedException
ontologyId
- the Id
of the Ontology
relevancyEnablerId
- the Id
of the
RelevancyEnabler
Ids
NullArgumentException
- ontologyId
or
relevancyEnablerId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void assignRelevancyEnablerToOntology(Id relevancyEnablerId, Id ontologyId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
RelevancyEnabler
to an
Ontology.
relevancyEnablerId
- the Id
of the
RelevancyEnabler
ontologyId
- the Id
of the Ontology
AlreadyExistsException
- relevancyEnablerId
is already assigned to ontologyId
NotFoundException
- relevancyEnablerId
or ontologyId
not foundNullArgumentException
- relevancyEnablerId
or ontologyId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignRelevancyEnablerFromOntology(Id relevancyEnablerId, Id ontologyId) throws NotFoundException, OperationFailedException, PermissionDeniedException
RelevancyEnabler
from an Ontology.
relevancyEnablerId
- the Id
of the
RelevancyEnabler
ontologyId
- the Id
of the Ontology
NotFoundException
- relevancyEnablerId
or ontologyId
not found or
relevancyEnablerId
not assigned to ontologyId
NullArgumentException
- relevancyEnablerId
or ontologyId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.