Interface ParameterProcessorAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes parameter processors. The data for
create and update is provided via the ParameterProcessorForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasParameterProcessor(Id parameterProcessorId, Id aliasId) Adds anIdto aParameterProcessorfor the purpose of creating compatibility.booleanTests if this user can create parameter processors.booleancanCreateParameterProcessorWithRecordTypes(Type[] parameterProcessorRecordTypes) Tests if this user can create a singleParameterProcessorusing the desired record types.booleanTests if this user can delete parameter processors.booleanTests if this user can manageIdaliases for parameter processors.booleanTests if this user can update parameter processors.createParameterProcessor(ParameterProcessorForm parameterProcessorForm) Creates a newParameterProcessor.voiddeleteParameterProcessor(Id parameterProcessorId) Deletes aParameterProcessor.Gets theConfigurationassociated with this session.Gets theConfigurationIdassociated with this session.getParameterProcessorFormForCreate(Type[] parameterProcessorRecordTypes) Gets the parameter processor form for creating new parameter processors.getParameterProcessorFormForUpdate(Id parameterProcessorId) Gets the parameter processor form for updating an existing parameter processor.voidupdateParameterProcessor(ParameterProcessorForm parameterProcessorForm) Updates an existing parameter processor.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.
-
canCreateParameterProcessor
boolean canCreateParameterProcessor()Tests if this user can create parameter processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating aParameterProcessorwill 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:
falseifParameterProcessorcreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateParameterProcessorWithRecordTypes
Tests if this user can create a singleParameterProcessorusing the desired record types. WhileConfigurationRulesManager.getParameterProcessorRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificParameterProcessor. Providing an empty array tests if aParameterProcessorcan be created with no records.- Parameters:
parameterProcessorRecordTypes- array of parameter processor record types- Returns:
trueifParameterProcessorcreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-parameterProcessorRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getParameterProcessorFormForCreate
ParameterProcessorForm getParameterProcessorFormForCreate(Type[] parameterProcessorRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the parameter processor form for creating new parameter processors. A new form should be requested for each create transaction.- Parameters:
parameterProcessorRecordTypes- array of parameter processor record types- Returns:
- the parameter processor form
- Throws:
NullArgumentException-parameterProcessorRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createParameterProcessor
ParameterProcessor createParameterProcessor(ParameterProcessorForm parameterProcessorForm) throws OperationFailedException, PermissionDeniedException Creates a newParameterProcessor.- Parameters:
parameterProcessorForm- the form for thisParameterProcessor- Returns:
- the new
ParameterProcessor - Throws:
IllegalStateException-parameterProcessorFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-parameterProcessorFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-parameterProcessorFormdid not originate fromgetParameterProcessorFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateParameterProcessors
boolean canUpdateParameterProcessors()Tests if this user can update parameter processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating aParameterProcessorwill 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:
falseifParameterProcessormodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getParameterProcessorFormForUpdate
ParameterProcessorForm getParameterProcessorFormForUpdate(Id parameterProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the parameter processor form for updating an existing parameter processor. A new parameter processor form should be requested for each update transaction.- Parameters:
parameterProcessorId- theIdof theParameterProcessor- Returns:
- the parameter processor form
- Throws:
NotFoundException-parameterProcessorIdis not foundNullArgumentException-parameterProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateParameterProcessor
void updateParameterProcessor(ParameterProcessorForm parameterProcessorForm) throws OperationFailedException, PermissionDeniedException Updates an existing parameter processor.- Parameters:
parameterProcessorForm- the form containing the elements to be updated- Throws:
IllegalStateException-parameterProcessorFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-parameterProcessorFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-parameterProcessorFormdid not originate fromgetParameterProcessorFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteParameterProcessors
boolean canDeleteParameterProcessors()Tests if this user can delete parameter processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting aParameterProcessorwill 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:
falseifParameterProcessordeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteParameterProcessor
void deleteParameterProcessor(Id parameterProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes aParameterProcessor.- Parameters:
parameterProcessorId- theIdof theParameterProcessorto remove- Throws:
NotFoundException-parameterProcessorIdnot foundNullArgumentException-parameterProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageParameterProcessorAliases
boolean canManageParameterProcessorAliases()Tests if this user can manageIdaliases for parameter processors. 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:
falseifParameterProcessoraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasParameterProcessor
void aliasParameterProcessor(Id parameterProcessorId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto aParameterProcessorfor the purpose of creating compatibility. The primaryIdof theParameterProcessoris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another parameter processor. it is reassigned to the given parameter processorId.- Parameters:
parameterProcessorId- theIdof aParameterProcessoraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-parameterProcessorIdnot foundNullArgumentException-parameterProcessorIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-