public abstract class AbstractFAQInjector
extends org.exoplatform.services.bench.DataInjector
| Modifier and Type | Field and Description |
|---|---|
protected String |
answerBase
.
|
protected int |
answerNumber
.
|
protected int |
byteSizeBase
.
|
protected String |
categoryBase
.
|
protected int |
categoryNumber
.
|
protected String |
commentBase
.
|
protected int |
commentNumber
.
|
protected static String |
DOMAIN
.
|
protected ExoNameGenerator |
exoNameGenerator
.
|
protected org.exoplatform.faq.service.FAQService |
faqService
.
|
protected org.exoplatform.faq.service.FAQSetting |
faqSetting
.
|
protected org.exoplatform.forum.common.jcr.KSDataLocation |
locator
.
|
protected LoremIpsum4J |
lorem
.
|
protected org.exoplatform.services.organization.OrganizationService |
organizationService
.
|
protected static String |
PASSWORD
.
|
protected String |
questionBase
.
|
protected int |
questionNumber
.
|
protected Random |
random
.
|
protected String |
userBase
.
|
protected org.exoplatform.services.organization.UserHandler |
userHandler
.
|
protected int |
userNumber
.
|
| Constructor and Description |
|---|
AbstractFAQInjector() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
answerName() |
int |
answerNumber(String base) |
protected String |
categoryName() |
int |
categoryNumber(String base) |
protected String |
commentName() |
int |
commentNumber(String base) |
Object |
execute(HashMap<String,String> stringStringHashMap) |
org.exoplatform.faq.service.Answer |
getAnswerByName(String answerName) |
org.exoplatform.faq.service.Category |
getCategoryByName(String catName) |
protected org.exoplatform.faq.service.Category |
getCategoryRoot(boolean isUpdate) |
org.exoplatform.faq.service.Comment |
getCommentByName(String commentName) |
protected javax.jcr.Node |
getFAQHomeNode(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider) |
org.exoplatform.services.log.Log |
getLog() |
org.exoplatform.faq.service.Question |
getQuestionByName(String questionName) |
void |
init(String userPrefix,
String categoryPrefix,
String questionPrefix,
String answerPrefix,
String commentPrefix,
int byteSize) |
protected int |
param(HashMap<String,String> params,
String name) |
protected String |
questionName() |
int |
questionNumber(String base) |
void |
reject(HashMap<String,String> stringStringHashMap) |
protected javax.jcr.NodeIterator |
search(String queryString) |
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 questionBase
protected String answerBase
protected String commentBase
protected int byteSizeBase
protected final org.exoplatform.services.organization.OrganizationService organizationService
protected final org.exoplatform.faq.service.FAQService faqService
protected final org.exoplatform.forum.common.jcr.KSDataLocation locator
protected final org.exoplatform.services.organization.UserHandler userHandler
protected org.exoplatform.faq.service.FAQSetting faqSetting
protected int userNumber
protected int categoryNumber
protected int questionNumber
protected int answerNumber
protected int commentNumber
protected final Random random
protected ExoNameGenerator exoNameGenerator
protected LoremIpsum4J lorem
public void init(String userPrefix, String categoryPrefix, String questionPrefix, String answerPrefix, String commentPrefix, int byteSize)
protected org.exoplatform.faq.service.Category getCategoryRoot(boolean isUpdate)
protected javax.jcr.NodeIterator search(String queryString) throws Exception
Exceptionprotected javax.jcr.Node getFAQHomeNode(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws Exception
Exceptionpublic org.exoplatform.faq.service.Category getCategoryByName(String catName) throws Exception
Exceptionpublic org.exoplatform.faq.service.Question getQuestionByName(String questionName) throws Exception
Exceptionpublic org.exoplatform.faq.service.Answer getAnswerByName(String answerName) throws Exception
Exceptionpublic org.exoplatform.faq.service.Comment getCommentByName(String commentName) throws Exception
Exceptionprotected String userName()
protected String categoryName()
protected String questionName()
protected String answerName()
protected String commentName()
public 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.services.log.Log getLog()
getLog in class org.exoplatform.services.bench.DataInjectorCopyright © 2003–2015 eXo Platform SAS. All rights reserved.