Interface AuditProcessorEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates, updates, and deletes
AuditProcessorEnablers . The data for create and update is provided by
the consumer via the form object. OsidForms are requested for each
create or update and may not be reused.
Create and update operations differ in their usage. To create an
AuditProcessorEnabler , an AuditProcessorEnablerForm is
requested using getAuditProcessorEnablerFormForCreate() specifying
the desired record Types or none if no record Types are
needed. The returned AuditProcessorEnablerForm will indicate that
it is to be used with a create operation and can be used to examine
metdata or validate data prior to creation. Once the
AuditProcessorEnablerForm is submiited to a create operation, it cannot
be reused with another create operation unless the first operation was
unsuccessful. Each AuditProcessorEnablerForm corresponds to an
attempted transaction.
For updates, AuditProcessorEnablerForms are requested to the
AuditProcessorEnabler Id that is to be updated using
getAuditProcessorEnablerFormForUpdate() . Similarly, the
AuditProcessorEnablerForm has metadata about the data that can be updated
and it can perform validation before submitting the update. The
AuditProcessorEnablerForm can only be used once for a successful update
and cannot be reused.
The delete operations delete AuditProcessorEnablers . To unmap
an AuditProcessorEnabler from the current Inquest , the
AuditProcessorEnablerInquestAssignmentSession should be used.
These delete operations attempt to remove the
AuditProcessorEnabler itself thus removing it from all known
Inquest catalogs.
This session includes an Id aliasing mechanism to assign an
external Id to an internally assigned Id .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasAuditProcessorEnabler(Id auditProcessorEnablerId, Id aliasId) Adds anIdto anAuditProcessorEnablerfor the purpose of creating compatibility.booleanTests if this user can createAuditProcessorEnablers.booleancanCreateAuditProcessorEnablerWithRecordTypes(Type[] auditProcessorEnablerRecordTypes) Tests if this user can create a singleAuditProcessorEnablerusing the desired record types.booleanTests if this user can deleteAuditProcessorEnablers.booleanTests if this user can manageIdaliases forAuditProcessorEnablersA return of true does not guarantee successful authorization.booleanTests if this user can updateAuditProcessorEnablers.createAuditProcessorEnabler(AuditProcessorEnablerForm auditProcessorEnablerForm) Creates a newAuditProcessorEnabler.voiddeleteAuditProcessorEnabler(Id auditProcessorEnablerId) Deletes anAuditProcessorEnabler.getAuditProcessorEnablerFormForCreate(Type[] auditProcessorEnablerRecordTypes) Gets the audit processor enabler form for creating new audit processor enablers.getAuditProcessorEnablerFormForUpdate(Id auditProcessorEnablerId) Gets the audit processor enabler form for updating an existing audit processor enabler.Gets theInquestassociated with this session.Gets theInquestIdassociated with this session.voidupdateAuditProcessorEnabler(AuditProcessorEnablerForm auditProcessorEnablerForm) Updates an existing audit processor enabler.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getInquestId
Id getInquestId()Gets theInquestIdassociated with this session.- Returns:
- the
Inquest Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getInquest
Gets theInquestassociated with this session.- Returns:
- the inquest
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canCreateAuditProcessorEnablers
boolean canCreateAuditProcessorEnablers()Tests if this user can createAuditProcessorEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating anAuditProcessorEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.- Returns:
falseifAuditProcessorEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateAuditProcessorEnablerWithRecordTypes
Tests if this user can create a singleAuditProcessorEnablerusing the desired record types. WhileInquiryRulesManager.getAuditProcessorEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificAuditProcessorEnabler. Providing an empty array tests if anAuditProcessorEnabler can be created with no records.- Parameters:
auditProcessorEnablerRecordTypes- array of audit processor enabler record types- Returns:
trueifAuditProcessorEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-auditProcessorEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getAuditProcessorEnablerFormForCreate
AuditProcessorEnablerForm getAuditProcessorEnablerFormForCreate(Type[] auditProcessorEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the audit processor enabler form for creating new audit processor enablers. A new form should be requested for each create transaction.- Parameters:
auditProcessorEnablerRecordTypes- array of audit processor enabler record types- Returns:
- the audit processor enabler form
- Throws:
NullArgumentException-auditProcessorEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createAuditProcessorEnabler
AuditProcessorEnabler createAuditProcessorEnabler(AuditProcessorEnablerForm auditProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newAuditProcessorEnabler.- Parameters:
auditProcessorEnablerForm- the form for thisAuditProcessorEnabler- Returns:
- the new
AuditProcessorEnabler - Throws:
IllegalStateException-auditProcessorEnablerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-auditProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-auditProcessorEnablerFormdid not originate fromgetAuditProcessorEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateAuditProcessorEnablers
boolean canUpdateAuditProcessorEnablers()Tests if this user can updateAuditProcessorEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating anAuditProcessorEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.- Returns:
falseifAuditProcessorEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getAuditProcessorEnablerFormForUpdate
AuditProcessorEnablerForm getAuditProcessorEnablerFormForUpdate(Id auditProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the audit processor enabler form for updating an existing audit processor enabler. A new audit processor enabler form should be requested for each update transaction.- Parameters:
auditProcessorEnablerId- theIdof theAuditProcessorEnabler- Returns:
- the audit processor enabler form
- Throws:
NotFoundException-auditProcessorEnablerIdis not foundNullArgumentException-auditProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateAuditProcessorEnabler
void updateAuditProcessorEnabler(AuditProcessorEnablerForm auditProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing audit processor enabler.- Parameters:
auditProcessorEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-auditProcessorEnablerFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-auditProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-auditProcessorEnablerFormdid not originate fromgetAuditProcessorEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteAuditProcessorEnablers
boolean canDeleteAuditProcessorEnablers()Tests if this user can deleteAuditProcessorEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting anAuditProcessorEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.- Returns:
falseifAuditProcessorEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteAuditProcessorEnabler
void deleteAuditProcessorEnabler(Id auditProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes anAuditProcessorEnabler.- Parameters:
auditProcessorEnablerId- theIdof theAuditProcessorEnablerto remove- Throws:
NotFoundException-auditProcessorEnablerIdnot foundNullArgumentException-auditProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageAuditProcessorEnablerAliases
boolean canManageAuditProcessorEnablerAliases()Tests if this user can manageIdaliases forAuditProcessorEnablersA return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in aPERMISSION_DENIED.This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.- Returns:
falseifAuditProcessorEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasAuditProcessorEnabler
void aliasAuditProcessorEnabler(Id auditProcessorEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto anAuditProcessorEnablerfor the purpose of creating compatibility. The primaryIdof theAuditProcessorEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another audit processor enabler, it is reassigned to the given audit processor enablerId.- Parameters:
auditProcessorEnablerId- theIdof anAuditProcessorEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-auditProcessorEnablerIdnot foundNullArgumentException-auditProcessorEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-