org.silverpeas.node.web
Class SharedNodeResource

java.lang.Object
  extended by com.silverpeas.web.RESTWebService
      extended by org.silverpeas.node.web.AbstractNodeResource
          extended by org.silverpeas.node.web.SharedNodeResource

@Service
@RequestScoped
public class SharedNodeResource
extends AbstractNodeResource

A REST Web resource providing access to a node through sharing mode.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.silverpeas.web.RESTWebService
RESTWebService.WebProcess<RETURN_VALUE>, RESTWebService.WebTreatment<RETURN_VALUE>
 
Field Summary
 
Fields inherited from class org.silverpeas.node.web.AbstractNodeResource
componentId
 
Fields inherited from class com.silverpeas.web.RESTWebService
RESPONSE_HEADER_ARRAYSIZE, REST_WEB_SERVICES_URI_BASE
 
Constructor Summary
SharedNodeResource()
           
 
Method Summary
 NodeEntity[] getChildren(String path)
          Get all children of any node of the application.
 NodeEntity getNode(String path)
          Get any node of the application and its children.
 NodeEntity getRoot()
          Get the root of the application and its children.
protected  boolean isNodeReadable(NodeDetail node)
           
 
Methods inherited from class org.silverpeas.node.web.AbstractNodeResource
getComponentId
 
Methods inherited from class com.silverpeas.web.RESTWebService
getBundle, getBundleLocation, getGreaterUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getOrganisationController, getUriInfo, getUserDetail, getUserPreferences, getUserRoles, process, validateUserAuthentication, validateUserAuthorization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedNodeResource

public SharedNodeResource()
Method Detail

getRoot

public NodeEntity getRoot()
Description copied from class: AbstractNodeResource
Get the root of the application and its children. As this service works only in non authenticated mode for the moment, children do not contain special nodes.

Overrides:
getRoot in class AbstractNodeResource
Returns:
the application root and its children

getNode

public NodeEntity getNode(String path)
Description copied from class: AbstractNodeResource
Get any node of the application and its children.

Overrides:
getNode in class AbstractNodeResource
Returns:
NodeEntity representing asking node

getChildren

public NodeEntity[] getChildren(String path)
Get all children of any node of the application.

Overrides:
getChildren in class AbstractNodeResource
Returns:
an array of NodeEntity representing children

isNodeReadable

protected boolean isNodeReadable(NodeDetail node)
Specified by:
isNodeReadable in class AbstractNodeResource


Copyright © 2016 Silverpeas. All Rights Reserved.