Package lumis.service.userpost
Class UserPostResource
- java.lang.Object
-
- lumis.service.userpost.UserPostResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserPostResource.UserPermissions
-
Constructor Summary
Constructors Constructor Description UserPostResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deletePost(String postContentId)
Deletes an user post by it's contentId and all related activities.void
edit(HttpServletResponse response, String userPostContentId, String pageId)
Redirects to the edit post page.String
getUrlMetaInformation(String url)
Given a url returns the meta information extracted from the url.
-
-
-
Method Detail
-
getUrlMetaInformation
@Path("/geturlmetainformation") @GET @Produces("application/json") public String getUrlMetaInformation(@QueryParam("url") @NotNull String url) throws PortalException
Given a url returns the meta information extracted from the url.- Parameters:
url
- the url to retrieve meta information from- Returns:
- a json object with meta information
- Throws:
PortalException
- Since:
- 10.1.0
-
deletePost
@DELETE @Path("/posts/{postContentId:[A-F0-9]{32}}") public void deletePost(@PathParam("postContentId") @NotNull String postContentId) throws PortalException
Deletes an user post by it's contentId and all related activities.- Parameters:
postContentId
- user post's contentId.- Throws:
PortalException
- Since:
- 10.1.0
-
edit
@Path("/edit") @GET public void edit(@Context HttpServletResponse response, @QueryParam("userPostContentId") @NotNull String userPostContentId, @QueryParam("pageId") @NotNull String pageId) throws PortalException, IOException
Redirects to the edit post page.- Parameters:
response
- the http response.userPostContentId
- the content identifier of the post to be edited.pageId
- the page identifier from where the edit is being called.- Throws:
PortalException
IOException
- Since:
- 10.1.1
-
-