org.silverpeas.notification.web
Class AbstractMessageResource
java.lang.Object
com.silverpeas.web.RESTWebService
org.silverpeas.notification.web.AbstractMessageResource
- Direct Known Subclasses:
- MessageResource
public abstract class AbstractMessageResource
- extends RESTWebService
- Author:
- Yohann Chastagnier
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 |
AbstractMessageResource
public AbstractMessageResource()
getComponentId
public String getComponentId()
- Description copied from class:
RESTWebService
- Gets the identifier of the component instance to which the requested resource belongs to.
- Specified by:
getComponentId
in class RESTWebService
- Returns:
- the identifier of the Silverpeas component instance.
asWebEntity
protected MessageContainerEntity asWebEntity(MessageContainer messageContainer)
- Converts the message container into its corresponding web entity.
- Parameters:
messageContainer
- the message container.
- Returns:
- the corresponding message container entity.
getLanguage
protected String getLanguage()
- Due to the particularity of this WEB Service according to authentication, the language is
handled at this level.
- Returns:
Copyright © 2016 Silverpeas. All Rights Reserved.