org.molgenis
Class MolgenisDatabasePopulator

java.lang.Object
  extended by org.molgenis.MolgenisDatabasePopulator
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
Direct Known Subclasses:
WebAppDatabasePopulator

public abstract class MolgenisDatabasePopulator
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>


Constructor Summary
MolgenisDatabasePopulator()
           
 
Method Summary
static List<MolgenisEntity> createEntities(String[][] entityValues)
           
 MolgenisGroup createGroup(Database database, String groupName)
           
 void createPermission(Database database, Class<?> clazz, MolgenisRole role, String permissionString)
           
 MolgenisUser createUser(Database database, String userName, String firstName, String lastName, String email, String password, boolean superUser)
           
protected abstract  void initializeApplicationDatabase(Database database)
           
 void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MolgenisDatabasePopulator

public MolgenisDatabasePopulator()
Method Detail

onApplicationEvent

public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>

initializeApplicationDatabase

protected abstract void initializeApplicationDatabase(Database database)
                                               throws Exception
Throws:
Exception

createPermission

public void createPermission(Database database,
                             Class<?> clazz,
                             MolgenisRole role,
                             String permissionString)
                      throws DatabaseException
Throws:
DatabaseException

createUser

public MolgenisUser createUser(Database database,
                               String userName,
                               String firstName,
                               String lastName,
                               String email,
                               String password,
                               boolean superUser)
                        throws DatabaseException
Throws:
DatabaseException

createGroup

public MolgenisGroup createGroup(Database database,
                                 String groupName)
                          throws DatabaseException
Throws:
DatabaseException

createEntities

public static List<MolgenisEntity> createEntities(String[][] entityValues)


Copyright © 2013. All Rights Reserved.