getFatherId
Synopsis
BItemId getFatherId(SessionId sessionId,
BItemId itemId,
ViewId viewId)
throws BasketServiceFault;
See also: BItemId, SessionId, BasketServiceFault
The getFatherId operation returns the basket item ID of the parent item of the basket item identified by the itemId parameter.
The itemId parameter must identify a basket item that is part of the basket item tree maintained by the basket service for the session identified by the sessionId parameter.
If the itemId parameter references the root node of the basket item tree then the operation returns the null-UUID (§UUID).
If the argument viewId is present and neither an empty string nor the NIL-UUID then it must be the ID of a current basket view, the itemId argument must be the ID of an item of this view, and the returned item IDs will be IDs of items of this view.
A BasketServiceFault is returned if any of the following conditions occurs:
-
The
sessionIdparameter is not a valid string representation of an UUID or does not represent an open session. -
The
itemIdparameter does not represent an UUID. -
The
itemIdparameter does not identify a basket item.