|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.bench.DataInjector
org.exoplatform.forum.extras.injection.forum.AbstractForumInjector
public abstract class AbstractForumInjector
| Field Summary | |
|---|---|
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
. |
| Fields inherited from class org.exoplatform.services.bench.DataInjector |
|---|
ARRAY_SPLIT |
| Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin |
|---|
desc, name |
| Constructor Summary | |
|---|---|
AbstractForumInjector()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.exoplatform.services.bench.DataInjector |
|---|
createTextResource, getRestId, inject, paragraphs, randomParagraphs, randomUser, randomWords, readGroupsIfExist, readMembershipIfExist, readUsersIfExist, setRestId, words |
| Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin |
|---|
getDescription, getName, setDescription, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected 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
| Constructor Detail |
|---|
public AbstractForumInjector()
| Method Detail |
|---|
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.DataInjector
public Object execute(HashMap<String,String> stringStringHashMap)
throws Exception
execute in class org.exoplatform.services.bench.DataInjectorException
public void reject(HashMap<String,String> stringStringHashMap)
throws Exception
reject in class org.exoplatform.services.bench.DataInjectorException
public int userNumber(String base)
throws Exception
Exception
public int categoryNumber(String base)
throws Exception
Exception
public int forumNumber(String base)
throws Exception
Exception
public int topicNumber(String base)
throws Exception
Exception
public int postNumber(String base)
throws Exception
Exception
public org.exoplatform.forum.service.Category getCategoryByName(String catName)
throws Exception
Exception
public org.exoplatform.forum.service.Forum getForumByName(String forumName)
throws Exception
Exception
public org.exoplatform.forum.service.Category getCategoryByForumName(String forumName)
throws Exception
Exception
public org.exoplatform.forum.service.Topic getTopicByName(String topicName)
throws Exception
Exception
public org.exoplatform.forum.service.Post getPostByName(String postName)
throws Exception
Exception
public org.exoplatform.forum.service.Topic getTopicByPostName(String postName)
throws Exception
Exception
public 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()
protected String getId(String type)
protected int param(HashMap<String,String> params,
String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||