OSID Logo
OSID Specifications
installation package
Version 3.0.0
Interfaceosid.installation.PackageForm
Implementsosid.OsidObjectForm
osid.OsidSourceableForm
Implemented Byosid.installation.batch.PackageBatchForm
Used Byosid.installation.PackageAdminSession
Description

This is the form for creating and updating Packages . Like all OsidForms . various data elements may be set here for use in the create and update methods in the PackageAdminSession . For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetVersionMetadata
Description

Gets the metadata for a version.

Returnosid.Metadatametadata for the version
CompliancemandatoryThis method must be implemented.
MethodsetVersion
Description

Sets the version.

Parametersosid.installation.Versionversionthe new version
ErrorsINVALID_ARGUMENTversion is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTversion is null
CompliancemandatoryThis method must be implemented.
MethodclearVersion
Description

Clears the version.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetCopyrightMetadata
Description

Gets the metadata for a copyright.

Returnosid.Metadatametadata for the copyright
CompliancemandatoryThis method must be implemented.
MethodsetCopyright
Description

Sets the copyright.

Parametersstringcopyrightthe new copyright
ErrorsINVALID_ARGUMENTcopyright is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTcopyright is null
CompliancemandatoryThis method must be implemented.
MethodclearCopyright
Description

Clears the version.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetRequiresLicenseAcknowledgementMetadata
Description

Gets the metadata for the requires license acknowledgement flag.

Returnosid.Metadatametadata for the acknowledgement flag
CompliancemandatoryThis method must be implemented.
MethodsetRequiresLicenseAcknowledgement
Description

Sets the requires license acknowledgement flag.

ParametersbooleanrequiresLicenseAcknowledgementthe new ackknowledgement flag
ErrorsINVALID_ARGUMENTrequiresLicenseAcknowledgement is invalid
NO_ACCESSMetadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearRequiresLicenseAcknowledgement
Description

Clears the acknowledgement flag.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetCreatorMetadata
Description

Gets the metadata for a creator resource.

Returnosid.Metadatametadata for the creator resource
CompliancemandatoryThis method must be implemented.
MethodsetCreator
Description

Sets the creator resource.

Parametersosid.id.IdresourceIdthe new creator resource
ErrorsINVALID_ARGUMENTresourceId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTresourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearCreator
Description

Clears the creator.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetReleaseDateMetadata
Description

Gets the metadata for the release date.

Returnosid.Metadatametadata for the release date
CompliancemandatoryThis method must be implemented.
MethodsetReleaseDate
Description

Sets the publisher release date.

Parametersosid.calendaring.DateTimereleaseDatethe new release date
ErrorsINVALID_ARGUMENTreleaseDate is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTreleaseDate is null
CompliancemandatoryThis method must be implemented.
MethodclearReleaseDate
Description

Clears the release date.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetDependenciesMetadata
Description

Gets the metadata for the package dependencies.

Returnosid.Metadatametadata for the package dependencies
CompliancemandatoryThis method must be implemented.
MethodsetDependencies
Description

Sets the dependencies.

Parametersosid.id.Id[]packageIdsthe new package dependencies
ErrorsINVALID_ARGUMENTpackageIds is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTpackageIds is null
CompliancemandatoryThis method must be implemented.
MethodclearDependencies
Description

Clears the package dependencies.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetURLMetadata
Description

Gets the metadata for the url.

Returnosid.Metadatametadata for the url
CompliancemandatoryThis method must be implemented.
MethodsetURL
Description

Sets the url.

Parametersstringurlthe new url
ErrorsINVALID_ARGUMENTurl is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTurl is null
CompliancemandatoryThis method must be implemented.
MethodclearURL
Description

Clears the url.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetPackageFormRecord
Description

Gets the PackageFormRecord corresponding to the given package record Type .

Parametersosid.type.TypepackageRecordTypethe package record type
Returnosid.installation.records.PackageFormRecordthe package form record
ErrorsNULL_ARGUMENTpackageRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(packageRecordType) is false
CompliancemandatoryThis method must be implemented.