org.silverpeas.publication.web
Class PublicationResource

java.lang.Object
  extended by com.silverpeas.web.RESTWebService
      extended by org.silverpeas.publication.web.AbstractPublicationResource
          extended by org.silverpeas.publication.web.PublicationResource

@Service
@RequestScoped
@Authorized
public class PublicationResource
extends AbstractPublicationResource

A REST Web resource providing access to publications through private 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.publication.web.AbstractPublicationResource
componentId
 
Fields inherited from class com.silverpeas.web.RESTWebService
RESPONSE_HEADER_ARRAYSIZE, REST_WEB_SERVICES_URI_BASE
 
Constructor Summary
PublicationResource()
           
 
Method Summary
 List<PublicationEntity> getPublications(String nodeId, boolean withAttachments)
          Gets the nodes that are children of a parent node.
protected  URI identifiedBy(URI uri)
           
protected  boolean isNodeReadable(NodePK nodePK)
           
 
Methods inherited from class org.silverpeas.publication.web.AbstractPublicationResource
getComponentId, getNodeBm, getPublicationBm, getPublicationEntity
 
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

PublicationResource

public PublicationResource()
Method Detail

getPublications

public List<PublicationEntity> getPublications(String nodeId,
                                               boolean withAttachments)
Description copied from class: AbstractPublicationResource
Gets the nodes that are children of a parent node.

Overrides:
getPublications in class AbstractPublicationResource
Parameters:
nodeId - The ID of the parent node.
withAttachments - Indicated whether attachments related to publications are required.
Returns:
An array of the nodes whose parent is the node matching the specified ID.

isNodeReadable

protected boolean isNodeReadable(NodePK nodePK)
Specified by:
isNodeReadable in class AbstractPublicationResource

identifiedBy

protected URI identifiedBy(URI uri)


Copyright © 2016 Silverpeas. All Rights Reserved.