Interface ParameterProcessorEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes parameter processor enablers. The data
for create and update is provided via the
ParameterProcessorEnablerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasParameterProcessorEnabler(Id parameterProcessorEnablerId, Id aliasId) Adds anIdto aParameterProcessorEnablerfor the purpose of creating compatibility.booleanTests if this user can create parameter processor enablers.booleancanCreateParameterProcessorEnablerWithRecordTypes(Type[] parameterProcessorEnablerRecordTypes) Tests if this user can create a singleParameterProcessorEnablerusing the desired record types.booleanTests if this user can delete parameter processor enablers.booleanTests if this user can manageIdaliases for parameter processor enablers.booleanTests if this user can update parameter processor enablers.createParameterProcessorEnabler(ParameterProcessorEnablerForm parameterProcessorEnablerForm) Creates a newParameterProcessorEnabler.voiddeleteParameterProcessorEnabler(Id parameterProcessorEnablerId) Deletes aParameterProcessorEnabler.Gets theConfigurationassociated with this session.Gets theConfigurationIdassociated with this session.getParameterProcessorEnablerFormForCreate(Type[] parameterProcessorEnablerRecordTypes) Gets the parameter processor enabler form for creating new parameter processor enablers.getParameterProcessorEnablerFormForUpdate(Id parameterProcessorEnablerId) Gets the parameter processor enabler form for updating an existing parameter processor enabler.voidupdateParameterProcessorEnabler(ParameterProcessorEnablerForm parameterProcessorEnablerForm) Updates an existing parameter 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
-
getConfigurationId
Id getConfigurationId()Gets theConfigurationIdassociated with this session.- Returns:
- the
Configuration Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getConfiguration
Gets theConfigurationassociated with this session.- Returns:
- the configuration
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canCreateParameterProcessorEnabler
boolean canCreateParameterProcessorEnabler()Tests if this user can create parameter processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating aParameterProcessorEnablerwill 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:
falseifParameterProcessorEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateParameterProcessorEnablerWithRecordTypes
boolean canCreateParameterProcessorEnablerWithRecordTypes(Type[] parameterProcessorEnablerRecordTypes) Tests if this user can create a singleParameterProcessorEnablerusing the desired record types. WhileConfigurationRulesManager.getParameterProcessorEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificParameterProcessorEnabler. Providing an empty array tests if aParameterProcessorEnablercan be created with no records.- Parameters:
parameterProcessorEnablerRecordTypes- array of parameter processor enabler record types- Returns:
trueifParameterProcessorEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-parameterProcessorEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getParameterProcessorEnablerFormForCreate
ParameterProcessorEnablerForm getParameterProcessorEnablerFormForCreate(Type[] parameterProcessorEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the parameter processor enabler form for creating new parameter processor enablers. A new form should be requested for each create transaction.- Parameters:
parameterProcessorEnablerRecordTypes- array of parameter processor enabler record types- Returns:
- the parameter processor enabler form
- Throws:
NullArgumentException-parameterProcessorEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createParameterProcessorEnabler
ParameterProcessorEnabler createParameterProcessorEnabler(ParameterProcessorEnablerForm parameterProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newParameterProcessorEnabler.- Parameters:
parameterProcessorEnablerForm- the form for thisParameterProcessorEnabler- Returns:
- the new
ParameterProcessorEnabler - Throws:
IllegalStateException-parameterProcessorEnablerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-parameterProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-parameterProcessorEnablerFormdid not originate fromgetParameterProcessorEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateParameterProcessorEnablers
boolean canUpdateParameterProcessorEnablers()Tests if this user can update parameter processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating aParameterProcessorEnablerwill 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:
falseifParameterProcessorEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getParameterProcessorEnablerFormForUpdate
ParameterProcessorEnablerForm getParameterProcessorEnablerFormForUpdate(Id parameterProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the parameter processor enabler form for updating an existing parameter processor enabler. A new parameter processor enabler form should be requested for each update transaction.- Parameters:
parameterProcessorEnablerId- theIdof theParameterProcessorEnabler- Returns:
- the parameter processor enabler form
- Throws:
NotFoundException-parameterProcessorEnablerIdis not foundNullArgumentException-parameterProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateParameterProcessorEnabler
void updateParameterProcessorEnabler(ParameterProcessorEnablerForm parameterProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing parameter processor enabler.- Parameters:
parameterProcessorEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-parameterProcessorEnablerFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-parameterProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-parameterProcessorEnablerFormdid not originate fromgetParameterProcessorEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteParameterProcessorEnablers
boolean canDeleteParameterProcessorEnablers()Tests if this user can delete parameter processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting aParameterProcessorEnablerwill 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:
falseifParameterProcessorEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteParameterProcessorEnabler
void deleteParameterProcessorEnabler(Id parameterProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes aParameterProcessorEnabler.- Parameters:
parameterProcessorEnablerId- theIdof theParameterProcessorEnablerto remove- Throws:
NotFoundException-parameterProcessorEnablerIdnot foundNullArgumentException-parameterProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageParameterProcessorEnablerAliases
boolean canManageParameterProcessorEnablerAliases()Tests if this user can manageIdaliases for parameter 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:
falseifParameterProcessorEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasParameterProcessorEnabler
void aliasParameterProcessorEnabler(Id parameterProcessorEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto aParameterProcessorEnablerfor the purpose of creating compatibility. The primaryIdof theParameterProcessorEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another parameter processor enabler. it is reassigned to the given parameter processor enablerId.- Parameters:
parameterProcessorEnablerId- theIdof aParameterProcessorEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-parameterProcessorEnablerIdnot foundNullArgumentException-parameterProcessorEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-