public interface StoreHierarchyDesignSession extends OsidSession
This session manages a hierarchy of stores. Stores may be organized
into a hierarchy for organizing or federating. A parent Store
includes all of the orders of its children such that a single root
node contains all of the orders of the federation.
Modifier and Type | Method and Description |
---|---|
void |
addChildStore(Id storeId,
Id childId)
Adds a child to a store.
|
void |
addRootStore(Id storeId)
Adds a root store.
|
boolean |
canModifyStoreHierarchy()
Tests if this user can change the hierarchy.
|
Hierarchy |
getStoreHierarchy()
Gets the hierarchy associated with this session.
|
Id |
getStoreHierarchyId()
Gets the hierarchy
Id associated with this session. |
void |
removeChildStore(Id storeId,
Id childId)
Removes a child from a store.
|
void |
removeChildStores(Id storeId)
Removes all children from a store.
|
void |
removeRootStore(Id storeId)
Removes a root store.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getStoreHierarchyId()
Id
associated with this session. Id
associated with this sessionmandatory
- This method must be implemented. Hierarchy getStoreHierarchy() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canModifyStoreHierarchy()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer these operations to an
unauthorized user. false
if changing this hierarchy is not
authorized, true
otherwisemandatory
- This method must be implemented. void addRootStore(Id storeId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
storeId
- the Id
of a storeAlreadyExistsException
- storeId
is
already in hierarchyNotFoundException
- storeId
is not foundNullArgumentException
- storeId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeRootStore(Id storeId) throws NotFoundException, OperationFailedException, PermissionDeniedException
storeId
- the Id
of a storeNotFoundException
- storeId
is not a
rootNullArgumentException
- storeId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void addChildStore(Id storeId, Id childId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
storeId
- the Id
of a storechildId
- the Id
of the new childAlreadyExistsException
- storeId
is
already a parent of childId
NotFoundException
- storeId
or
childId
not foundNullArgumentException
- storeId
or
childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildStore(Id storeId, Id childId) throws NotFoundException, OperationFailedException, PermissionDeniedException
storeId
- the Id
of a storechildId
- the Id
of the new childNotFoundException
- storeId
not a parent
of childId
NullArgumentException
- storeId
or
childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildStores(Id storeId) throws NotFoundException, OperationFailedException, PermissionDeniedException
storeId
- the Id
of a storeNotFoundException
- storeId
not foundNullArgumentException
- storeId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.