org.silverpeas.publication.web
Class SharedPublicationResource

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

@Service
@RequestScoped
public class SharedPublicationResource
extends AbstractPublicationResource

A REST Web resource providing access to publications 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.publication.web.AbstractPublicationResource
componentId
 
Fields inherited from class com.silverpeas.web.RESTWebService
RESPONSE_HEADER_ARRAYSIZE, REST_WEB_SERVICES_URI_BASE
 
Constructor Summary
SharedPublicationResource()
           
 
Method Summary
 PublicationEntity getPublication()
           
 List<PublicationEntity> getPublications(String nodeId, boolean withAttachments)
          Gets the nodes that are children of a parent node.
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

SharedPublicationResource

public SharedPublicationResource()
Method Detail

getPublication

public PublicationEntity getPublication()

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


Copyright © 2016 Silverpeas. All Rights Reserved.