OSID Logo
OSID Specifications
installation package
Version 3.0.0
Release Candidate Preview
Interfaceosid.installation.Package
Implementsosid.OsidObject
osid.Sourceable
Description

A Package represents an installation bundle in a depot.

MethodgetVersion
Description

Gets the version of this package.

Returnosid.installation.Versionthe package version
CompliancemandatoryThis method must be implemented.
MethodgetCopyright
Description

Gets the copyright of this package.

Returnosid.locale.DisplayTextthe copyright
CompliancemandatoryThis method must be implemented.
MethodrequestsLicenseAcknowledgement
Description

Tests if the provider requests acknowledgement of the license.

Returnboolean true if the consumer should acknowledge the terms in the license, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCreatorId
Description

Gets the creator or author of this package.

Returnosid.id.Idthe creator Id
CompliancemandatoryThis method must be implemented.
MethodgetCreator
Description

Gets the creator Id of this package.

Returnosid.resource.Resourcethe creator
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetReleaseDate
Description

Gets the release date of this package.

Returnosid.calendaring.DateTimethe timestamp of this package
CompliancemandatoryThis method must be implemented.
MethodgetDependencyIds
Description

Gets the package Ids on which this package directly depends.

Returnosid.id.IdListthe package dependency Ids
CompliancemandatoryThis method must be implemented.
MethodgetDependencies
Description

Gets the packages on which this package directly depends.

Returnosid.installation.PackageListthe package dependencies
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetURL
Description

Gets a url for this package. The url may point to an external project or product site. If no url is available an empty string is returned.

Returnstringthe url for this package
CompliancemandatoryThis method must be implemented.
MethodgetInstallationContentIds
Description

Gets the installation content Ids.

Returnosid.id.IdListthe installation content Ids
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetInstallationContents
Description

Gets the installation contents.

Returnosid.installation.InstallationContentListthe installation contents
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetPackageRecord
Description

Gets the package record corresponding to the given Package record Type. This method is used to retrieve an object implementing the requested record. The packageRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(packageRecordType) is true .

Parametersosid.type.TypepackageRecordTypethe type of the record to retrieve
Returnosid.installation.records.PackageRecordthe package record
ErrorsNULL_ARGUMENT packageRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(packageRecordType) is false
CompliancemandatoryThis method must be implemented.