Interface Package
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Sourceable
A Package represents an installation bundle in a depot.
-
Method Summary
Modifier and TypeMethodDescriptionGets the copyright of this package.Gets the creatorIdof this package.Gets the creator or author of this package.Gets the packages on which this package directly depends.Gets the packageIdson which this package directly depends.Gets the installation contentIds.Gets the installation contents.getPackageRecord(Type packageRecordType) Gets the package record corresponding to the givenPackagerecordType.This method is used to retrieve an object implementing the requested record.Gets the release date of this package.getURL()Gets a url for this package.Gets the version of this package.booleanTests if the provider requests acknowledgement of the license.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderIdModifier and TypeMethodDescriptionGets a branding, such as an image or logo, expressed using theAssetinterface.Gets the branding assetIds.Gets the terms of usage.Gets theResourcerepresenting the provider.Gets theIdof the provider.
-
Method Details
-
getVersion
Version getVersion()Gets the version of this package.- Returns:
- the package version
- Compliance:
mandatory- This method must be implemented.
-
getCopyright
DisplayText getCopyright()Gets the copyright of this package.- Returns:
- the copyright
- Compliance:
mandatory- This method must be implemented.
-
requestsLicenseAcknowledgement
boolean requestsLicenseAcknowledgement()Tests if the provider requests acknowledgement of the license.- Returns:
trueif the consumer should acknowledge the terms in the license,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCreatorId
Id getCreatorId()Gets the creator or author of this package.- Returns:
- the creator
Id - Compliance:
mandatory- This method must be implemented.
-
getCreator
Gets the creatorIdof this package.- Returns:
- the creator
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getReleaseDate
DateTime getReleaseDate()Gets the release date of this package.- Returns:
- the timestamp of this package
- Compliance:
mandatory- This method must be implemented.
-
getDependencyIds
IdList getDependencyIds()Gets the packageIdson which this package directly depends.- Returns:
- the package dependency
Ids - Compliance:
mandatory- This method must be implemented.
-
getDependencies
Gets the packages on which this package directly depends.- Returns:
- the package dependencies
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getURL
String getURL()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.- Returns:
- the url for this package
- Compliance:
mandatory- This method must be implemented.
-
getInstallationContentIds
Gets the installation contentIds.- Returns:
- the installation content
Ids - Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getInstallationContents
Gets the installation contents.- Returns:
- the installation contents
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getPackageRecord
Gets the package record corresponding to the givenPackagerecordType.This method is used to retrieve an object implementing the requested record. ThepackageRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(packageRecordType)istrue.- Parameters:
packageRecordType- the type of the record to retrieve- Returns:
- the package record
- Throws:
NullArgumentException-packageRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(packageRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-