Interface CanonicalUnitProcessorEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes canonical unit processor enablers. The
data for create and update is provided via the
CanonicalUnitProcessorEnablerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasCanonicalUnitProcessorEnabler(Id canonicalUnitProcessorEnablerId, Id aliasId) Adds anIdto aCanonicalUnitProcessorEnablerfor the purpose of creating compatibility.booleanTests if this user can create canonical unit processor enablers.booleancanCreateCanonicalUnitProcessorEnablerWithRecordTypes(Type[] canonicalUnitProcessorEnablerRecordTypes) Tests if this user can create a singleCanonicalUnitProcessorEnablerusing the desired record types.booleanTests if this user can delete canonical unit processor enablers.booleanTests if this user can manageIdaliases for canonical unit processor enablers.booleanTests if this user can update canonical unit processor enablers.createCanonicalUnitProcessorEnabler(CanonicalUnitProcessorEnablerForm canonicalUnitProcessorEnablerForm) Creates a newCanonicalUnitProcessorEnabler.voiddeleteCanonicalUnitProcessorEnabler(Id canonicalUnitProcessorEnablerId) Deletes aCanonicalUnitProcessorEnabler.getCanonicalUnitProcessorEnablerFormForCreate(Type[] canonicalUnitProcessorEnablerRecordTypes) Gets the canonical unit processor enabler form for creating new canonical unit processor enablers.getCanonicalUnitProcessorEnablerFormForUpdate(Id canonicalUnitProcessorEnablerId) Gets the canonical unit processor enabler form for updating an existing canonical unit processor enabler.Gets theCatalogueassociated with this session.Gets theCatalogueIdassociated with this session.voidupdateCanonicalUnitProcessorEnabler(CanonicalUnitProcessorEnablerForm canonicalUnitProcessorEnablerForm) Updates an existing canonical unit 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
-
getCatalogueId
Id getCatalogueId()Gets theCatalogueIdassociated with this session.- Returns:
- the
Catalogue Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getCatalogue
Gets theCatalogueassociated with this session.- Returns:
- the catalogue
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canCreateCanonicalUnitProcessorEnabler
boolean canCreateCanonicalUnitProcessorEnabler()Tests if this user can create canonical unit processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating aCanonicalUnitProcessorEnablerwill 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:
falseifCanonicalUnitProcessorEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateCanonicalUnitProcessorEnablerWithRecordTypes
boolean canCreateCanonicalUnitProcessorEnablerWithRecordTypes(Type[] canonicalUnitProcessorEnablerRecordTypes) Tests if this user can create a singleCanonicalUnitProcessorEnablerusing the desired record types. WhileOfferingRulesManager.getCanonicalUnitProcessorEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificCanonicalUnitProcessorEnabler. Providing an empty array tests if aCanonicalUnitProcessorEnablercan be created with no records.- Parameters:
canonicalUnitProcessorEnablerRecordTypes- array of canonical unit processor enabler record types- Returns:
trueifCanonicalUnitProcessorEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-canonicalUnitProcessorEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getCanonicalUnitProcessorEnablerFormForCreate
CanonicalUnitProcessorEnablerForm getCanonicalUnitProcessorEnablerFormForCreate(Type[] canonicalUnitProcessorEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the canonical unit processor enabler form for creating new canonical unit processor enablers. A new form should be requested for each create transaction.- Parameters:
canonicalUnitProcessorEnablerRecordTypes- array of canonical unit processor enabler record types- Returns:
- the canonical unit processor enabler form
- Throws:
NullArgumentException-canonicalUnitProcessorEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createCanonicalUnitProcessorEnabler
CanonicalUnitProcessorEnabler createCanonicalUnitProcessorEnabler(CanonicalUnitProcessorEnablerForm canonicalUnitProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newCanonicalUnitProcessorEnabler.- Parameters:
canonicalUnitProcessorEnablerForm- the form for thisCanonicalUnitProcessorEnabler- Returns:
- the new
CanonicalUnitProcessorEnabler - Throws:
IllegalStateException-canonicalUnitProcessorEnablerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-canonicalUnitProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-canonicalUnitProcessorEnablerForm did not originate from getCanonicalUnitProcessorEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateCanonicalUnitProcessorEnablers
boolean canUpdateCanonicalUnitProcessorEnablers()Tests if this user can update canonical unit processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating aCanonicalUnitProcessorEnablerwill 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:
falseifCanonicalUnitProcessorEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getCanonicalUnitProcessorEnablerFormForUpdate
CanonicalUnitProcessorEnablerForm getCanonicalUnitProcessorEnablerFormForUpdate(Id canonicalUnitProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the canonical unit processor enabler form for updating an existing canonical unit processor enabler. A new canonical unit processor enabler form should be requested for each update transaction.- Parameters:
canonicalUnitProcessorEnablerId- theIdof theCanonicalUnitProcessorEnabler- Returns:
- the canonical unit processor enabler form
- Throws:
NotFoundException-canonicalUnitProcessorEnablerIdis not foundNullArgumentException-canonicalUnitProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateCanonicalUnitProcessorEnabler
void updateCanonicalUnitProcessorEnabler(CanonicalUnitProcessorEnablerForm canonicalUnitProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing canonical unit processor enabler.- Parameters:
canonicalUnitProcessorEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-canonicalUnitProcessorEnablerFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-canonicalUnitProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-canonicalUnitProcessorEnablerForm did not originate from getCanonicalUnitProcessorEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteCanonicalUnitProcessorEnablers
boolean canDeleteCanonicalUnitProcessorEnablers()Tests if this user can delete canonical unit processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting aCanonicalUnitProcessorEnablerwill 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:
falseifCanonicalUnitProcessorEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteCanonicalUnitProcessorEnabler
void deleteCanonicalUnitProcessorEnabler(Id canonicalUnitProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes aCanonicalUnitProcessorEnabler.- Parameters:
canonicalUnitProcessorEnablerId- theIdof theCanonicalUnitProcessorEnablerto remove- Throws:
NotFoundException-canonicalUnitProcessorEnablerIdnot foundNullArgumentException-canonicalUnitProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageCanonicalUnitProcessorEnablerAliases
boolean canManageCanonicalUnitProcessorEnablerAliases()Tests if this user can manageIdaliases for canonical unit processor 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:
falseifCanonicalUnitProcessorEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasCanonicalUnitProcessorEnabler
void aliasCanonicalUnitProcessorEnabler(Id canonicalUnitProcessorEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto aCanonicalUnitProcessorEnablerfor the purpose of creating compatibility. The primaryIdof theCanonicalUnitProcessorEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another canonical unit processor enabler. it is reassigned to the given canonical unit processor enablerId.- Parameters:
canonicalUnitProcessorEnablerId- theIdof aCanonicalUnitProcessorEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-canonicalUnitProcessorEnablerIdnot foundNullArgumentException-canonicalUnitProcessorEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-