use of org.estatio.module.base.fixtures.security.userrole.personas.EstatioAdmin_Has_EstatioSuperuserRole in project estatio by estatio.
the class EstatioBaseModule method getRefDataSetupFixture.
@Override
public FixtureScript getRefDataSetupFixture() {
if (refData.get()) {
return null;
}
// else
refData.set(true);
return new FixtureScript() {
@Override
protected void execute(final ExecutionContext executionContext) {
executionContext.executeChild(this, new TickingClockFixture().setDate("2014-05-18"));
executionContext.executeChild(this, new ApplicationTenancy_enum.PersistAll());
// set up 3 estatio roles
executionContext.executeChild(this, new EstatioRolesAndPermissions());
// estatio-admin user with the estatio-admin role + superuser
executionContext.executeChild(this, new EstatioAdmin());
executionContext.executeChild(this, new EstatioAdmin_Has_EstatioSuperuserRole());
// bunch of users with estatio-user role
executionContext.executeChild(this, new EstatioUser());
executionContext.executeChild(this, new EstatioUserInFrance());
executionContext.executeChild(this, new EstatioUserInGreatBritain());
executionContext.executeChild(this, new EstatioUserInItaly());
executionContext.executeChild(this, new EstatioUserInNetherlands());
executionContext.executeChild(this, new EstatioUserInSweden());
}
};
}
use of org.estatio.module.base.fixtures.security.userrole.personas.EstatioAdmin_Has_EstatioSuperuserRole in project estatio by estatio.
the class EstatioSecurityModuleSeedFixture method execute.
@Override
protected void execute(ExecutionContext executionContext) {
// security module
executionContext.executeChild(this, new SeedUsersAndRolesFixtureScript());
// estatio app tenancy, users, roles etc
executionContext.executeChild(this, ApplicationTenancy_enum.Global.builder());
executionContext.executeChild(this, ApplicationTenancy_enum.GlobalOnly.builder());
executionContext.executeChild(this, ApplicationTenancy_enum.Fr.builder());
executionContext.executeChild(this, ApplicationTenancy_enum.FrOther.builder());
executionContext.executeChild(this, ApplicationTenancy_enum.It.builder());
executionContext.executeChild(this, ApplicationTenancy_enum.ItOther.builder());
executionContext.executeChild(this, ApplicationTenancy_enum.Nl.builder());
executionContext.executeChild(this, ApplicationTenancy_enum.NlOther.builder());
executionContext.executeChild(this, ApplicationTenancy_enum.Se.builder());
executionContext.executeChild(this, ApplicationTenancy_enum.SeOther.builder());
executionContext.executeChild(this, ApplicationTenancy_enum.Gb.builder());
executionContext.executeChild(this, ApplicationTenancy_enum.GbOther.builder());
// perms (role/features)
executionContext.executeChild(this, new EstatioRolesAndPermissions());
executionContext.executeChild(this, new EstatioAdmin());
executionContext.executeChild(this, new EstatioUser());
executionContext.executeChild(this, new EstatioUserInFrance());
executionContext.executeChild(this, new EstatioUserInGreatBritain());
executionContext.executeChild(this, new EstatioUserInItaly());
executionContext.executeChild(this, new EstatioUserInNetherlands());
executionContext.executeChild(this, new EstatioUserInSweden());
executionContext.executeChild(this, new TogglzModuleAdminRole());
// user/role (users with global app tenancy)
executionContext.executeChild(this, new EstatioAdmin_Has_EstatioAdminRole());
executionContext.executeChild(this, new EstatioAdmin_Has_EstatioSuperuserRole());
executionContext.executeChild(this, new EstatioAdmin_Has_IsisSecurityModuleAdminRole());
executionContext.executeChild(this, new EstatioAdmin_Has_TogglzAdminRole());
executionContext.executeChild(this, new EstatioUser_Has_IsisSecurityModuleRegularRole());
// user/roles (users with country-specific app tenancy)
executionContext.executeChild(this, new EstatioUserInFrance_Has_IsisSecurityModuleRegularRole());
executionContext.executeChild(this, new EstatioUserInItaly_Has_IsisSecurityModuleRegularRole());
executionContext.executeChild(this, new EstatioUserInNetherlands_Has_IsisSecurityModuleRegularRole());
executionContext.executeChild(this, new EstatioUserInSweden_Has_IsisSecurityModuleRegularRole());
}
Aggregations