org.exoplatform.social.extras.injection
Class RelationshipInjector

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
              extended by org.exoplatform.social.extras.injection.RelationshipInjector
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class RelationshipInjector
extends AbstractSocialInjector

Version:
$Revision$
Author:
Alain Defrance

Field Summary
 
Fields inherited from class org.exoplatform.social.extras.injection.AbstractSocialInjector
activityManager, container, DOMAIN, identityManager, identityStorage, lorem, nameGenerator, organizationService, PASSWORD, random, relationshipManager, spaceBase, spaceNumber, spacePrettyBase, spaceService, userBase, userHandler, 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
RelationshipInjector()
           
 
Method Summary
 Map<Integer,Integer> compute(int a, int b, int c)
           
 void inject(HashMap<String,String> params)
           
 boolean isPossible(int a, int b, int c)
           
 
Methods inherited from class org.exoplatform.social.extras.injection.AbstractSocialInjector
execute, getLog, init, param, reject, spaceName, userName
 
Methods inherited from class org.exoplatform.services.bench.DataInjector
createTextResource, getRestId, 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
 

Constructor Detail

RelationshipInjector

public RelationshipInjector()
Method Detail

inject

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

isPossible

public boolean isPossible(int a,
                          int b,
                          int c)
Parameters:
a - begin range
b - end range
c - number

compute

public Map<Integer,Integer> compute(int a,
                                    int b,
                                    int c)
Parameters:
a - begin range
b - end range
c - number


Copyright © 2013 eXo Platform SAS. All Rights Reserved.