Class ServiceClassifieds
- java.lang.Object
-
- org.silverpeas.core.web.rs.RESTWebService
-
- org.silverpeas.mobile.server.services.AbstractRestWebService
-
- org.silverpeas.mobile.server.services.ServiceClassifieds
-
- All Implemented Interfaces:
org.silverpeas.core.web.rs.ProtectedWebResource
,org.silverpeas.core.web.rs.WebAuthenticationValidation
,org.silverpeas.core.web.rs.WebAuthorizationValidation
,org.silverpeas.core.web.SilverpeasWebResource
@WebService @Authorized @Path("mobile/classifieds/{appId}") public class ServiceClassifieds extends AbstractRestWebService
-
-
Field Summary
-
Fields inherited from class org.silverpeas.mobile.server.services.AbstractRestWebService
MAINSESSIONCONTROLLER_ATTRIBUT_NAME
-
-
Constructor Summary
Constructors Constructor Description ServiceClassifieds()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassifiedsDTO
getClassified(String id)
ClassifiedsDTO
getClassifieds()
String
getComponentId()
protected String
getResourceBasePath()
void
sendMessageToOwner(String message, ClassifiedDTO dto)
-
Methods inherited from class org.silverpeas.mobile.server.services.AbstractRestWebService
createStreamingList, getMainSessionController, getSettings, initSilverpeasSession, makeStreamingList, setMainsessioncontroller
-
Methods inherited from class org.silverpeas.core.web.rs.RESTWebService
createWebResourceUri, fromPage, getBundle, getBundleLocation, getHighestUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getOrganisationController, getSilverpeasContext, getUri, getUser, getUserPreferences, getUserRoles, identifiedBy, identifiedBy, initContext, initWebResourceUri, isUserDefined, process
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
getClassified
@GET @Produces("application/json") @Path("{Id}") public ClassifiedsDTO getClassified(@PathParam("Id") String id)
-
sendMessageToOwner
@POST @Produces("application/json") @Consumes("application/json") @Path("{instanceId}/{message}") public void sendMessageToOwner(@PathParam("message") String message, ClassifiedDTO dto)
-
getClassifieds
@GET @Produces("application/json") @Path("all") public ClassifiedsDTO getClassifieds()
-
getResourceBasePath
protected String getResourceBasePath()
- Specified by:
getResourceBasePath
in classorg.silverpeas.core.web.rs.RESTWebService
-
getComponentId
public String getComponentId()
-
-