OSID Logo
OSID Specifications
control package
Version 3.1.0
Interfaceosid.control.SystemAdminSession
Implementsosid.OsidSession
Implemented Byosid.control.batch.SystemBatchAdminSession
Used Byosid.control.ControlManager
osid.control.ControlProxyManager
Description

This session creates, updates, and deletes Systems. 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 a System, a SystemForm is requested using getSystemFormForCreate() specifying the desired record Types or none if no record Types are needed. The returned SystemForm 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 SystemForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each SystemForm corresponds to an attempted transaction.

For updates, SystemForms are requested to the System Id that is to be updated using getSystemFormForUpdate(). Similarly, the SystemForm has metadata about the data that can be updated and it can perform validation before submitting the update. The SystemForm can only be used once for a successful update and cannot be reused.

The delete operations delete Systems.

This session includes an Id aliasing mechanism to assign an external Id to an internally assigned Id.

MethodcanCreateSystems
Description

Tests if this user can create Systems. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a System. will result in a PERMISSION_DENIED. This is intended as a hint to an application that may not wish to offer create operations to unauthorized users.

Returnboolean false if System creation is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanCreateSystemWithRecordTypes
Description

Tests if this user can create a single System using the desired record types. While ControlManager.getSystemRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific System. Providing an empty array tests if a System can be created with no records.

Parametersosid.type.Type[]systemRecordTypes array of system record types
Returnboolean true if System creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT systemRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetSystemFormForCreate
Description

Gets the system form for creating new systems. A new form should be requested for each create transaction.

Parametersosid.type.Type[]systemRecordTypes array of system record types
Returnosid.control.SystemForm the system form
ErrorsNULL_ARGUMENT systemRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to get form for requested record types
Compliancemandatory This method must be implemented.
MethodcreateSystem
Description

Creates a new System.

Parametersosid.control.SystemFormsystemForm the form for this System
Returnosid.control.System the new System
ErrorsILLEGAL_STATE systemForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT systemForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED systemForm did not originate from getSystemFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateSystems
Description

Tests if this user can update Systems. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a System will result in a PERMISSION_DENIED. This is intended as a hint to an application that may not wish to offer update operations to unauthorized users.

Returnboolean false if System modification is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetSystemFormForUpdate
Description

Gets the system form for updating an existing system. A new system form should be requested for each update transaction.

Parametersosid.id.IdsystemId the Id of the System
Returnosid.control.SystemForm the system form
ErrorsNOT_FOUND systemId is not found
NULL_ARGUMENT systemId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateSystem
Description

Updates an existing system

Parametersosid.control.SystemFormsystemForm the form containing the elements to be updated
ErrorsILLEGAL_STATE systemForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT systemForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED systemForm did not originate from getSystemFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteSystems
Description

Tests if this user can delete Systems. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a System will result in a PERMISSION_DENIED. This is intended as a hint to an application that may not wish to offer delete operations to unauthorized users.

Returnboolean false if System deletion is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoddeleteSystem
Description

Deletes a System.

Parametersosid.id.IdsystemId the Id of the System to remove
ErrorsNOT_FOUND systemId not found
NULL_ARGUMENT systemId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSystemAliases
Description

Tests if this user can manage Id aliases for Systems. A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.

Returnboolean false if System aliasing is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasSystem
Description

Adds an Id to a System for the purpose of creating compatibility. The primary Id of the System is determined by the provider. The new Id performs as an alias to the primary Id.

Parametersosid.id.IdsystemId the Id of a System
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND systemId not found
NULL_ARGUMENT systemId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.