org.silverpeas.contribution.web
Class AbstractContributionResource

java.lang.Object
  extended by com.silverpeas.web.RESTWebService
      extended by org.silverpeas.contribution.web.AbstractContributionResource
Direct Known Subclasses:
ContributionContentResource

public abstract class AbstractContributionResource
extends RESTWebService

User: Yohann Chastagnier Date: 21/05/13


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 com.silverpeas.web.RESTWebService
RESPONSE_HEADER_ARRAYSIZE, REST_WEB_SERVICES_URI_BASE
 
Constructor Summary
AbstractContributionResource()
           
 
Method Summary
abstract  String getContributionId()
           
protected  String getDefaultFormId()
          Gets the default form id
protected  String getDefaultPublicationTemplateLanguage()
          Gets the default publication template language
protected  FormFieldValueEntity getFormFieldValue(FieldTemplate fieldTemplate, DataRecord data, String lang)
          Gets the value of a field.
protected  PublicationTemplate getPublicationTemplate(String formId)
          Gets the publication template of the specified form id
 
Methods inherited from class com.silverpeas.web.RESTWebService
getBundle, getBundleLocation, getComponentId, 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

AbstractContributionResource

public AbstractContributionResource()
Method Detail

getContributionId

public abstract String getContributionId()

getDefaultFormId

protected String getDefaultFormId()
Gets the default form id

Returns:

getDefaultPublicationTemplateLanguage

protected String getDefaultPublicationTemplateLanguage()
Gets the default publication template language

Returns:

getFormFieldValue

protected FormFieldValueEntity getFormFieldValue(FieldTemplate fieldTemplate,
                                                 DataRecord data,
                                                 String lang)
                                          throws Exception
Gets the value of a field.

Parameters:
fieldTemplate -
data -
lang -
Returns:
Throws:
Exception

getPublicationTemplate

protected PublicationTemplate getPublicationTemplate(String formId)
                                              throws PublicationTemplateException
Gets the publication template of the specified form id

Parameters:
formId -
Returns:
Throws:
PublicationTemplateException


Copyright © 2016 Silverpeas. All Rights Reserved.