Modifier and Type | Class and Description |
---|---|
static class |
UserPostResource.UserPermissions |
Constructor and Description |
---|
UserPostResource() |
Modifier and Type | Method and 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.
|
@Path(value="/geturlmetainformation") @GET @Produces(value="application/json") public String getUrlMetaInformation(@QueryParam(value="url") @NotNull String url) throws PortalException
url
- the url to retrieve meta information fromPortalException
@DELETE @Path(value="/posts/{postContentId:[A-F0-9]{32}}") public void deletePost(@PathParam(value="postContentId") @NotNull String postContentId) throws PortalException
postContentId
- user post's contentId.PortalException
@Path(value="/edit") @GET public void edit(@Context HttpServletResponse response, @QueryParam(value="userPostContentId") @NotNull String userPostContentId, @QueryParam(value="pageId") @NotNull String pageId) throws PortalException, IOException
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.PortalException
IOException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.