public interface AuctionLookupSession extends OsidSession
This session provides methods for retrieving Auction
objects. The Auction represents a fixed connection between
two Items.
This session defines views that offer differing behaviors when retrieving multiple objects.
Auctions with the AuctionAdminSession.
Generally, the comparative view should be used for most applications
as it permits operation even if there is data that cannot be accessed. The
methods useFederatedAuctionHouseView() and
useIsolatedAuctionHouseView() behave as a radio group and one
should be selected before invoking any lookup methods.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupAuctions()
Tests if this user can perform
Auction lookups. |
Auction |
getAuction(Id auctionId)
Gets the
Auction specified by its Id. |
AuctionHouse |
getAuctionHouse()
Gets the
AuctionHouse associated with this session. |
Id |
getAuctionHouseId()
Gets the
AuctionHouse Id associated with
this session. |
AuctionList |
getAuctions()
Gets all
Auctions. |
AuctionList |
getAuctionsByGenusType(Type auctionGenusType)
Gets an
AuctionList corresponding to the given auction
genus Type which does not include auctions of genus
types derived from the specified Type. |
AuctionList |
getAuctionsByIds(IdList auctionIds)
Gets an
AuctionList corresponding to the given
IdList. |
AuctionList |
getAuctionsByItem(Id itemId)
Gets a list of auctions for an item.
|
AuctionList |
getAuctionsByItemGenusType(Type itemGenusType)
Gets a list of auctions for an item genus type.
|
AuctionList |
getAuctionsByItemGenusTypeOnDate(Type itemGenusType,
DateTime from,
DateTime to)
Gets an
AuctionList for an item genus type and
effective during the entire given date range inclusive but not
confined to the date range. |
AuctionList |
getAuctionsByParentGenusType(Type auctionGenusType)
Gets an
AuctionList corresponding to the given auction
genus Type and include any additional auctions with
genus types derived from the specified Type. |
AuctionList |
getAuctionsByProvider(Id resourceId)
Gets an
AuctionList from the given provider. |
AuctionList |
getAuctionsByRecordType(Type auctionRecordType)
Gets an
AuctionList containing the given auction record
Type. |
AuctionList |
getAuctionsOnDate(DateTime from,
DateTime to)
Gets an
AuctionList effective during the entire given
date range inclusive but not confined to the date range. |
void |
useActiveAuctionView()
Only active auctions are returned by methods in this session.
|
void |
useAnyStatusAuctionView()
Active and inactive auctions are returned by methods in this session.
|
void |
useComparativeAuctionView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useFederatedAuctionHouseView()
Federates the view for methods in this session.
|
void |
useIsolatedAuctionHouseView()
Isolates the view for methods in this session.
|
void |
usePlenaryAuctionView()
A complete view of the
Auction returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getAuctionHouseId()
AuctionHouse Id associated with
this session. AuctionHouse Id associated with this
sessionmandatory - This method must be implemented. AuctionHouse getAuctionHouse() throws OperationFailedException, PermissionDeniedException
AuctionHouse associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canLookupAuctions()
Auction lookups. 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 lookup operations to
unauthorized users. false if lookup methods are not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeAuctionView()
mandatory - This method is must be implemented. void usePlenaryAuctionView()
Auction returns is desired.
Methods will return what is requested or result in an error. This view
is used when greater precision is desired at the expense of
interoperability.mandatory - This method is must be implemented. void useFederatedAuctionHouseView()
mandatory - This method is must be implemented. void useIsolatedAuctionHouseView()
mandatory - This method is must be implemented. void useActiveAuctionView()
mandatory - This method is must be implemented. void useAnyStatusAuctionView()
mandatory - This method is must be implemented. Auction getAuction(Id auctionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Auction specified by its Id.
In plenary mode, the exact Id is found
or a NOT_FOUND results. Otherwise, the returned
Auction may have a different Id than requested,
such as the case where a duplicate Id was assigned to
an Auction and retained for compatibility.
In active mode, auctions are returned that are currently active. In
any status mode, active and inactive auctions are returned.auctionId - Id of the Auction NotFoundException - auctionId not foundNullArgumentException - auctionId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method is must be implemented. AuctionList getAuctionsByIds(IdList auctionIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
AuctionList corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
auctions specified in the Id list, in the order of the
list, including duplicates, or an error results if an Id
in the supplied list is not found or inaccessible. Otherwise,
inaccessible Auctions may be omitted from the list and
may present the elements in any order including returning a unique
set.
In active mode, auctions are returned that are currently active. In
any status mode, active and inactive auctions are returned.auctionIds - the list of Ids to retrieve Auction listNotFoundException - an Id was not foundNullArgumentException - auctionIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. AuctionList getAuctionsByGenusType(Type auctionGenusType) throws OperationFailedException, PermissionDeniedException
AuctionList corresponding to the given auction
genus Type which does not include auctions of genus
types derived from the specified Type.
In plenary mode, the returned list contains all known
auctions or an error results. Otherwise, the returned list may contain
only those auctions that are accessible through this session.
In active mode, auctions are returned that are currently active. In
any status mode, active and inactive auctions are returned.auctionGenusType - an auction genus type Auction listNullArgumentException - auctionGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. AuctionList getAuctionsByParentGenusType(Type auctionGenusType) throws OperationFailedException, PermissionDeniedException
AuctionList corresponding to the given auction
genus Type and include any additional auctions with
genus types derived from the specified Type.
In plenary mode, the returned list contains all known
auctions or an error results. Otherwise, the returned list may contain
only those auctions that are accessible through this session.
In active mode, auctions are returned that are currently active. In
any status mode, active and inactive auctions are returned.auctionGenusType - an auction genus type Auction listNullArgumentException - auctionGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. AuctionList getAuctionsByRecordType(Type auctionRecordType) throws OperationFailedException, PermissionDeniedException
AuctionList containing the given auction record
Type.
In plenary mode, the returned list contains all known
auctions or an error results. Otherwise, the returned list may contain
only those auctions that are accessible through this session.
In active mode, auctions are returned that are currently active. In
any status mode, active and inactive auctions are returned.auctionRecordType - an auction record type Auction listNullArgumentException - auctionRecordType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. AuctionList getAuctionsByProvider(Id resourceId) throws OperationFailedException, PermissionDeniedException
AuctionList from the given provider.
In plenary mode, the returned list contains all known auctions or an
error results. Otherwise, the returned list may contain only those
auctions that are accessible through this session.
In active mode, auctions are returned that are currently active. In
any status mode, active and inactive auctions are returned.resourceId - a resource Id Auction listNullArgumentException - resourceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. AuctionList getAuctionsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
AuctionList effective during the entire given
date range inclusive but not confined to the date range.
In plenary mode, the returned list contains all known auctions or an
error results. Otherwise, the returned list may contain only those
auctions that are accessible through this session.
In active mode, auctions are returned that are currently active. In
any status mode, active and inactive auctions are returned.from - start of date rangeto - end of date range Auction listInvalidArgumentException - from is
greater than to NullArgumentException - from or
to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. AuctionList getAuctionsByItem(Id itemId) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
auctions or an error results. Otherwise, the returned list may contain
only those auctions that are accessible through this session.
In active mode, auctions are returned that are currently active. In
any status mode, active and inactive auctions are returned.itemId - a resource Id Auction listNullArgumentException - itemId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. AuctionList getAuctionsByItemGenusType(Type itemGenusType) throws OperationFailedException, PermissionDeniedException
itemGenusType - an item genus type Auction listNullArgumentException - itemGenusType is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. AuctionList getAuctionsByItemGenusTypeOnDate(Type itemGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
AuctionList for an item genus type and
effective during the entire given date range inclusive but not
confined to the date range.
In plenary mode, the returned list contains all known auctions or an
error results. Otherwise, the returned list may contain only those
auctions that are accessible through this session.
In active mode, auctions are returned that are currently active. In
any status mode, active and inactive auctions are returned.itemGenusType - an item genus typefrom - start of date rangeto - end of date range Auction listInvalidArgumentException - from is
greater than to NullArgumentException - itemGenusType, from,
or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. AuctionList getAuctions() throws OperationFailedException, PermissionDeniedException
Auctions.
In plenary mode, the returned list contains all known
auctions or an error results. Otherwise, the returned list may contain
only those auctions that are accessible through this session.
In active mode, auctions are returned that are currently active. In
any status mode, active and inactive auctions are returned. Auctions OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.