| Interface | osid.installation.InstallationPackageDepotAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session provides methods to re-assign
Moving or adding a reference of a
| ||
| Method | canAssignInstallationPackages | ||
| Description |
Tests if this user can alter package/depot mappings. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canAssignInstallationPackagesToDepot | ||
| Description |
Tests if this user can alter package/depot mappings. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Parameters | osid.id.Id | depotId | the Id of the Depot |
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Errors | NULL_ARGUMENT | depotId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableDepotIds | ||
| Description |
Gets a list of depot including and under the given depot node in which any package can be assigned. | ||
| Parameters | osid.id.Id | depotId | the Id of the Depot |
| Return | osid.id.IdList | list of assignable depot Ids | |
| Errors | NULL_ARGUMENT | depotId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableDepotIdsForInstallationPackage | ||
| Description |
Gets a list of depot including and under the given depot node in which a specific package can be assigned. | ||
| Parameters | osid.id.Id | depotId | the Id of the Depot |
osid.id.Id | installationPackageId | the Id of the InstallationPackage | |
| Return | osid.id.IdList | list of assignable depot Ids | |
| Errors | NULL_ARGUMENT | depotId or installationPackageId is
null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignInstallationPackageToDepot | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | installationPackageId | the Id of the InstallationPackage |
osid.id.Id | depotId | the Id of the Depot | |
| Errors | ALREADY_EXISTS | installationPackageId is already assigned to
depotId | |
| NOT_FOUND | installationPackageId or depotId not found | ||
| NULL_ARGUMENT | installationPackageId or depotId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignInstallationPackageFromDepot | ||
| Description |
Removes a | ||
| Parameters | osid.id.Id | installationPackageId | the Id of the InstallationPackage |
osid.id.Id | depotId | the Id of the Depot | |
| Errors | NOT_FOUND | installationPackageId or depotId not found or
installationPackageId not assigned to depotId | |
| NULL_ARGUMENT | installationPackageId or depotId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | reassignInstallationPackageToDepot | ||
| Description |
Moves a | ||
| Parameters | osid.id.Id | installationPackageId | the Id of the InstallationPackage |
osid.id.Id | fromDepotId | the Id of the current Depot | |
osid.id.Id | toDepotId | the Id of the destination Depot | |
| Errors | ALREADY_EXISTS | installationPackageId already assigned to
toDepotId | |
| NOT_FOUND | installationPackageId, fromDepotId, or toDepotId
not found or installationPackageId not mapped to
fromDepotId | ||
| NULL_ARGUMENT | installationPackageId, fromDepotId, or toDepotId
is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |