eXo JCR :: Component :: Extension Service 1.15.0-CR2

org.exoplatform.services.jcr.ext.resource
Class XMLViewNodeRepresentationRenderer

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.resource.XMLViewNodeRepresentationRenderer
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class XMLViewNodeRepresentationRenderer
extends Object
implements org.exoplatform.services.rest.resource.ResourceContainer

Created by The eXo Platform SAS . REST service to expose JCR node as either sys or doc view

Version:
$Id: $
Author:
Gennady Azarenkov

Field Summary
protected  RepositoryService repoService
           
protected  SessionProviderService sessionProviderService
           
 
Constructor Summary
XMLViewNodeRepresentationRenderer(RepositoryService repoService, SessionProviderService sessionProviderService)
           
 
Method Summary
 javax.ws.rs.core.Response getXML(String repoName, String repoPath, String viewType, javax.ws.rs.core.UriInfo uriInfo)
           
protected  String path(String repoPath)
           
protected  String workspaceName(String repoPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repoService

protected RepositoryService repoService

sessionProviderService

protected SessionProviderService sessionProviderService
Constructor Detail

XMLViewNodeRepresentationRenderer

public XMLViewNodeRepresentationRenderer(RepositoryService repoService,
                                         SessionProviderService sessionProviderService)
Parameters:
repoService -
sessionProviderService -
Method Detail

getXML

public javax.ws.rs.core.Response getXML(String repoName,
                                        String repoPath,
                                        String viewType,
                                        @Context
                                        javax.ws.rs.core.UriInfo uriInfo)
Parameters:
repoName - - repository name
repoPath - - node path including workspace name
viewType - - either "system" or "document"
uriInfo -
Returns:
XML view of requested node

workspaceName

protected String workspaceName(String repoPath)

path

protected String path(String repoPath)

eXo JCR :: Component :: Extension Service 1.15.0-CR2

Copyright © 2012 eXo Platform SAS. All Rights Reserved.