|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.slide.structure.StructureImpl
Data helper class.
Constructor Summary | |
StructureImpl(Namespace namespace,
NamespaceConfig namespaceConfig,
Security securityHelper,
Lock lockHelper)
Constructor. |
Method Summary | |
void |
create(SlideToken token,
ObjectNode object,
java.lang.String strUri)
Create an object. |
void |
createLink(SlideToken token,
LinkNode link,
java.lang.String linkUri,
ObjectNode linkedObject)
Create a link. |
java.util.Enumeration |
getChildren(SlideToken token,
ObjectNode object)
Get object's children. |
ObjectNode |
getParent(SlideToken token,
ObjectNode object)
Get object's parent. |
void |
remove(SlideToken token,
ObjectNode object)
Remove an object. |
ObjectNode |
retrieve(SlideToken token,
java.lang.String strUri)
Get an object, following any link. |
ObjectNode |
retrieve(SlideToken token,
java.lang.String strUri,
boolean translateLastUriElement)
Get an object, following any link. |
void |
store(SlideToken token,
ObjectNode object)
Store (ie, update) an object. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public StructureImpl(Namespace namespace, NamespaceConfig namespaceConfig, Security securityHelper, Lock lockHelper)
namespace
- Namespace associated with the helper objectnamespaceConfig
- Configuration of the namespacesecurityHelper
- Associated security helperMethod Detail |
public java.util.Enumeration getChildren(SlideToken token, ObjectNode object) throws ServiceAccessException, ObjectNotFoundException, LinkedObjectNotFoundException
getChildren
in interface Structure
token
- Credentials tokenobject
- Slide objectServiceAccessException
- Low level service access exceptionObjectNotFoundException
- One of the children specified by
the object were not foundLinkedObjectNotFoundException
- Cannot happenpublic ObjectNode getParent(SlideToken token, ObjectNode object) throws ServiceAccessException, ObjectNotFoundException, LinkedObjectNotFoundException, AccessDeniedException
getParent
in interface Structure
token
- Credentials tokenobject
- Slide objectServiceAccessException
- Low level service access exceptionObjectNotFoundException
- The parent object specified by
the object was not foundLinkedObjectNotFoundException
- Cannot happen : a link cannot
have childrenAccessDeniedException
- Credentials token does not have
permission to perform the actionpublic ObjectNode retrieve(SlideToken token, java.lang.String strUri) throws ServiceAccessException, ObjectNotFoundException, LinkedObjectNotFoundException, AccessDeniedException
retrieve
in interface Structure
token
- Credentials tokenstrUri
- Object uriServiceAccessException
- Low level service access exceptionObjectNotFoundException
- The given Uri doesn't have
any matching ObjectNodeLinkedObjectNotFoundException
- 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
retrieve
in interface Structure
token
- Credentials tokenstrUri
- Object uritranslateLastUriElement
- If set to true and if the uri
is associated with a link, the function will return the linked object.
Otherwise, the link object is returnedServiceAccessException
- Low level service access exceptionObjectNotFoundException
- The given Uri doesn't have any
matching ObjectNodeLinkedObjectNotFoundException
- 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
create
in interface Structure
token
- Credentials tokenobject
- Object we want to createuri
- Location in the namespace where we want to create the objectServiceAccessException
- 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 errorLinkedObjectNotFoundException
- 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
createLink
in interface Structure
token
- Credentials tokenlink
- Link object we want to createlinkUri
- Location in the namespace where we want to create
the objectlinkedObject
- Link targetServiceAccessException
- 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 errorLinkedObjectNotFoundException
- 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
store
in interface Structure
token
- Credentials tokenobject
- Object to updateupdatePermissions
- True to update permissionsServiceAccessException
- 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
remove
in interface Structure
token
- Credentials tokenobject
- Slide object to removeServiceAccessException
- Low level service access exceptionObjectNotFoundException
- The update failed because
one 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 |