public abstract class AbstractPollInjector
extends org.exoplatform.services.bench.DataInjector
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_GROUP_PREFIX |
static String |
DEFAULT_POLL_PRIVATE_PREFIX |
static String |
DEFAULT_POLL_PUBLIC_PREFIX |
protected ExoNameGenerator |
exoNameGenerator |
protected static org.exoplatform.forum.service.ForumService |
forumService |
protected String |
groupBase |
protected org.exoplatform.services.organization.GroupHandler |
groupHandler |
protected int |
groupNumber |
protected org.exoplatform.forum.common.jcr.KSDataLocation |
locator |
protected LoremIpsum4J |
lorem |
protected static int |
OPTION_DEFAULT_SIZE |
protected String |
optionBase |
protected int |
optionNumber |
protected static org.exoplatform.services.organization.OrganizationService |
organizationService |
static String |
POLL_DEFAULT_TYPE |
static String |
POLL_TYPE |
protected String |
pollPrivateBase |
protected int |
pollPrivateNumber |
protected String |
pollPublicBase |
protected int |
pollPublicNumber |
protected static org.exoplatform.poll.service.PollService |
pollService |
protected Random |
random |
protected String |
userBase |
protected int |
userNumber |
| Constructor and Description |
|---|
AbstractPollInjector() |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(HashMap<String,String> stringHashMap) |
org.exoplatform.poll.service.Poll |
getFullPublicPollByName(String pollName) |
org.exoplatform.services.organization.Group |
getGroupByName(String groupName) |
protected int |
getIntParam(HashMap<String,String> params,
String name) |
org.exoplatform.services.log.Log |
getLog() |
org.exoplatform.poll.service.Poll |
getPrivatePollByName(String groupName,
String pollName) |
org.exoplatform.poll.service.Poll |
getPublicPollByName(String pollName) |
javax.jcr.Node |
getPublicPollNodeByName(String pollName) |
protected static String |
getStringValueParam(HashMap<String,String> params,
String key,
String defaultValue) |
protected String |
groupName() |
int |
groupNumber(String base) |
void |
init(String groupPrefix,
String pollPublicPrefix,
String pollPrivatePrefix,
String toGroup,
String userPrefix) |
javax.jcr.NodeIterator |
pollNodesForPublic(String pollBase) |
int |
pollNumberForPrivate(String groupName,
String pollBase) |
int |
pollNumberForPublic(String pollBase) |
protected String |
pollPrivateName() |
protected String |
pollPublicName() |
void |
reject(HashMap<String,String> stringHashMap) |
int |
userNumber(String base) |
createTextResource, getRestId, inject, paragraphs, randomParagraphs, randomUser, randomWords, readGroupsIfExist, readMembershipIfExist, readUsersIfExist, setRestId, wordspublic static final String POLL_DEFAULT_TYPE
public static final String DEFAULT_POLL_PRIVATE_PREFIX
public static final String DEFAULT_POLL_PUBLIC_PREFIX
public static final String DEFAULT_GROUP_PREFIX
protected static final int OPTION_DEFAULT_SIZE
protected static org.exoplatform.poll.service.PollService pollService
protected static org.exoplatform.forum.service.ForumService forumService
protected final org.exoplatform.forum.common.jcr.KSDataLocation locator
protected static org.exoplatform.services.organization.OrganizationService organizationService
protected org.exoplatform.services.organization.GroupHandler groupHandler
protected String groupBase
protected int groupNumber
protected String pollPublicBase
protected String pollPrivateBase
protected int pollPrivateNumber
protected int pollPublicNumber
protected String optionBase
protected int optionNumber
protected String userBase
protected int userNumber
protected Random random
protected ExoNameGenerator exoNameGenerator
protected LoremIpsum4J lorem
public static final String POLL_TYPE
public org.exoplatform.services.log.Log getLog()
getLog in class org.exoplatform.services.bench.DataInjectorpublic Object execute(HashMap<String,String> stringHashMap) throws Exception
execute in class org.exoplatform.services.bench.DataInjectorExceptionpublic void reject(HashMap<String,String> stringHashMap) throws Exception
reject in class org.exoplatform.services.bench.DataInjectorExceptionprotected String pollPublicName()
protected String pollPrivateName()
protected String groupName()
public void init(String groupPrefix, String pollPublicPrefix, String pollPrivatePrefix, String toGroup, String userPrefix)
public org.exoplatform.services.organization.Group getGroupByName(String groupName) throws Exception
Exceptionpublic org.exoplatform.poll.service.Poll getPublicPollByName(String pollName) throws Exception
Exceptionpublic org.exoplatform.poll.service.Poll getFullPublicPollByName(String pollName) throws Exception
Exceptionpublic javax.jcr.Node getPublicPollNodeByName(String pollName) throws Exception
Exceptionpublic org.exoplatform.poll.service.Poll getPrivatePollByName(String groupName, String pollName) throws Exception
Exceptionpublic int pollNumberForPrivate(String groupName, String pollBase) throws Exception
Exceptionpublic int pollNumberForPublic(String pollBase) throws Exception
Exceptionpublic javax.jcr.NodeIterator pollNodesForPublic(String pollBase) throws Exception
Exceptionprotected static String getStringValueParam(HashMap<String,String> params, String key, String defaultValue)
Copyright © 2003–2015 eXo Platform SAS. All rights reserved.