org.silverpeas.node.web
Class ListNodeResource
java.lang.Object
com.silverpeas.web.RESTWebService
org.silverpeas.node.web.ListNodeResource
@Service
@RequestScoped
@Authorized
public class ListNodeResource
- extends RESTWebService
A REST Web resource representing a list of node. It is a web service that provides an access to a
node referenced by its URL.
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 |
ListNodeResource
public ListNodeResource()
getComponentId
public String getComponentId()
- Description copied from class:
RESTWebService
- Gets the identifier of the component instance to which the requested resource belongs to.
- Specified by:
getComponentId
in class RESTWebService
- Returns:
- the identifier of the Silverpeas component instance.
updateListNode
public NodeEntity[] updateListNode(NodeEntity[] newListNode)
- Updates order of the list of Node from the JSON representation. If the user isn't authentified,
a 401 HTTP code is returned. If the user isn't authorized to save the node, a 403 is returned.
If a problem occurs when processing the request, a 503 HTTP code is returned.
- Parameters:
tab
- of node to update order
- Returns:
- the new list of node after update
Copyright © 2016 Silverpeas. All Rights Reserved.