|
||||||||||
| 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.faq.AbstractFAQInjector
public abstract class AbstractFAQInjector
| Field Summary | |
|---|---|
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
. |
| Fields inherited from class org.exoplatform.services.bench.DataInjector |
|---|
ARRAY_SPLIT |
| Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin |
|---|
desc, name |
| Constructor Summary | |
|---|---|
AbstractFAQInjector()
|
|
| Method Summary | |
|---|---|
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)
|
| 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 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
| Constructor Detail |
|---|
public AbstractFAQInjector()
| Method Detail |
|---|
public void init(String userPrefix,
String categoryPrefix,
String questionPrefix,
String answerPrefix,
String commentPrefix,
int byteSize)
public int userNumber(String base)
throws Exception
Exception
public int categoryNumber(String base)
throws Exception
Exception
public int questionNumber(String base)
throws Exception
Exception
public int answerNumber(String base)
throws Exception
Exception
public int commentNumber(String base)
throws Exception
Exceptionprotected org.exoplatform.faq.service.Category getCategoryRoot(boolean isUpdate)
protected javax.jcr.NodeIterator search(String queryString)
throws Exception
Exception
protected javax.jcr.Node getFAQHomeNode(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws Exception
Exception
public org.exoplatform.faq.service.Category getCategoryByName(String catName)
throws Exception
Exception
public org.exoplatform.faq.service.Question getQuestionByName(String questionName)
throws Exception
Exception
public org.exoplatform.faq.service.Answer getAnswerByName(String answerName)
throws Exception
Exception
public 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.DataInjectorException
public 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.DataInjector
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 | |||||||||