Interface InquiryEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes inquiry enablers. The data for create
and update is provided via the InquiryEnablerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasInquiryEnabler(Id inquiryEnablerId, Id aliasId) Adds anIdto anInquiryEnablerfor the purpose of creating compatibility.booleanTests if this user can create inquiry enablers.booleancanCreateInquiryEnablerWithRecordTypes(Type[] inquiryEnablerRecordTypes) Tests if this user can create a singleInquiryEnablerusing the desired record types.booleanTests if this user can delete inquiry enablers.booleanTests if this user can manageIdaliases for inquiry enablers.booleanTests if this user can update inquiry enablers.createInquiryEnabler(InquiryEnablerForm inquiryEnablerForm) Creates a newInquiryEnabler.voiddeleteInquiryEnabler(Id inquiryEnablerId) Deletes anInquiryEnabler.Gets theInquestassociated with this session.Gets theInquestIdassociated with this session.getInquiryEnablerFormForCreate(Type[] inquiryEnablerRecordTypes) Gets the inquiry enabler form for creating new inquiry enablers.getInquiryEnablerFormForUpdate(Id inquiryEnablerId) Gets the inquiry enabler form for updating an existing inquiry enabler.voidupdateInquiryEnabler(InquiryEnablerForm inquiryEnablerForm) Updates an existing inquiry 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.
-
canCreateInquiryEnabler
boolean canCreateInquiryEnabler()Tests if this user can create inquiry enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating anInquiryEnablerwill 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:
falseifInquiryEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateInquiryEnablerWithRecordTypes
Tests if this user can create a singleInquiryEnablerusing the desired record types. WhileInquiryRulesManager.getInquiryEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificInquiryEnabler. Providing an empty array tests if anInquiryEnablercan be created with no records.- Parameters:
inquiryEnablerRecordTypes- array of inquiry enabler record types- Returns:
trueifInquiryEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-inquiryEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getInquiryEnablerFormForCreate
InquiryEnablerForm getInquiryEnablerFormForCreate(Type[] inquiryEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the inquiry enabler form for creating new inquiry enablers. A new form should be requested for each create transinquiry.- Parameters:
inquiryEnablerRecordTypes- array of inquiry enabler record types- Returns:
- the inquiry enabler form
- Throws:
NullArgumentException-inquiryEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createInquiryEnabler
InquiryEnabler createInquiryEnabler(InquiryEnablerForm inquiryEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newInquiryEnabler.- Parameters:
inquiryEnablerForm- the form for thisInquiryEnabler- Returns:
- the new
InquiryEnabler - Throws:
IllegalStateException-inquiryEnablerFormalready used in a create transinquiryInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-inquiryEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-inquiryEnablerForm did not originate from getInquiryEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateInquiryEnablers
boolean canUpdateInquiryEnablers()Tests if this user can update inquiry enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating anInquiryEnablerwill 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:
falseifInquiryEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getInquiryEnablerFormForUpdate
InquiryEnablerForm getInquiryEnablerFormForUpdate(Id inquiryEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the inquiry enabler form for updating an existing inquiry enabler. A new inquiry enabler form should be requested for each update transinquiry.- Parameters:
inquiryEnablerId- theIdof theInquiryEnabler- Returns:
- the inquiry enabler form
- Throws:
NotFoundException-inquiryEnablerIdis not foundNullArgumentException-inquiryEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateInquiryEnabler
void updateInquiryEnabler(InquiryEnablerForm inquiryEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing inquiry enabler.- Parameters:
inquiryEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-inquiryEnablerFormalready used in an update transinquiryInvalidArgumentException- the form contains an invalid valueNullArgumentException-inquiryEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-inquiryEnablerFormdid not originate fromgetInquiryEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteInquiryEnablers
boolean canDeleteInquiryEnablers()Tests if this user can delete inquiry enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting anInquiryEnablerwill 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:
falseifInquiryEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteInquiryEnabler
void deleteInquiryEnabler(Id inquiryEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes anInquiryEnabler.- Parameters:
inquiryEnablerId- theIdof theInquiryEnablerto remove- Throws:
NotFoundException-inquiryEnablerIdnot foundNullArgumentException-inquiryEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageInquiryEnablerAliases
boolean canManageInquiryEnablerAliases()Tests if this user can manageIdaliases for inquiry 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.- Returns:
falseifInquiryEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasInquiryEnabler
void aliasInquiryEnabler(Id inquiryEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto anInquiryEnablerfor the purpose of creating compatibility. The primaryIdof theInquiryEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another inquiry enabler. it is reassigned to the given inquiry enablerId.- Parameters:
inquiryEnablerId- theIdof anInquiryEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-inquiryEnablerIdnot foundNullArgumentException-inquiryEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-