public abstract class AbstractForumInjector
extends org.exoplatform.services.bench.DataInjector
| Modifier and Type | Field and Description |
|---|---|
protected int |
byteSizeBase
.
|
protected String |
categoryBase
.
|
protected int |
categoryNumber
.
|
protected static String |
DOMAIN
.
|
protected ExoNameGenerator |
exoNameGenerator
.
|
protected String |
forumBase
.
|
protected int |
forumNumber
.
|
protected org.exoplatform.forum.service.ForumService |
forumService
.
|
protected org.exoplatform.forum.common.jcr.KSDataLocation |
locator
.
|
protected LoremIpsum4J |
lorem
.
|
protected org.exoplatform.services.organization.OrganizationService |
organizationService
.
|
protected static String |
PASSWORD
.
|
protected String |
postBase
.
|
protected int |
postNumber
.
|
protected Random |
random
.
|
protected String |
topicBase
.
|
protected int |
topicNumber
.
|
protected String |
userBase
.
|
protected org.exoplatform.services.organization.UserHandler |
userHandler
.
|
protected int |
userNumber
.
|
| Constructor and Description |
|---|
AbstractForumInjector() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
categoryName() |
int |
categoryNumber(String base) |
Object |
execute(HashMap<String,String> stringStringHashMap) |
protected String |
forumName() |
int |
forumNumber(String base) |
org.exoplatform.forum.service.Category |
getCategoryByForumName(String forumName) |
org.exoplatform.forum.service.Category |
getCategoryByName(String catName) |
org.exoplatform.forum.service.Forum |
getForumByName(String forumName) |
org.exoplatform.forum.service.Forum |
getForumByTopicName(String topicName) |
protected String |
getId(String type) |
org.exoplatform.services.log.Log |
getLog() |
org.exoplatform.forum.service.Post |
getPostByName(String postName) |
org.exoplatform.forum.service.Topic |
getTopicByName(String topicName) |
org.exoplatform.forum.service.Topic |
getTopicByPostName(String postName) |
void |
init(String userPrefix,
String categoryPrefix,
String forumPrefix,
String topicPrefix,
String postPrefix,
int byteSize) |
protected int |
param(HashMap<String,String> params,
String name) |
protected String |
postName() |
int |
postNumber(String base) |
void |
reject(HashMap<String,String> stringStringHashMap) |
protected String |
topicName() |
int |
topicNumber(String base) |
protected String |
userName() |
int |
userNumber(String base) |
createTextResource, getRestId, inject, paragraphs, randomParagraphs, randomUser, randomWords, readGroupsIfExist, readMembershipIfExist, readUsersIfExist, setRestId, wordsprotected static final String PASSWORD
protected static final String DOMAIN
protected String userBase
protected String categoryBase
protected String forumBase
protected String topicBase
protected String postBase
protected int byteSizeBase
protected int userNumber
protected int categoryNumber
protected int forumNumber
protected int topicNumber
protected int postNumber
protected final org.exoplatform.services.organization.OrganizationService organizationService
protected final org.exoplatform.forum.service.ForumService forumService
protected final org.exoplatform.forum.common.jcr.KSDataLocation locator
protected final org.exoplatform.services.organization.UserHandler userHandler
protected final Random random
protected ExoNameGenerator exoNameGenerator
protected LoremIpsum4J lorem
public void init(String userPrefix, String categoryPrefix, String forumPrefix, String topicPrefix, String postPrefix, int byteSize)
public org.exoplatform.services.log.Log getLog()
getLog in class org.exoplatform.services.bench.DataInjectorpublic Object execute(HashMap<String,String> stringStringHashMap) throws Exception
execute in class org.exoplatform.services.bench.DataInjectorExceptionpublic void reject(HashMap<String,String> stringStringHashMap) throws Exception
reject in class org.exoplatform.services.bench.DataInjectorExceptionpublic org.exoplatform.forum.service.Category getCategoryByName(String catName) throws Exception
Exceptionpublic org.exoplatform.forum.service.Forum getForumByName(String forumName) throws Exception
Exceptionpublic org.exoplatform.forum.service.Category getCategoryByForumName(String forumName) throws Exception
Exceptionpublic org.exoplatform.forum.service.Topic getTopicByName(String topicName) throws Exception
Exceptionpublic org.exoplatform.forum.service.Post getPostByName(String postName) throws Exception
Exceptionpublic org.exoplatform.forum.service.Topic getTopicByPostName(String postName) throws Exception
Exceptionpublic org.exoplatform.forum.service.Forum getForumByTopicName(String topicName) throws Exception
Exceptionprotected String userName()
protected String categoryName()
protected String forumName()
protected String topicName()
protected String postName()
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.