public interface ProductQuerySession extends OsidSession
This session provides methods for searching Product
objects. The search query is constructed using the ProductQuery.
The product record Type
also specifies the record
for the product query.
Products may have a query record indicated by their respective record
types. The query record is accessed via the ProductQuery.
The returns in this session may not be cast directly to these interfaces.
Modifier and Type | Method and Description |
---|---|
boolean |
canSearchProducts()
Tests if this user can perform
Product searches. |
ProductQuery |
getProductQuery()
Gets a product query.
|
ProductList |
getProductsByQuery(ProductQuery productQuery)
Gets a list of
Products matching the given product
query. |
Store |
getStore()
Gets the
Store associated with this session. |
Id |
getStoreId()
Gets the
Store Id associated with this
session. |
void |
useFederatedStoreView()
Federates the view for methods in this session.
|
void |
useIsolatedStoreView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getStoreId()
Store
Id
associated with this
session. Store Id
associated with this sessionmandatory
- This method must be implemented. Store getStore() throws OperationFailedException, PermissionDeniedException
Store
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSearchProducts()
Product
searches. A
return of true does not guarantee successful authorization. A return
of false indicates that it is known all 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 search operations to
unauthorized users. false
if search methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useFederatedStoreView()
mandatory
- This method is must be implemented. void useIsolatedStoreView()
mandatory
- This method is must be implemented. ProductQuery getProductQuery()
mandatory
- This method must be implemented. ProductList getProductsByQuery(ProductQuery productQuery) throws OperationFailedException, PermissionDeniedException
Products
matching the given product
query.productQuery
- the product query ProductList
NullArgumentException
- productQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- productQuery
is
not of this servicemandatory
- This method must be implemented.