OSID Logo
OSID Specifications
installation package
Version 3.1.0
Interfaceosid.installation.InstallationPackageAdminSession
Implementsosid.OsidSession
Implemented Byosid.installation.batch.InstallationPackageBatchAdminSession
Used Byosid.installation.InstallationManager
osid.installation.InstallationProxyManager
Description

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

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

The delete operations delete InstallationPackages. To unmap a InstallationPackage from the current Depot, the InstallationPackageDepotAssignmentSession should be used. These delete operations attempt to remove the InstallationPackage itself thus removing it from all known Depot catalogs.

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

MethodgetDepotId
Description

Gets the Depot Id associated with this session.

Returnosid.id.Id the Depot Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetDepot
Description

Gets the Depot associated with this session.

Returnosid.installation.Depot the Depot associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanCreateInstallationPackages
Description

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

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

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

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

Gets the package form for creating new packages. A new form should be requested for each create transaction.

Parametersosid.type.Type[]installationPackageRecordTypes array of package record types
Returnosid.installation.InstallationPackageForm the package form
ErrorsNULL_ARGUMENT installationPackageRecordTypes 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.
MethodcreateInstallationPackage
Description

Creates a new InstallationPackage.

Parametersosid.installation.InstallationPackageForminstallationPackageForm the form for this InstallationPackage
Returnosid.installation.InstallationPackage the new InstallationPackage
ErrorsILLEGAL_STATE installationPackageForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT installationPackageForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED installationPackageForm did not originate from getInstallationPackageFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateInstallationPackages
Description

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

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

Tests if this user can update a specified package. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating the package will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer an update operation to an unauthorized user for this function.

Parametersosid.id.IdinstallationPackageId the Id of the InstallationPackage
Returnboolean false if package modification is not authorized, true otherwise
ErrorsNULL_ARGUMENT installationPackageId is null
Compliancemandatory This method must be implemented.
Provider Notes

If the installationPackageId is not found, then it is acceptable to return false to indicate the lack of an update available.

MethodgetInstallationPackageFormForUpdate
Description

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

Parametersosid.id.IdinstallationPackageId the Id of the InstallationPackage
Returnosid.installation.InstallationPackageForm the package form
ErrorsNOT_FOUND installationPackageId is not found
NULL_ARGUMENT installationPackageId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateInstallationPackage
Description

Updates an existing package.

Parametersosid.installation.InstallationPackageForminstallationPackageForm the form containing the elements to be updated
ErrorsINVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT installationPackageForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED installationPackageForm did not originate from getInstallationPackageFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteInstallationPackages
Description

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

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

Tests if this user can delete a specified InstallationPackage. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting the InstallationPackage will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer a delete operation to an unauthorized user for this function.

Parametersosid.id.IdinstallationPackageId the Id of the InstallationPackage
Returnboolean false if InstallationPackage deletion is not authorized, true otherwise
ErrorsNULL_ARGUMENT installationPackageId is null
Compliancemandatory This method must be implemented.
Provider Notes

If the installationPackageId is not found, then it is acceptable to return false to indicate the lack of a delete available.

MethoddeleteInstallationPackage
Description

Deletes the InstallationPackage identified by the given Id.

Parametersosid.id.IdinstallationPackageId the Id of the InstallationPackage to delete
ErrorsNOT_FOUND a InstallationPackage was not found identified by the given Id
NULL_ARGUMENT installationPackageId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageInstallationPackageAliases
Description

Tests if this user can manage Id aliases for InstallationPackages. 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 InstallationPackage aliasing is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasInstallationPackage
Description

Adds an Id to a InstallationPackage for the purpose of creating compatibility. The primary Id of the InstallationPackage is determined by the provider. The new Id performs as an alias to the primary Id. If the alias is a pointer to another package it is reassigned to the given package Id.

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

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

Returnboolean false if installation content creation is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanCreateInstallationContentWithRecordTypes
Description

Tests if this user can create an InstallationContent using the desired record types. While InstallationManager.getInstallationContentRecordTypes() can be used to test which records are supported, this method tests which records are required for creating a specific InstallationContent. Providing an empty array tests if an InstallationContent can be created with no records.

Parametersosid.type.Type[]installationContentRecordTypes array of installation content record types
Returnboolean true if InstallationContent creation using the specified Types is supported, false otherwise
ErrorsNULL_ARGUMENT installationContentRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetInstallationContentFormForCreate
Description

Gets an installation content form for creating new installation contents.

Parametersosid.id.IdinstallationPackageId the Id of a InstallationPackage
osid.type.Type[]installationContentRecordTypes array of installation content record types
Returnosid.installation.InstallationContentForm the installation content form
ErrorsNOT_FOUND installationPackageId is not found
NULL_ARGUMENT installationPackageId or installationContentRecordTypes 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.
MethodcreateInstallationContent
Description

Creates new InstallationContent for a given package.

Parametersosid.installation.InstallationContentForminstallationContentForm the form for this InstallationContent
Returnosid.installation.InstallationContent the new InstallationContent
ErrorsILLEGAL_STATE installationContentForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT installationContentForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED installationContentForm did not originate from getInstallationContentFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateInstallationContents
Description

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

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

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

Parametersosid.id.IdinstallationContentId the Id of the InstallationContent
Returnosid.installation.InstallationContentForm the v content form
ErrorsNOT_FOUND installationContentId is not found
NULL_ARGUMENT installationContentId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodupdateInstallationContent
Description

Updates an existing installation content.

Parametersosid.installation.InstallationContentForminstallationContentForm the form containing the elements to be updated
ErrorsILLEGAL_STATE installationContentForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT installationForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED installationContentForm did not originate from getInstallationContentFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteInstallationContents
Description

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

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

Deletes content from a package.

Parametersosid.id.IdinstallationContentId the Id of the InstallationContent
ErrorsNOT_FOUND installationContentId is not found
NULL_ARGUMENT installationContentId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageInstallationPackageVersions
Description

Tests if this user can manage package versions. A return of true does not guarantee successful authorization. A return of false indicates that it is known version methods will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.

Returnboolean false if package versioning is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaddInstallationPackageVersion
Description

Sets the given package to be the next version of another package.

Parametersosid.id.IdinstallationPackageId the Id of a InstallationPackage
osid.id.IdnextInstallationPackageId the Id of the net package version
ErrorsALREADY_EXISTS nextInstallationPackageId or installationPackageId already part of a version chain
NOT_FOUND installationPackageId or nextInstallationPackageId not found
NULL_ARGUMENT installationPackageId or nextInstallationPackageId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodremoveInstallationPackageVersion
Description

Removes a package from being the next version of another package.

Parametersosid.id.IdinstallationPackageId the Id of a InstallationPackage
osid.id.IdnextInstallationPackageId the Id of the net package version
ErrorsNOT_FOUND nextInstallationPackageId does not follow installationPackageId
NULL_ARGUMENT installationPackageId or dependencyId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.