org.exoplatform.ecm.connector.platform
Class PopulateConnector

java.lang.Object
  extended by org.exoplatform.ecm.connector.platform.PopulateConnector
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class PopulateConnector
extends java.lang.Object
implements org.exoplatform.services.rest.resource.ResourceContainer

Created by The eXo Platform SAS Author : Nguyen Anh Vu vuna@exoplatform.com Jun 20, 2012


Field Summary
protected static java.lang.String IF_MODIFIED_SINCE_DATE_FORMAT
          The Constant IF_MODIFIED_SINCE_DATE_FORMAT.
protected static java.lang.String LAST_MODIFIED_PROPERTY
          The Constant LAST_MODIFIED_PROPERTY.
protected static java.lang.String WORKSPACE_NAME
           
 
Constructor Summary
PopulateConnector(org.exoplatform.services.jcr.RepositoryService repositoryService, CmsService cmsService, WCMPublicationService publicationService, org.exoplatform.services.jcr.ext.distribution.DataDistributionManager dataDistributionManager, TaxonomyService taxonomyService, JodConverterService jodConverter)
           
 
Method Summary
 javax.ws.rs.core.Response initialLoad(boolean isPublishDoc)
          Initializes the data to use later
 javax.ws.rs.core.Response storage(java.lang.String name, java.lang.String docType, int from, int to, java.lang.String workspace, java.lang.String folderPath, java.lang.String categories, java.lang.Integer size)
          Creates mass amount of data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAST_MODIFIED_PROPERTY

protected static final java.lang.String LAST_MODIFIED_PROPERTY
The Constant LAST_MODIFIED_PROPERTY.

See Also:
Constant Field Values

IF_MODIFIED_SINCE_DATE_FORMAT

protected static final java.lang.String IF_MODIFIED_SINCE_DATE_FORMAT
The Constant IF_MODIFIED_SINCE_DATE_FORMAT.

See Also:
Constant Field Values

WORKSPACE_NAME

protected static final java.lang.String WORKSPACE_NAME
See Also:
Constant Field Values
Constructor Detail

PopulateConnector

public PopulateConnector(org.exoplatform.services.jcr.RepositoryService repositoryService,
                         CmsService cmsService,
                         WCMPublicationService publicationService,
                         org.exoplatform.services.jcr.ext.distribution.DataDistributionManager dataDistributionManager,
                         TaxonomyService taxonomyService,
                         JodConverterService jodConverter)
Method Detail

initialLoad

public javax.ws.rs.core.Response initialLoad(boolean isPublishDoc)
Initializes the data to use later

Parameters:
isPublishDoc - indicates if the newly created documents are published.
Returns:

storage

public javax.ws.rs.core.Response storage(java.lang.String name,
                                         java.lang.String docType,
                                         int from,
                                         int to,
                                         java.lang.String workspace,
                                         java.lang.String folderPath,
                                         java.lang.String categories,
                                         java.lang.Integer size)
Creates mass amount of data

Parameters:
name - the node name
docType - type of the document to create
from - document name will start with suffix "from", and increasing by one for the next doc
to - the bottom range of document name
folderPath - the location where all documents will be created
categories - the categories which created documents are attached.
Returns:


Copyright © 2012 eXo Platform SAS. All Rights Reserved.