public interface AuctionConstrainerAuctionHouseAssignmentSession extends OsidSession
This session provides methods to re-assign AuctionConstrainer
to AuctionHouse mappings. An
AuctionConstrainer may appear in multiple AuctionHouse
objects and removing the last reference to an
AuctionConstrainer is the equivalent of deleting it. Each
AuctionHouse may have its own authorizations governing who is
allowed to operate on it.
Adding a reference of an AuctionConstrainer to another
AuctionHouse is not a copy operation (eg: does not change
its Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignAuctionConstrainerToAuctionHouse(Id auctionConstrainerId,
Id auctionHouseId)
Adds an existing
AuctionConstrainer to an
AuctionHouse. |
boolean |
canAssignAuctionConstrainers()
Tests if this user can alter auction constrainer/auction house
mappings.
|
boolean |
canAssignAuctionConstrainersToAuctionHouse(Id auctionHouseId)
Tests if this user can alter auction constrainer/auction house
mappings.
|
IdList |
getAssignableAuctionHouseIds(Id auctionHouseId)
Gets a list of auction houses including and under the given auction
house node in which any auction constrainer can be assigned.
|
IdList |
getAssignableAuctionHouseIdsForAuctionConstrainer(Id auctionHouseId,
Id auctionConstrainerId)
Gets a list of auction houses including and under the given auction
house node in which a specific auction constrainer can be assigned.
|
void |
unassignAuctionConstrainerFromAuctionHouse(Id auctionConstrainerId,
Id auctionHouseId)
Removes an
AuctionConstrainer from an
AuctionHouse. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignAuctionConstrainers()
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users. false if mapping is not authorized, true
otherwisemandatory - This method must be implemented. boolean canAssignAuctionConstrainersToAuctionHouse(Id auctionHouseId)
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users.auctionHouseId - the Id of the
AuctionHouse false if mapping is not authorized, true
otherwiseNullArgumentException - auctionHouseId
is null mandatory - This method must be implemented. IdList getAssignableAuctionHouseIds(Id auctionHouseId) throws OperationFailedException
auctionHouseId - the Id of the
AuctionHouse Ids NullArgumentException - auctionHouseId
is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableAuctionHouseIdsForAuctionConstrainer(Id auctionHouseId, Id auctionConstrainerId) throws OperationFailedException
auctionHouseId - the Id of the
AuctionHouse auctionConstrainerId - the Id of the
AuctionConstrainer Ids NullArgumentException - auctionHouseId
or auctionConstrainerId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignAuctionConstrainerToAuctionHouse(Id auctionConstrainerId, Id auctionHouseId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
AuctionConstrainer to an
AuctionHouse. auctionConstrainerId - the Id of the
AuctionConstrainer auctionHouseId - the Id of the
AuctionHouse AlreadyExistsException - auctionConstrainerId
already assigned to auctionHouseId NotFoundException - auctionConstrainerId
or auctionHouseId not foundNullArgumentException - auctionConstrainerId
or auctionHouseId is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignAuctionConstrainerFromAuctionHouse(Id auctionConstrainerId, Id auctionHouseId) throws NotFoundException, OperationFailedException, PermissionDeniedException
AuctionConstrainer from an
AuctionHouse. auctionConstrainerId - the Id of the
AuctionConstrainer auctionHouseId - the Id of the
AuctionHouse NotFoundException - auctionConstrainerId
or auctionHouseId not found or
auctionConstrainerId already assigned to
auctionHouseId NullArgumentException - auctionConstrainerId
or auctionHouseId is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.