Interface AuditConstrainerEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates, updates, and deletes
AuditConstrainerEnablers . 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
AuditConstrainerEnabler , an AuditConstrainerEnablerForm
is requested using getAuditConstrainerEnablerFormForCreate()
specifying the desired record Types or none if no record
Types are needed. The returned AuditConstrainerEnablerForm 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
AuditConstrainerEnablerForm is submiited to a create operation, it cannot
be reused with another create operation unless the first operation was
unsuccessful. Each AuditConstrainerEnablerForm corresponds to an
attempted transaction.
For updates, AuditConstrainerEnablerForms are requested to the
AuditConstrainerEnabler Id that is to be updated using
getAuditConstrainerEnablerFormForUpdate() . Similarly, the
AuditConstrainerEnablerForm has metadata about the data that can be
updated and it can perform validation before submitting the update. The
AuditConstrainerEnablerForm can only be used once for a successful
update and cannot be reused.
The delete operations delete AuditConstrainerEnablers . To
unmap an AuditConstrainerEnabler from the current Inquest
, the AuditConstrainerEnablerInquestAssignmentSession should be
used. These delete operations attempt to remove the
AuditConstrainerEnabler 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 TypeMethodDescriptionvoidaliasAuditConstrainerEnabler(Id auditConstrainerEnablerId, Id aliasId) Adds anIdto anAuditConstrainerEnablerfor the purpose of creating compatibility.booleanTests if this user can createAuditConstrainerEnablers.booleancanCreateAuditConstrainerEnablerWithRecordTypes(Type[] auditConstrainerEnablerRecordTypes) Tests if this user can create a singleAuditConstrainerEnablerusing the desired record types.booleanTests if this user can deleteAuditConstrainerEnablers.booleanTests if this user can manageIdaliases forAuditConstrainerEnablersA return of true does not guarantee successful authorization.booleanTests if this user can updateAuditConstrainerEnablers.createAuditConstrainerEnabler(AuditConstrainerEnablerForm auditConstrainerEnablerForm) Creates a newAuditConstrainerEnabler.voiddeleteAuditConstrainerEnabler(Id auditConstrainerEnablerId) Deletes anAuditConstrainerEnabler.getAuditConstrainerEnablerFormForCreate(Type[] auditConstrainerEnablerRecordTypes) Gets the audit constrainer enabler form for creating new audit constrainer enablers.getAuditConstrainerEnablerFormForUpdate(Id auditConstrainerEnablerId) Gets the audit constrainer enabler form for updating an existing audit constrainer enabler.Gets theInquestassociated with this session.Gets theInquestIdassociated with this session.voidupdateAuditConstrainerEnabler(AuditConstrainerEnablerForm auditConstrainerEnablerForm) Updates an existing audit constrainer 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.
-
canCreateAuditConstrainerEnablers
boolean canCreateAuditConstrainerEnablers()Tests if this user can createAuditConstrainerEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating anAuditConstrainerEnablerwill 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:
falseifAuditConstrainerEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateAuditConstrainerEnablerWithRecordTypes
Tests if this user can create a singleAuditConstrainerEnablerusing the desired record types. WhileInquiryRulesManager.getAuditConstrainerEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificAuditConstrainerEnabler. Providing an empty array tests if anAuditConstrainerEnabler can be created with no records.- Parameters:
auditConstrainerEnablerRecordTypes- array of audit constrainer enabler record types- Returns:
trueifAuditConstrainerEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-auditConstrainerEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getAuditConstrainerEnablerFormForCreate
AuditConstrainerEnablerForm getAuditConstrainerEnablerFormForCreate(Type[] auditConstrainerEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the audit constrainer enabler form for creating new audit constrainer enablers. A new form should be requested for each create transaction.- Parameters:
auditConstrainerEnablerRecordTypes- array of audit constrainer enabler record types- Returns:
- the audit constrainer enabler form
- Throws:
NullArgumentException-auditConstrainerEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createAuditConstrainerEnabler
AuditConstrainerEnabler createAuditConstrainerEnabler(AuditConstrainerEnablerForm auditConstrainerEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newAuditConstrainerEnabler.- Parameters:
auditConstrainerEnablerForm- the form for thisAuditConstrainerEnabler- Returns:
- the new
AuditConstrainerEnabler - Throws:
IllegalStateException-auditConstrainerEnablerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-auditConstrainerEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-auditConstrainerEnablerFormdid not originate fromgetAuditConstrainerEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateAuditConstrainerEnablers
boolean canUpdateAuditConstrainerEnablers()Tests if this user can updateAuditConstrainerEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating anAuditConstrainerEnablerwill 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:
falseifAuditConstrainerEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getAuditConstrainerEnablerFormForUpdate
AuditConstrainerEnablerForm getAuditConstrainerEnablerFormForUpdate(Id auditConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the audit constrainer enabler form for updating an existing audit constrainer enabler. A new audit constrainer enabler form should be requested for each update transaction.- Parameters:
auditConstrainerEnablerId- theIdof theAuditConstrainerEnabler- Returns:
- the audit constrainer enabler form
- Throws:
NotFoundException-auditConstrainerEnablerIdis not foundNullArgumentException-auditConstrainerEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateAuditConstrainerEnabler
void updateAuditConstrainerEnabler(AuditConstrainerEnablerForm auditConstrainerEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing audit constrainer enabler.- Parameters:
auditConstrainerEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-auditConstrainerEnablerFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-auditConstrainerEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-auditConstrainerEnablerFormdid not originate fromgetAuditConstrainerEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteAuditConstrainerEnablers
boolean canDeleteAuditConstrainerEnablers()Tests if this user can deleteAuditConstrainerEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting anAuditConstrainerEnablerwill 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:
falseifAuditConstrainerEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteAuditConstrainerEnabler
void deleteAuditConstrainerEnabler(Id auditConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes anAuditConstrainerEnabler.- Parameters:
auditConstrainerEnablerId- theIdof theAuditConstrainerEnablerto remove- Throws:
NotFoundException-auditConstrainerEnablerIdnot foundNullArgumentException-auditConstrainerEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageAuditConstrainerEnablerAliases
boolean canManageAuditConstrainerEnablerAliases()Tests if this user can manageIdaliases forAuditConstrainerEnablersA 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:
falseifAuditConstrainerEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasAuditConstrainerEnabler
void aliasAuditConstrainerEnabler(Id auditConstrainerEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto anAuditConstrainerEnablerfor the purpose of creating compatibility. The primaryIdof theAuditConstrainerEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another audit constrainer enabler, it is reassigned to the given audit constrainer enablerId.- Parameters:
auditConstrainerEnablerId- theIdof anAuditConstrainerEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-auditConstrainerEnablerIdnot foundNullArgumentException-auditConstrainerEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-