org.silverpeas.kmelia.web
Class KmeliaResource

java.lang.Object
  extended by com.silverpeas.web.RESTWebService
      extended by org.silverpeas.kmelia.web.KmeliaResource

@Service
@RequestScoped
@Authorized
public class KmeliaResource
extends com.silverpeas.web.RESTWebService

A REST Web resource allowing to update data related to a publication.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.silverpeas.web.RESTWebService
com.silverpeas.web.RESTWebService.WebProcess<RETURN_VALUE>, com.silverpeas.web.RESTWebService.WebTreatment<RETURN_VALUE>
 
Field Summary
 
Fields inherited from class com.silverpeas.web.RESTWebService
RESPONSE_HEADER_ARRAYSIZE, REST_WEB_SERVICES_URI_BASE
 
Constructor Summary
KmeliaResource()
           
 
Method Summary
 String getComponentId()
           
 javax.ws.rs.core.Response savePublication(String nodeId, org.silverpeas.publication.web.PublicationEntity publicationEntity)
          Creates a publication corresponding to the given publication entity and whose parent node matches the specified node ID.
 javax.ws.rs.core.Response updatePublication(org.silverpeas.publication.web.PublicationEntity publicationEntity)
          Updates the publication described by the given publication entity.
 
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

KmeliaResource

public KmeliaResource()
Method Detail

getComponentId

public String getComponentId()
Specified by:
getComponentId in class com.silverpeas.web.RESTWebService

savePublication

public javax.ws.rs.core.Response savePublication(String nodeId,
                                                 org.silverpeas.publication.web.PublicationEntity publicationEntity)
Creates a publication corresponding to the given publication entity and whose parent node matches the specified node ID.

Parameters:
nodeId - The ID of the publication's parent node.
publicationEntity - The description of the publication to create.
Returns:

updatePublication

public javax.ws.rs.core.Response updatePublication(org.silverpeas.publication.web.PublicationEntity publicationEntity)
Updates the publication described by the given publication entity.

Parameters:
publicationEntity - The description of the publication to update.
Returns:
a response containing the entity describing the updated publication.


Copyright © 2016 Silverpeas. All Rights Reserved.