Interface BrokerSmartDistributorSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A BrokerQuery can be retrieved from this session and
mapped to this Distributor to create a virtual collection of
Brokers. The brokers may be sequenced using the
BrokerSearchOrder from this session.
This Distributor has a default query that matches any broker
and a default search order that specifies no sequencing. The queries may
be examined using a BrokerQueryInspector. The query may be
modified by converting the inspector back to a BrokerQuery.
Like all OsidSessions, BrokerSmartDistributorSessions
are dedicated to single processing threads and a single authenticated
user.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyBrokerQuery(BrokerQuery brokerQuery) Applies a broker query to this distributor.voidapplyBrokerSequencing(BrokerSearchOrder brokerSearchOrder) Applies a broker search order to this distributor.booleanTests if this user can manage smart distributors.Gets a broker query.getBrokerQueryFromInspector(BrokerQueryInspector brokerQueryInspector) Gets a broker query from an inspector.Gets a broker search order.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.Gets a broker query inspector for this distributor.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatTypes, getLocales, isAuthenticated, startTransaction, supportsTransactions
-
Method Details
-
getDistributorId
Id getDistributorId()Gets theDistributorIdassociated with this session.- Returns:
- the
Distributor Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getDistributor
Gets theDistributorassociated with this session.- Returns:
- the distributor
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSmartDistributors
boolean canManageSmartDistributors()Tests if this user can manage smart distributors. 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.- Returns:
falseif smart distributor management is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getBrokerQuery
BrokerQuery getBrokerQuery()Gets a broker query.- Returns:
- the broker query
- Compliance:
mandatory- This method must be implemented.
-
getBrokerSearchOrder
BrokerSearchOrder getBrokerSearchOrder()Gets a broker search order.- Returns:
- the broker search order
- Compliance:
mandatory- This method must be implemented.
-
applyBrokerQuery
void applyBrokerQuery(BrokerQuery brokerQuery) throws OperationFailedException, PermissionDeniedException Applies a broker query to this distributor.- Parameters:
brokerQuery- the broker query- Throws:
NullArgumentException-brokerQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-brokerQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectBrokerQuery
BrokerQueryInspector inspectBrokerQuery() throws OperationFailedException, PermissionDeniedExceptionGets a broker query inspector for this distributor.- Returns:
- the broker query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyBrokerSequencing
void applyBrokerSequencing(BrokerSearchOrder brokerSearchOrder) throws OperationFailedException, PermissionDeniedException Applies a broker search order to this distributor.- Parameters:
brokerSearchOrder- the broker search order- Throws:
NullArgumentException-brokerSearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-brokerSearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getBrokerQueryFromInspector
Gets a broker query from an inspector.- Parameters:
brokerQueryInspector- a broker query inspector- Returns:
- the broker query
- Throws:
NullArgumentException-brokerQueryInspectorisnullUnsupportedException-brokerQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-