Package org.jboss.identity.idm.api

Examples of org.jboss.identity.idm.api.IdentitySessionFactory


  protected String realmName;

  public Object construct(WireContext wireContext) {
 
    IdentitySessionFactory identitySessionFactory = Environment.getFromCurrent(IdentitySessionFactory.class);
    try {
      IdentitySession identitySession = identitySessionFactory.createIdentitySession(realmName);
     
      Environment environment = Environment.getCurrent();
        StandardTransaction transaction = environment.get(StandardTransaction.class);
        if (transaction != null) {
          IdentitySessionResource identitySessionResource = new IdentitySessionResource(identitySession);
View Full Code Here


  public Object construct(WireContext wireContext) {
    if (jndiName!=null) {
      try {
        InitialContext initialContext = new InitialContext();
        IdentitySessionFactory identitySessionFactory = (IdentitySessionFactory) initialContext.lookup(jndiName);
        return identitySessionFactory;
      } catch (Exception e) {
        throw new JbpmException("couldn't get idm session factory from jndi address "+jndiName, e);
      }
    }
View Full Code Here

  protected String realmName;

  public Object construct(WireContext wireContext) {
 
    IdentitySessionFactory identitySessionFactory = EnvironmentImpl.getFromCurrent(IdentitySessionFactory.class);
    try {
      IdentitySession identitySession = identitySessionFactory.createIdentitySession(realmName);
     
      EnvironmentImpl environment = EnvironmentImpl.getCurrent();
        StandardTransaction transaction = environment.get(StandardTransaction.class);
        if (transaction != null) {
          IdentitySessionResource identitySessionResource = new IdentitySessionResource(identitySession);
View Full Code Here

TOP

Related Classes of org.jboss.identity.idm.api.IdentitySessionFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.