Interface InstallationPackageSmartDepotSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface InstallationPackageSmartDepotSession extends OsidSession

This session manages queries and sequencing to create "smart" dynamic catalogs. A InstallationPackageQuery can be retrieved from this session and mapped to this Depot to create a virtual collection of InstallationPackages. The packages may be sequenced using the InstallationPackageSearchOrder from this session.

This Depot has a default query that matches any package and a default search order that specifies no sequencing. The queries may be examined using a InstallationPackageQueryInspector. The query may be modified by converting the inspector back to a InstallationPackageQuery.

  • Method Details

    • getDepotId

      Id getDepotId()
      Gets the Depot Id associated with this session.
      Returns:
      the Depot Id associated with this session
      Compliance:
      mandatory - This method must be implemented.
    • getDepot

      Gets the Depot associated with this session.
      Returns:
      the Depot associated with this session
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canManageSmartDepot

      boolean canManageSmartDepot()
      Tests if this user can manage smart depot. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.
      Returns:
      false if smart depot management is not authorized, true otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getInstallationPackageQuery

      InstallationPackageQuery getInstallationPackageQuery()
      Gets a package query.
      Returns:
      the package query
      Compliance:
      mandatory - This method must be implemented.
    • getInstallationPackageSearchOrder

      InstallationPackageSearchOrder getInstallationPackageSearchOrder()
      Gets a package search order.
      Returns:
      the package search order
      Compliance:
      mandatory - This method must be implemented.
    • applyInstallationPackageQuery

      void applyInstallationPackageQuery(InstallationPackageQuery installationPackageQuery) throws OperationFailedException, PermissionDeniedException
      Applies a package query to this depot.
      Parameters:
      installationPackageQuery - the package query
      Throws:
      NullArgumentException - installationPackageQuery is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure occurred
      UnsupportedException - installationPackageQuery not of this service
      Compliance:
      mandatory - This method must be implemented.
    • inspectInstallationPackageQuery

      Gets a package query inspector for this depot.
      Returns:
      the package query inspector
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure occurred
      Compliance:
      mandatory - This method must be implemented.
    • applyInstallationPackageSequencing

      void applyInstallationPackageSequencing(InstallationPackageSearchOrder installationPackageSearchOrder) throws OperationFailedException, PermissionDeniedException
      Applies a package search order to this depot.
      Parameters:
      installationPackageSearchOrder - the package search order
      Throws:
      NullArgumentException - installationPackageSearchOrder is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure occurred
      UnsupportedException - installationPackageSearchOrder not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getInstallationPackageQueryFromInspector

      InstallationPackageQuery getInstallationPackageQueryFromInspector(InstallationPackageQueryInspector installationPackageQueryInspector)
      Gets a package query from an inspector.
      Parameters:
      installationPackageQueryInspector - a package query inspector
      Returns:
      the package query
      Throws:
      NullArgumentException - installationPackageQueryInspector is null
      UnsupportedException - installationPackageQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.