use of org.picketlink.idm.internal.DefaultPartitionManager in project wildfly by wildfly.
the class PartitionManagerService method start.
@Override
public void start(StartContext context) throws StartException {
ROOT_LOGGER.debugf("Starting PartitionManagerService for [%s]", this.alias);
this.partitionManager = new DefaultPartitionManager(this.configurationBuilder.buildAll());
publishPartitionManager(context);
}
use of org.picketlink.idm.internal.DefaultPartitionManager in project rubia-forums by flashboss.
the class JBossUserModule method init.
@PostConstruct
public void init() {
if (identityManager == null) {
IdentityConfigurationBuilder builder = new IdentityConfigurationBuilder();
builder.named("file-store-preserve-state").stores().file().preserveState(true).supportAllFeatures();
PartitionManager partitionManager = new DefaultPartitionManager(builder.buildAll());
Realm realm = partitionManager.getPartition(Realm.class, "forums-realm");
if (realm == null) {
realm = new Realm("forums-realm");
partitionManager.add(realm);
}
identityManager = partitionManager.createIdentityManager(realm);
insertUser("root");
insertUser("mary");
insertUser("john");
insertUser("demo");
}
}
use of org.picketlink.idm.internal.DefaultPartitionManager in project rubia-forums by flashboss.
the class JBossUserModule method init.
@PostConstruct
public void init() {
if (identityManager == null) {
IdentityConfigurationBuilder builder = new IdentityConfigurationBuilder();
builder.named("file-store-preserve-state").stores().file().preserveState(true).supportAllFeatures();
PartitionManager partitionManager = new DefaultPartitionManager(builder.buildAll());
Realm realm = partitionManager.getPartition(Realm.class, "forums-realm");
if (realm == null) {
realm = new Realm("forums-realm");
partitionManager.add(realm);
}
identityManager = partitionManager.createIdentityManager(realm);
insertUser("root");
insertUser("mary");
insertUser("john");
insertUser("demo");
}
}
use of org.picketlink.idm.internal.DefaultPartitionManager in project rubia-forums by flashboss.
the class JBossUserModule method init.
@PostConstruct
public void init() {
if (identityManager == null) {
IdentityConfigurationBuilder builder = new IdentityConfigurationBuilder();
builder.named("file-store-preserve-state").stores().file().preserveState(true).supportAllFeatures();
PartitionManager partitionManager = new DefaultPartitionManager(builder.buildAll());
Realm realm = partitionManager.getPartition(Realm.class, "forums-realm");
if (realm == null) {
realm = new Realm("forums-realm");
partitionManager.add(realm);
}
identityManager = partitionManager.createIdentityManager(realm);
insertUser("root");
insertUser("mary");
insertUser("john");
insertUser("demo");
}
}
use of org.picketlink.idm.internal.DefaultPartitionManager in project rubia-forums by flashboss.
the class JBossUserModule method init.
@PostConstruct
public void init() {
if (identityManager == null) {
IdentityConfigurationBuilder builder = new IdentityConfigurationBuilder();
builder.named("file-store-preserve-state").stores().file().preserveState(true).supportAllFeatures();
PartitionManager partitionManager = new DefaultPartitionManager(builder.buildAll());
Realm realm = partitionManager.getPartition(Realm.class, "forums-realm");
if (realm == null) {
realm = new Realm("forums-realm");
partitionManager.add(realm);
}
identityManager = partitionManager.createIdentityManager(realm);
insertUser("root");
insertUser("mary");
insertUser("john");
insertUser("demo");
}
}
Aggregations