public abstract class AbstractSocialInjector
extends org.exoplatform.services.bench.DataInjector
| Modifier and Type | Field and Description |
|---|---|
protected org.exoplatform.social.core.manager.ActivityManager |
activityManager
.
|
protected org.exoplatform.container.PortalContainer |
container |
protected static String |
DOMAIN
.
|
protected org.exoplatform.social.core.manager.IdentityManager |
identityManager
.
|
protected org.exoplatform.social.core.storage.api.IdentityStorage |
identityStorage
.
|
protected LoremIpsum4J |
lorem
.
|
protected NameGenerator |
nameGenerator
.
|
protected org.exoplatform.services.organization.OrganizationService |
organizationService
.
|
protected String |
password
.
|
protected Random |
random
.
|
protected org.exoplatform.social.core.manager.RelationshipManager |
relationshipManager
.
|
protected String |
spaceBase
.
|
protected int |
spaceNumber
.
|
protected String |
spacePrettyBase
.
|
protected org.exoplatform.social.core.space.spi.SpaceService |
spaceService
.
|
protected String |
spaceSuffixPattern
.
|
protected static int |
spaceSuffixValue
.
|
protected String |
userBase
.
|
protected org.exoplatform.services.organization.UserHandler |
userHandler
.
|
protected int |
userNumber
.
|
protected String |
userSuffixPattern
.
|
protected static int |
userSuffixValue
.
|
| Constructor and Description |
|---|
AbstractSocialInjector(PatternInjectorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(HashMap<String,String> stringStringHashMap) |
org.exoplatform.services.log.Log |
getLog() |
void |
init(String userPrefix,
String spacePrefix) |
void |
init(String userPrefix,
String spacePrefix,
int userSuffixLength,
int spaceSuffixLength) |
protected int |
param(HashMap<String,String> params,
String name) |
void |
reject(HashMap<String,String> stringStringHashMap) |
protected String |
spaceName() |
protected String |
spaceNameSuffixPattern() |
protected String |
spaceNameSuffixPattern(int spaceNumber) |
protected String |
userName() |
protected String |
userNameSuffixPattern(int userNumber)
Using for Unit testing to get the identity
|
createTextResource, getRestId, inject, paragraphs, randomParagraphs, randomUser, randomWords, readGroupsIfExist, readMembershipIfExist, readUsersIfExist, setRestId, wordsprotected final String password
protected static final String DOMAIN
protected static int spaceSuffixValue
protected static int userSuffixValue
protected String spaceSuffixPattern
protected String userSuffixPattern
protected String userBase
protected String spaceBase
protected String spacePrettyBase
protected int userNumber
protected int spaceNumber
protected final org.exoplatform.social.core.manager.IdentityManager identityManager
protected final org.exoplatform.social.core.storage.api.IdentityStorage identityStorage
protected final org.exoplatform.social.core.manager.RelationshipManager relationshipManager
protected final org.exoplatform.social.core.manager.ActivityManager activityManager
protected final org.exoplatform.services.organization.OrganizationService organizationService
protected final org.exoplatform.social.core.space.spi.SpaceService spaceService
protected final org.exoplatform.services.organization.UserHandler userHandler
protected final Random random
protected NameGenerator nameGenerator
protected LoremIpsum4J lorem
protected org.exoplatform.container.PortalContainer container
public AbstractSocialInjector(PatternInjectorConfig config)
public void init(String userPrefix, String spacePrefix, int userSuffixLength, int spaceSuffixLength)
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.DataInjectorExceptionprotected String userName()
protected String spaceName()
protected String userNameSuffixPattern(int userNumber)
userNumber - protected String spaceNameSuffixPattern()
protected String spaceNameSuffixPattern(int spaceNumber)
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.