Interface Installation
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
A Installation represents a Package installed on a
Site .
-
Method Summary
Modifier and TypeMethodDescriptiongetAgent()Gets the agent who installed this package.Gets theIdof the agent who installed this package.getDepot()Gets the depot from which the package was installed.Gets theIdof depot from which the package was installed.getInstallationRecord(Type installationRecordType) Gets the installation record corresponding to the givenInstallationrecordType.Gets the date the package was installed.Gets the date the installation was last checked for updates.Gets the package.Gets the packageIdof this installation.getSite()Gets theSitein which this installation is installed.Gets theSite Idin which this installation is installed.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.
-
Method Details
-
getSiteId
Id getSiteId()Gets theSite Idin which this installation is installed.- Returns:
- the site
Id - Compliance:
mandatory- This method must be implemented.
-
getSite
Gets theSitein which this installation is installed.- Returns:
- the package site
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getPackageId
Id getPackageId()Gets the packageIdof this installation.- Returns:
- the package
Id - Compliance:
mandatory- This method must be implemented.
-
getPackage
Gets the package.- Returns:
- the package
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getDepotId
Id getDepotId()Gets theIdof depot from which the package was installed.- Returns:
- the depot
Id - Compliance:
mandatory- This method must be implemented.
-
getDepot
Gets the depot from which the package was installed.- Returns:
- the depot
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getInstallDate
DateTime getInstallDate()Gets the date the package was installed.- Returns:
- the installation date
- Compliance:
mandatory- This method must be implemented.
-
getAgentId
Id getAgentId()Gets theIdof the agent who installed this package.- Returns:
- the agent
Id - Compliance:
mandatory- This method must be implemented.
-
getAgent
Gets the agent who installed this package.- Returns:
- the agent
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getLastCheckDate
DateTime getLastCheckDate()Gets the date the installation was last checked for updates.- Returns:
- the last check date
- Compliance:
mandatory- This method must be implemented.
-
getInstallationRecord
InstallationRecord getInstallationRecord(Type installationRecordType) throws OperationFailedException Gets the installation record corresponding to the givenInstallationrecordType. This method is used to retrieve an object implementing the requested record. TheinstallationRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(installationRecordType)istrue.- Parameters:
installationRecordType- the type of the record to retrieve- Returns:
- the installation record
- Throws:
NullArgumentException-installationRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(installationRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-