public abstract class BaseConnector extends Object
| Modifier and Type | Field and Description |
|---|---|
protected FCKFileHandler |
fileHandler
The file handler.
|
protected FileUploadHandler |
fileUploadHandler
The file upload handler.
|
protected FCKFolderHandler |
folderHandler
The folder handler.
|
protected static String |
IF_MODIFIED_SINCE_DATE_FORMAT
The Constant IF_MODIFIED_SINCE_DATE_FORMAT.
|
protected static String |
LAST_MODIFIED_PROPERTY
The Constant LAST_MODIFIED_PROPERTY.
|
protected LinkManager |
linkManager
The link manager.
|
protected LivePortalManagerService |
livePortalManagerService
The live portal manager service.
|
protected org.exoplatform.services.jcr.RepositoryService |
repositoryService
The repository service.
|
protected VotingService |
votingService
The voting service.
|
protected WebSchemaConfigService |
webSchemaConfigService
The web schema config service.
|
| Constructor and Description |
|---|
BaseConnector()
Instantiates a new base connector.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.ws.rs.core.Response |
buildXMLResponseCommon(javax.jcr.Node activePortal,
javax.jcr.Node webContent,
String currentFolder,
String command)
Builds the xml response common.
|
protected javax.ws.rs.core.Response |
buildXMLResponseForContentStorage(javax.jcr.Node node,
String command)
Builds the xml response for content storage.
|
protected javax.ws.rs.core.Response |
buildXMLResponseForPortal(javax.jcr.Node node,
javax.jcr.Node webContent,
String command)
Builds the xml response for portal.
|
protected javax.ws.rs.core.Response |
buildXMLResponseForRoot(javax.jcr.Node currentPortal,
javax.jcr.Node sharedPortal,
String command)
Builds the xml response for root.
|
protected javax.ws.rs.core.Response |
buildXMLResponseOnExpand(String currentFolder,
String runningPortal,
String workspaceName,
String jcrPath,
String command)
Builds the xml response on expand.
|
protected javax.jcr.Node |
getContent(String workspaceName,
String jcrPath)
Gets the jcr content.
|
protected javax.jcr.Node |
getContent(String workspaceName,
String jcrPath,
String NodeTypeFilter,
boolean isSystemSession)
Gets the jcr content.
|
protected abstract String |
getContentStorageType()
Gets the content storage type.
|
protected javax.jcr.Node |
getCorrectContentStorage(javax.jcr.Node activePortal,
javax.jcr.Node webContent,
String currentFolder) |
protected javax.jcr.Node |
getCurrentPortalNode(String jcrPath,
String runningPortal,
javax.jcr.Node sharedPortal) |
protected javax.ws.rs.core.Response |
getResponse(Document document)
Gets the response.
|
protected abstract javax.jcr.Node |
getRootContentStorage(javax.jcr.Node node)
Gets the root content storage.
|
protected javax.jcr.Node |
getWebContent(String workspaceName,
String jcrPath)
Gets the web content.
|
protected FCKFolderHandler folderHandler
protected FCKFileHandler fileHandler
protected FileUploadHandler fileUploadHandler
protected org.exoplatform.services.jcr.RepositoryService repositoryService
protected VotingService votingService
protected LinkManager linkManager
protected LivePortalManagerService livePortalManagerService
protected WebSchemaConfigService webSchemaConfigService
protected static final String LAST_MODIFIED_PROPERTY
protected static final String IF_MODIFIED_SINCE_DATE_FORMAT
protected abstract javax.jcr.Node getRootContentStorage(javax.jcr.Node node)
throws Exception
node - the nodeException - the exceptionprotected abstract String getContentStorageType() throws Exception
Exception - the exceptionprotected javax.ws.rs.core.Response buildXMLResponseOnExpand(String currentFolder, String runningPortal, String workspaceName, String jcrPath, String command) throws Exception
currentFolder - the current folderrunningPortal - The current portal instanceworkspaceName - the workspace namejcrPath - the jcr pathcommand - the commandException - the exceptionprotected javax.ws.rs.core.Response buildXMLResponseCommon(javax.jcr.Node activePortal,
javax.jcr.Node webContent,
String currentFolder,
String command)
throws Exception
activePortal - the active portalwebContent - the web contentcurrentFolder - the current foldercommand - the commandException - the exceptionprotected javax.ws.rs.core.Response buildXMLResponseForRoot(javax.jcr.Node currentPortal,
javax.jcr.Node sharedPortal,
String command)
throws Exception
currentPortal - the current portalsharedPortal - the shared portalcommand - the commandException - the exceptionprotected javax.ws.rs.core.Response buildXMLResponseForPortal(javax.jcr.Node node,
javax.jcr.Node webContent,
String command)
throws Exception
node - the nodewebContent - the web contentcommand - the commandException - the exceptionprotected javax.ws.rs.core.Response buildXMLResponseForContentStorage(javax.jcr.Node node,
String command)
throws Exception
node - the nodecommand - the commandException - the exceptionprotected javax.jcr.Node getCorrectContentStorage(javax.jcr.Node activePortal,
javax.jcr.Node webContent,
String currentFolder)
throws Exception
Exceptionprotected javax.ws.rs.core.Response getResponse(Document document)
document - the documentprotected javax.jcr.Node getContent(String workspaceName, String jcrPath, String NodeTypeFilter, boolean isSystemSession) throws Exception
workspaceName - the workspace namejcrPath - the jcr pathException - the exceptionprotected javax.jcr.Node getContent(String workspaceName, String jcrPath) throws Exception
workspaceName - the workspace namejcrPath - the jcr pathException - the exceptionprotected javax.jcr.Node getWebContent(String workspaceName, String jcrPath) throws Exception
workspaceName - the workspace namejcrPath - the jcr pathException - the exceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.