public interface RelevancyEnablerAdminSession extends OsidSession
This session creates and removes relevancy enablers. The data for
create and update is provided via the RelevancyEnablerForm.
| Modifier and Type | Method and Description |
|---|---|
void |
aliasRelevancyEnabler(Id relevancyEnablerId,
Id aliasId)
Adds an
Id to a RelevancyEnabler for the
purpose of creating compatibility. |
boolean |
canCreateRelevancyEnabler()
Tests if this user can create relevancy enablers.
|
boolean |
canCreateRelevancyEnablerWithRecordTypes(Type[] relevancyEnablerRecordTypes)
Tests if this user can create a single
RelevancyEnabler
using the desired record types. |
boolean |
canDeleteRelevancyEnablers()
Tests if this user can delete relevancy enablers.
|
boolean |
canManageRelevancyEnablerAliases()
Tests if this user can manage
Id aliases for relevancy
enablers. |
boolean |
canUpdateRelevancyEnablers()
Tests if this user can update relevancy enablers.
|
RelevancyEnabler |
createRelevancyEnabler(RelevancyEnablerForm relevancyEnablerForm)
Creates a new
RelevancyEnabler. |
void |
deleteRelevancyEnabler(Id relevancyEnablerId)
Deletes a
RelevancyEnabler. |
Ontology |
getOntology()
Gets the
Ontology associated with this session. |
Id |
getOntologyId()
Gets the
Ontology Id associated with
this session. |
RelevancyEnablerForm |
getRelevancyEnablerFormForCreate(Type[] relevancyEnablerRecordTypes)
Gets the relevancy enabler form for creating new relevancy enablers.
|
RelevancyEnablerForm |
getRelevancyEnablerFormForUpdate(Id relevancyEnablerId)
Gets the relevancy enabler form for updating an existing relevancy
enabler.
|
void |
updateRelevancyEnabler(RelevancyEnablerForm relevancyEnablerForm)
Updates an existing relevancy enabler.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getOntologyId()
Ontology Id associated with
this session. Ontology Id associated with this sessionmandatory - This method must be implemented. Ontology getOntology() throws OperationFailedException, PermissionDeniedException
Ontology associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canCreateRelevancyEnabler()
RelevancyEnabler
will result in a PERMISSION_DENIED. This is intended as
a hint to an application that may opt not to offer create operations
to an unauthorized user. false if RelevancyEnabler
creation is not authorized, true otherwisemandatory - This method must be implemented. boolean canCreateRelevancyEnablerWithRecordTypes(Type[] relevancyEnablerRecordTypes)
RelevancyEnabler
using the desired record types. While
OntologyRulesManager.getRelevancyEnablerRecordTypes() can be
used to examine which records are supported, this method tests which
record(s) are required for creating a specific
RelevancyEnabler. Providing an empty array tests if a
RelevancyEnabler can be created with no records.relevancyEnablerRecordTypes - array of relevancy enabler record
types true if RelevancyEnabler
creation using the specified record Types is
supported, false otherwiseNullArgumentException -
relevancyEnablerRecordTypes is null mandatory - This method must be implemented. RelevancyEnablerForm getRelevancyEnablerFormForCreate(Type[] relevancyEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException
relevancyEnablerRecordTypes - array of relevancy enabler record
typesNullArgumentException -
relevancyEnablerRecordTypes is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - unable to get form for requested
record typesmandatory - This method must be implemented. RelevancyEnabler createRelevancyEnabler(RelevancyEnablerForm relevancyEnablerForm) throws OperationFailedException, PermissionDeniedException
RelevancyEnabler. relevancyEnablerForm - the form for this RelevancyEnabler
RelevancyEnabler IllegalStateException - relevancyEnablerForm
already used in a create transactionInvalidArgumentException - one or more of the form
elements is invalidNullArgumentException - relevancyEnablerForm
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - relevancyEnablerForm
did not originate from
getRelevancyEnablerFormForCreate() mandatory - This method must be implemented. boolean canUpdateRelevancyEnablers()
RelevancyEnabler
will result in a PERMISSION_DENIED. This is intended as
a hint to an application that may opt not to offer update operations
to an unauthorized user. false if RelevancyEnabler
modification is not authorized, true otherwisemandatory - This method must be implemented. RelevancyEnablerForm getRelevancyEnablerFormForUpdate(Id relevancyEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
relevancyEnablerId - the Id of the
RelevancyEnabler NotFoundException - relevancyEnablerId
is not foundNullArgumentException - relevancyEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void updateRelevancyEnabler(RelevancyEnablerForm relevancyEnablerForm) throws OperationFailedException, PermissionDeniedException
relevancyEnablerForm - the form containing the elements to be
updatedIllegalStateException - relevancyEnablerForm
already used in an update transactionInvalidArgumentException - the form contains an invalid
valueNullArgumentException - relevancyEnablerForm
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - relevancyEnablerForm
did not originate from
getRelevancyEnablerFormForUpdate() mandatory - This method must be implemented. boolean canDeleteRelevancyEnablers()
RelevancyEnabler
will result in a PERMISSION_DENIED. This is intended as
a hint to an application that may opt not to offer delete operations
to an unauthorized user. false if RelevancyEnabler
deletion is not authorized, true otherwisemandatory - This method must be implemented. void deleteRelevancyEnabler(Id relevancyEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
RelevancyEnabler. relevancyEnablerId - the Id of the
RelevancyEnabler to removeNotFoundException - relevancyEnablerId
not foundNullArgumentException - relevancyEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canManageRelevancyEnablerAliases()
Id aliases for relevancy
enablers. A return of true does not guarantee successful
authorization. A return of false indicates that it is known changing
an alias will result in a PERMISSION_DENIED. This is
intended as a hint to an application that may opt not to offer alias
operations to an unauthorized user. false if RelevancyEnabler
aliasing is not authorized, true otherwisemandatory - This method must be implemented. void aliasRelevancyEnabler(Id relevancyEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Id to a RelevancyEnabler for the
purpose of creating compatibility. The primary Id of
the RelevancyEnabler is determined by the provider. The
new Id performs as an alias to the primary Id
. If the alias is a pointer to another relevancy enabler. it
is reassigned to the given relevancy enabler Id. relevancyEnablerId - the Id of a
RelevancyEnabler aliasId - the alias Id AlreadyExistsException - aliasId is
already assignedNotFoundException - relevancyEnablerId
not foundNullArgumentException - relevancyEnablerId
or aliasId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.