Interface | osid.bidding.AuctionHouseHierarchySession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods for traversing a hierarchy of
A user may not be authorized to traverse the entire
hierarchy. Parts of the hierarchy may be made invisible
through omission from the returns of This session defines views that offer differing behaviors when retrieving multiple objects.
| ||
Method | getAuctionHouseHierarchyId | ||
Description |
Gets the hierarchy | ||
Return | osid.id.Id | the hierarchy Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getAuctionHouseHierarchy | ||
Description |
Gets the hierarchy associated with this session. | ||
Return | osid.hierarchy.Hierarchy | the hierarchy associated with this session | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canAccessAuctionHouseHierarchy | ||
Description |
Tests if this user can perform hierarchy queries. 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 | ||
Return | boolean | false if hierarchy traversal methods are not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeAuctionHouseView | ||
Description |
The returns from the auction house methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryAuctionHouseView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRootAuctionHouseIds | ||
Description |
Gets the root auction house | ||
Return | osid.id.IdList | the root auction house Ids | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRootAuctionHouses | ||
Description |
Gets the root auction house in the auction house
hierarchy. A item with no parents is an orphan. While all
auction house | ||
Return | osid.bidding.AuctionHouseList | the root auction houses | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | hasParentAuctionHouses | ||
Description |
Tests if the | ||
Parameters | osid.id.Id | auctionHouseId | an auction house Id |
Return | boolean | true if the auction house has parents, f alse
otherwise | |
Errors | NOT_FOUND | auctionHouseId is not found | |
NULL_ARGUMENT | auctionHouseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isParentOfAuctionHouse | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | auctionHouseId | the Id of an auction house | |
Return | boolean | true if this id is a parent of
auctionHouseId, f alse otherwise | |
Errors | NOT_FOUND | auctionHouseId is not found | |
NULL_ARGUMENT | id or auctionHouseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getParentAuctionHouseIds | ||
Description |
Gets the parent | ||
Parameters | osid.id.Id | auctionHouseId | an auction house Id |
Return | osid.id.IdList | the parent Ids of the auction house | |
Errors | NOT_FOUND | auctionHouseId is not found | |
NULL_ARGUMENT | auctionHouseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getParentAuctionHouses | ||
Description |
Gets the parents of the given auction house. | ||
Parameters | osid.id.Id | auctionHouseId | the Id to query |
Return | osid.bidding.AuctionHouseList | the parents of the auction house | |
Errors | NOT_FOUND | auctionHouseId not found | |
NULL_ARGUMENT | auctionHouseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isAncestorOfAuctionHouse | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | auctionHouseId | the Id of an auction house | |
Return | boolean | tru e if this id is an ancestor of
auctionHouseId, false otherwise | |
Errors | NOT_FOUND | auctionHouseId not found | |
NULL_ARGUMENT | auctionHouseId or id is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | hasChildAuctionHouses | ||
Description |
Tests if an auction house has any children. | ||
Parameters | osid.id.Id | auctionHouseId | an auction house Id |
Return | boolean | true if the auctionHouseId has children,
false otherwise | |
Errors | NOT_FOUND | auctionHouseId not found | |
NULL_ARGUMENT | auctionHouseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isChildOfAuctionHouse | ||
Description |
Tests if an auction house is a direct child of another. | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | auctionHouseId | the Id of an auction house | |
Return | boolean | true if the id is a child of
auctionHouseId, false otherwise | |
Errors | NOT_FOUND | auctionHouseId not found | |
NULL_ARGUMENT | id or auctionHouseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getChildAuctionHouseIds | ||
Description |
Gets the child | ||
Parameters | osid.id.Id | auctionHouseId | the Id to query |
Return | osid.id.IdList | the children of the auction house | |
Errors | NOT_FOUND | auctionHouseId not found | |
NULL_ARGUMENT | auctionHouseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getChildAuctionHouses | ||
Description |
Gets the children of the given auction house. | ||
Parameters | osid.id.Id | auctionHouseId | the Id to query |
Return | osid.bidding.AuctionHouseList | the children of the auction house | |
Errors | NOT_FOUND | auctionHouseId not found | |
NULL_ARGUMENT | auctionHouseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isDescendantOfAuctionHouse | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | auctionHouseId | the Id of an auction house | |
Return | boolean | true if the id is a descendant of the
auctionHouseId, false otherwise | |
Errors | NOT_FOUND | auctionHouseId not found | |
NULL_ARGUMENT | id or auctionHouseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getAuctionHouseNodeIds | ||
Description |
Gets a portion of the hierarchy for the given auction house. | ||
Parameters | osid.id.Id | auctionHouseId | the Id to query |
cardinal | ancestorLevels | the maximum number of ancestor levels to include. A value of 0 returns no parents in the item. | |
cardinal | descendantLevels | the maximum number of descendant levels to include. A value of 0 returns no children in the item. | |
boolean | includeSiblings | true to include the siblings of the given item, false
to omit the siblings | |
Return | osid.hierarchy.Node | an auction house node | |
Errors | NOT_FOUND | auctionHouseId not found | |
NULL_ARGUMENT | auctionHouseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuctionHouseNodes | ||
Description |
Gets a portion of the hierarchy for the given auction house. | ||
Parameters | osid.id.Id | auctionHouseId | the Id to query |
cardinal | ancestorLevels | the maximum number of ancestor levels to include. A value of 0 returns no parents in the item. | |
cardinal | descendantLevels | the maximum number of descendant levels to include. A value of 0 returns no children in the item. | |
boolean | includeSiblings | true to include the siblings of the given item, false
to omit the siblings | |
Return | osid.bidding.AuctionHouseNode | an auction house node | |
Errors | NOT_FOUND | auctionHouseId not found | |
NULL_ARGUMENT | auctionHouseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |