org.silverpeas.contribution.web
Class AbstractContributionResource
java.lang.Object
com.silverpeas.web.RESTWebService
org.silverpeas.contribution.web.AbstractContributionResource
- Direct Known Subclasses:
- ContributionContentResource
public abstract class AbstractContributionResource
- extends RESTWebService
User: Yohann Chastagnier
Date: 21/05/13
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 |
AbstractContributionResource
public AbstractContributionResource()
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.