public class VoteConnector extends BaseConnector implements org.exoplatform.services.rest.resource.ResourceContainer
fileHandler, fileUploadHandler, folderHandler, IF_MODIFIED_SINCE_DATE_FORMAT, LAST_MODIFIED_PROPERTY, linkManager, livePortalManagerService, repositoryService, votingService, webSchemaConfigService| Constructor and Description |
|---|
VoteConnector()
Instantiates a new vote connector.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getContentStorageType()
Gets the content storage type.
|
protected javax.jcr.Node |
getRootContentStorage(javax.jcr.Node parentNode)
Gets the root content storage.
|
javax.ws.rs.core.Response |
getStarVote(String repositoryName,
String workspaceName,
String jcrPath)
Returns a vote value for a given content.
|
javax.ws.rs.core.Response |
getVote(String repositoryName,
String workspaceName,
String jcrPath)
Returns a vote value for a given content.
|
javax.ws.rs.core.Response |
postStarVote(String jcrPath,
String vote)
Sets a vote value for a given content.
|
javax.ws.rs.core.Response |
postVote(String repositoryName,
String workspaceName,
String jcrPath,
String vote,
String lang)
Sets a vote value for a given content.
|
buildXMLResponseCommon, buildXMLResponseForContentStorage, buildXMLResponseForPortal, buildXMLResponseForRoot, buildXMLResponseOnExpand, getContent, getContent, getCorrectContentStorage, getCurrentPortalNode, getResponse, getWebContentpublic javax.ws.rs.core.Response postStarVote(String jcrPath, String vote) throws Exception
jcrPath - The path of the content.vote - The vote value.Exception - The exceptionpublic javax.ws.rs.core.Response getStarVote(String repositoryName, String workspaceName, String jcrPath) throws Exception
repositoryName - The repository name.workspaceName - The workspace name.jcrPath - The path of the content.Exception - The exceptionpublic javax.ws.rs.core.Response postVote(String repositoryName, String workspaceName, String jcrPath, String vote, String lang) throws Exception
repositoryName - The repository name.workspaceName - The workspace name.jcrPath - The path of the content.vote - The vote value.lang - The language of the content.Exception - The exceptionpublic javax.ws.rs.core.Response getVote(String repositoryName, String workspaceName, String jcrPath) throws Exception
repositoryName - The repository name.workspaceName - The workspace name.jcrPath - The path of the content.Exception - The exceptionprotected javax.jcr.Node getRootContentStorage(javax.jcr.Node parentNode)
throws Exception
BaseConnectorgetRootContentStorage in class BaseConnectorparentNode - the nodeException - the exceptionprotected String getContentStorageType() throws Exception
BaseConnectorgetContentStorageType in class BaseConnectorException - the exceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.