public class ObjectGenerator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ObjectGenerator.ContentKind
supported kinds of content
|
Constructor and Description |
---|
ObjectGenerator(BindingsObjectFactory factory,
NavigationService navSvc,
ObjectService objSvc,
RepositoryService repSvc,
String repositoryId,
ObjectGenerator.ContentKind contentKind) |
public ObjectGenerator(BindingsObjectFactory factory, NavigationService navSvc, ObjectService objSvc, RepositoryService repSvc, String repositoryId, ObjectGenerator.ContentKind contentKind)
public void setNumberOfDocumentsToCreatePerFolder(int noDocumentsToCreate)
public void setFolderTypeId(String folderTypeId)
public void setDocumentTypeId(String docTypeId)
public void setDocumentPropertiesToGenerate(List<String> propertyIds)
public void setContentSizeInKB(int sizeInK)
public ObjectGenerator.ContentKind getContentKind()
public void setLoreIpsumGenerator(ObjectGenerator.ContentKind contentKind)
public void setCleanUpAfterCreate(boolean doCleanup)
public TimeLogger getCreateDocumentTimeLogger()
public TimeLogger getCreateFolderTimeLogger()
public TimeLogger getDeleteTimeLogger()
public void createFolderHierachy(int levels, int childrenPerLevel, String rootFolderId)
public void setUseUuidsForNames(boolean useUuids)
public String getFolderId(String rootId, int level, int index)
rootId
- level
- index
- public String getDocumentId(String folderId, int index)
folderId
- folder to retrieve document fromindex
- index of document to retrieve from this folderpublic int getDocumentsInTotal()
public int getFoldersInTotal()
public int getObjectsInTotal()
public void resetCounters()
public void printTimings()
public void logTimings()
public ContentStream createContentLoremIpsumHtml()
public ContentStream createContentLoremIpsumText()
public ContentStream createContentStaticText()
public ContentStream createContentFractalimageJpeg()
public void createTypes(TypeDefinitionList typeDefList)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.