org.exoplatform.wiki.bench
Class WikiDataInjector

java.lang.Object
  extended by org.exoplatform.container.component.BaseComponentPlugin
      extended by org.exoplatform.services.bench.DataInjector
          extended by org.exoplatform.wiki.bench.WikiDataInjector
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class WikiDataInjector
extends org.exoplatform.services.bench.DataInjector

Plugin for injecting Wiki data.


Nested Class Summary
static class WikiDataInjector.CONSTANTS
           
 
Field Summary
static String ARRAY_SPLIT
           
static String ATTACH_SIZE
           
static String PAGE_SIZE
           
static String PERMISSION
           
static String PREFIX
           
static String QUANTITY
           
static String RECURSIVE
           
static String WIKI_OWNER
           
static String WIKI_TYPE
           
 
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name
 
Constructor Summary
WikiDataInjector(org.exoplatform.wiki.service.WikiService wikiService, org.exoplatform.container.xml.InitParams params)
           
 
Method Summary
 Object execute(HashMap<String,String> params)
           
 org.exoplatform.services.log.Log getLog()
           
 org.chromattic.api.query.QueryResult<org.exoplatform.wiki.mow.core.api.wiki.PageImpl> getPagesByPrefix(String prefix, org.exoplatform.wiki.mow.core.api.wiki.PageImpl father)
           
 void inject(HashMap<String,String> queryParams)
           
 void reject(HashMap<String,String> params)
           
 
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
 

Field Detail

QUANTITY

public static final String QUANTITY
See Also:
Constant Field Values

PREFIX

public static final String PREFIX
See Also:
Constant Field Values

PAGE_SIZE

public static final String PAGE_SIZE
See Also:
Constant Field Values

ATTACH_SIZE

public static final String ATTACH_SIZE
See Also:
Constant Field Values

WIKI_OWNER

public static final String WIKI_OWNER
See Also:
Constant Field Values

WIKI_TYPE

public static final String WIKI_TYPE
See Also:
Constant Field Values

RECURSIVE

public static final String RECURSIVE
See Also:
Constant Field Values

PERMISSION

public static final String PERMISSION
See Also:
Constant Field Values

ARRAY_SPLIT

public static final String ARRAY_SPLIT
See Also:
Constant Field Values
Constructor Detail

WikiDataInjector

public WikiDataInjector(org.exoplatform.wiki.service.WikiService wikiService,
                        org.exoplatform.container.xml.InitParams params)
Method Detail

inject

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

reject

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

getPagesByPrefix

public org.chromattic.api.query.QueryResult<org.exoplatform.wiki.mow.core.api.wiki.PageImpl> getPagesByPrefix(String prefix,
                                                                                                              org.exoplatform.wiki.mow.core.api.wiki.PageImpl father)

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> params)
               throws Exception
Specified by:
execute in class org.exoplatform.services.bench.DataInjector
Throws:
Exception


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.