org.exoplatform.social.extras.injection
Class AbstractSocialInjector

java.lang.Object
  extended by org.exoplatform.container.component.BaseComponentPlugin
      extended by org.exoplatform.services.bench.DataInjector
          extended by org.exoplatform.social.extras.injection.AbstractSocialInjector
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
Direct Known Subclasses:
ActivityInjector, IdentityInjector, MembershipInjector, RelationshipInjector, SpaceInjector

public abstract class AbstractSocialInjector
extends org.exoplatform.services.bench.DataInjector

Version:
$Revision$
Author:
Alain Defrance

Field Summary
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 static 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 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
AbstractSocialInjector()
           
 
Method Summary
 Object execute(HashMap<String,String> stringStringHashMap)
           
 org.exoplatform.services.log.Log getLog()
           
 void init(String userPrefix, String spacePrefix)
           
protected  int param(HashMap<String,String> params, String name)
           
 void reject(HashMap<String,String> stringStringHashMap)
           
protected  String spaceName()
           
protected  String userName()
           
 
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

PASSWORD

protected static final String PASSWORD
.

See Also:
Constant Field Values

DOMAIN

protected static final String DOMAIN
.

See Also:
Constant Field Values

userBase

protected String userBase
.


spaceBase

protected String spaceBase
.


spacePrettyBase

protected String spacePrettyBase
.


userNumber

protected int userNumber
.


spaceNumber

protected int spaceNumber
.


identityManager

protected final org.exoplatform.social.core.manager.IdentityManager identityManager
.


identityStorage

protected final org.exoplatform.social.core.storage.api.IdentityStorage identityStorage
.


relationshipManager

protected final org.exoplatform.social.core.manager.RelationshipManager relationshipManager
.


activityManager

protected final org.exoplatform.social.core.manager.ActivityManager activityManager
.


organizationService

protected final org.exoplatform.services.organization.OrganizationService organizationService
.


spaceService

protected final org.exoplatform.social.core.space.spi.SpaceService spaceService
.


userHandler

protected final org.exoplatform.services.organization.UserHandler userHandler
.


random

protected final Random random
.


nameGenerator

protected NameGenerator nameGenerator
.


lorem

protected LoremIpsum4J lorem
.


container

protected org.exoplatform.container.PortalContainer container
Constructor Detail

AbstractSocialInjector

public AbstractSocialInjector()
Method Detail

init

public void init(String userPrefix,
                 String spacePrefix)

getLog

public org.exoplatform.services.log.Log getLog()
Specified by:
getLog in class org.exoplatform.services.bench.DataInjector

execute

public Object execute(HashMap<String,String> stringStringHashMap)
               throws Exception
Specified by:
execute in class org.exoplatform.services.bench.DataInjector
Throws:
Exception

reject

public void reject(HashMap<String,String> stringStringHashMap)
            throws Exception
Specified by:
reject in class org.exoplatform.services.bench.DataInjector
Throws:
Exception

userName

protected String userName()

spaceName

protected String spaceName()

param

protected int param(HashMap<String,String> params,
                    String name)


Copyright © 2013 eXo Platform SAS. All Rights Reserved.