org.exoplatform.addon.service
Class AddOnRestService
java.lang.Object
org.exoplatform.wcm.connector.BaseConnector
org.exoplatform.addon.service.AddOnRestService
- All Implemented Interfaces:
- org.exoplatform.services.rest.resource.ResourceContainer
@RolesAllowed(value="users")
public class AddOnRestService
- extends org.exoplatform.wcm.connector.BaseConnector
- implements org.exoplatform.services.rest.resource.ResourceContainer
Created by The eXo Platform SAS
20 Aug 2014
| Fields inherited from class org.exoplatform.wcm.connector.BaseConnector |
fileHandler, fileUploadHandler, folderHandler, IF_MODIFIED_SINCE_DATE_FORMAT, LAST_MODIFIED_PROPERTY, linkManager, livePortalManagerService, repositoryService, votingService, webSchemaConfigService |
|
Constructor Summary |
AddOnRestService(org.exoplatform.portal.config.UserACL userACL)
|
|
Method Summary |
javax.ws.rs.core.Response |
deleteComment(javax.ws.rs.core.SecurityContext sc,
javax.ws.rs.core.UriInfo uriInfo,
String jcrPath,
String commentId)
|
javax.ws.rs.core.Response |
editComment(javax.ws.rs.core.SecurityContext sc,
javax.ws.rs.core.UriInfo uriInfo,
String jcrPath,
String commentId,
String newComment)
|
javax.ws.rs.core.Response |
getComments(javax.ws.rs.core.SecurityContext sc,
javax.ws.rs.core.UriInfo uriInfo,
String jcrPath)
|
protected String |
getContentStorageType()
|
protected javax.jcr.Node |
getRootContentStorage(javax.jcr.Node parentNode)
|
javax.ws.rs.core.Response |
migrate(javax.ws.rs.core.SecurityContext sc,
javax.ws.rs.core.UriInfo uriInfo)
|
| Methods inherited from class org.exoplatform.wcm.connector.BaseConnector |
buildXMLResponseCommon, buildXMLResponseForContentStorage, buildXMLResponseForPortal, buildXMLResponseForRoot, buildXMLResponseOnExpand, getContent, getContent, getCorrectContentStorage, getCurrentPortalNode, getResponse, getWebContent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddOnRestService
public AddOnRestService(org.exoplatform.portal.config.UserACL userACL)
migrate
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response migrate(@Context
javax.ws.rs.core.SecurityContext sc,
@Context
javax.ws.rs.core.UriInfo uriInfo)
editComment
@RolesAllowed(value="users")
public javax.ws.rs.core.Response editComment(@Context
javax.ws.rs.core.SecurityContext sc,
@Context
javax.ws.rs.core.UriInfo uriInfo,
String jcrPath,
String commentId,
String newComment)
throws Exception
- Throws:
Exception
deleteComment
@RolesAllowed(value="users")
public javax.ws.rs.core.Response deleteComment(@Context
javax.ws.rs.core.SecurityContext sc,
@Context
javax.ws.rs.core.UriInfo uriInfo,
String jcrPath,
String commentId)
throws Exception
- Throws:
Exception
getComments
public javax.ws.rs.core.Response getComments(@Context
javax.ws.rs.core.SecurityContext sc,
@Context
javax.ws.rs.core.UriInfo uriInfo,
String jcrPath)
throws Exception
- Throws:
Exception
getRootContentStorage
protected javax.jcr.Node getRootContentStorage(javax.jcr.Node parentNode)
throws Exception
- Specified by:
getRootContentStorage in class org.exoplatform.wcm.connector.BaseConnector
- Throws:
Exception
getContentStorageType
protected String getContentStorageType()
throws Exception
- Specified by:
getContentStorageType in class org.exoplatform.wcm.connector.BaseConnector
- Throws:
Exception
Copyright © 2003–2014 eXo Platform SAS. All rights reserved.