|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Structure helper. Provides methods to manage and navigate the hierarchy of nodes in a namespace.
Method Summary | |
void |
create(SlideToken token,
ObjectNode object,
java.lang.String strUri)
Creates a new node in the namespace. |
void |
createLink(SlideToken token,
LinkNode link,
java.lang.String linkUri,
ObjectNode linkedObject)
Creates a link to another node in the namespace. |
java.util.Enumeration |
getChildren(SlideToken token,
ObjectNode object)
Returns the children of a node. |
ObjectNode |
getParent(SlideToken token,
ObjectNode object)
Returns the parent of a node. |
void |
remove(SlideToken token,
ObjectNode object)
Removes a node from the namespace. |
ObjectNode |
retrieve(SlideToken token,
java.lang.String strUri)
Retrieves a node by URI, following any links. |
ObjectNode |
retrieve(SlideToken token,
java.lang.String strUri,
boolean translateLastUriElement)
Retrieves a node by URI. |
void |
store(SlideToken token,
ObjectNode object)
Stores/updates an object. |
Method Detail |
public java.util.Enumeration getChildren(SlideToken token, ObjectNode object) throws ServiceAccessException, ObjectNotFoundException, LinkedObjectNotFoundException
token
- the slide tokenobject
- the nodeServiceAccessException
- low level service access exceptionObjectNotFoundException
- one of the children specified
by the object was not foundLinkedObjectNotFoundException
- cannot happenObjectNode.enumerateChildren()
public ObjectNode getParent(SlideToken token, ObjectNode object) throws ServiceAccessException, ObjectNotFoundException, LinkedObjectNotFoundException, AccessDeniedException
token
- the slide tokenobject
- the nodenull
if the object specified
is the root node of the namespaceServiceAccessException
- low level service access exceptionObjectNotFoundException
- the parent object specified
by the object was not foundLinkedObjectNotFoundException
- cannot happen (a link
cannot have children)AccessDeniedException
- credentials token does not
have permission to perform the actionObjectNode.enumerateChildren()
public ObjectNode retrieve(SlideToken token, java.lang.String strUri) throws ServiceAccessException, ObjectNotFoundException, LinkedObjectNotFoundException, AccessDeniedException
token
- the slide tokenstrUri
- the URI of the object to retrieveServiceAccessException
- low level service access exceptionObjectNotFoundException
- if no node exists at the URILinkedObjectNotFoundException
- A link object encountered
during URI resolution doesn't have a valid targetAccessDeniedException
- credentials token does not have
permission to perform the actionpublic ObjectNode retrieve(SlideToken token, java.lang.String strUri, boolean translateLastUriElement) throws ServiceAccessException, ObjectNotFoundException, LinkedObjectNotFoundException, AccessDeniedException
token
- the slide tokenstrUri
- the URI of the object to retrievetranslateLastUriElement
- if set to true and the URI is
associated with a link, this method will return the target of
the link, otherwise the link itself is returnedtranslateLastUriElement
is trueServiceAccessException
- low level service access exceptionObjectNotFoundException
- if no node exists at the URILinkedObjectNotFoundException
- A link object encountered
during URI resolution doesn't have a valid targetAccessDeniedException
- credentials token does not have
permission to perform the actionpublic void create(SlideToken token, ObjectNode object, java.lang.String strUri) throws ServiceAccessException, ObjectAlreadyExistsException, ObjectNotFoundException, LinkedObjectNotFoundException, AccessDeniedException
token
- the slide tokenobject
- the object that should be createdstrUri
- location in the namespace where we the object should be
createdServiceAccessException
- low level service access exceptionObjectAlreadyExistException
- an object already exists
at the specified URIObjectNotFoundException
- Update of the parent object
failed because the parent object does no longer exist.
Should not happen, and indicates a critical error if it doesLinkedObjectNotFoundException
- retrieval of a link target
failed during URI resolutionAccessDeniedException
- credentials token does not have
permission to perform the actionpublic void createLink(SlideToken token, LinkNode link, java.lang.String linkUri, ObjectNode linkedObject) throws ServiceAccessException, ObjectAlreadyExistsException, ObjectNotFoundException, LinkedObjectNotFoundException, AccessDeniedException
token
- the slide tokenlink
- the link object that should be createdlinkUri
- location in the namespace where the link object should
be createdlinkedObject
- target object of the linkServiceAccessException
- Low level service access exceptionObjectAlreadyExistException
- An object already exist
at the specified URIObjectNotFoundException
- Update of the parent object
failed because the parent object does no longer exist.
Should not happen, and indicate a critical error if it doesLinkedObjectNotFoundException
- Retrieval of a link target
failed during Uri resolutionAccessDeniedException
- credentials token does not have
permission to perform the actionpublic void store(SlideToken token, ObjectNode object) throws ServiceAccessException, ObjectNotFoundException, AccessDeniedException, LinkedObjectNotFoundException
token
- the slide tokenobject
- the object to updateServiceAccessException
- low level service access exceptionObjectNotFoundException
- the update failed because one
object was not found during URI resolutionLinkedObjectNotFoundException
- retrieval of a link target
failed during URI resolutionAccessDeniedException
- credentials token does not have
permission to perform the actionpublic void remove(SlideToken token, ObjectNode object) throws ServiceAccessException, ObjectNotFoundException, ObjectHasChildrenException, AccessDeniedException, LinkedObjectNotFoundException, ObjectLockedException
token
- the slide tokenobject
- the node to removeServiceAccessException
- low level service access exceptionObjectNotFoundException
- the update failed because an
object was not found during URI resolutionObjectHasChildrenException
- removal failed because object
has childrenLinkedObjectNotFoundException
- retrieval of a link target
failed during URI resolutionAccessDeniedException
- credentials token does not have
permission to perform the action
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |