org.molgenis
Class MolgenisDatabasePopulator
java.lang.Object
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>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MolgenisDatabasePopulator
public MolgenisDatabasePopulator()
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
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.