Package org.jboss.identity.idm.impl.configuration.jaxb2

Examples of org.jboss.identity.idm.impl.configuration.jaxb2.JAXB2IdentityConfiguration


      catch (JAXBException e)
      {
         throw new IdentityConfigurationException("Cannot unmarshal xml configuration: ", e);
      }

      JbossIdentityType identityConfig = jiElement.getValue();

      IdentityConfigurationMetaDataImpl configurationMD = new IdentityConfigurationMetaDataImpl();

      if (identityConfig.getStores() != null &&
         identityConfig.getStores().getIdentityStores() != null &&
         identityConfig.getStores().getIdentityStores().getIdentityStore() != null)
      {

         for (IdentityStoreType identityStoreType : identityConfig.getStores().getIdentityStores().getIdentityStore())
         {
            configurationMD.getIdentityStores().add(createIdentityStoreConfigurationMetaData(identityStoreType));
         }
      }

      if (identityConfig.getRepositories() != null &&
         identityConfig.getRepositories().getRepository() != null)
      {

         for (RepositoryType repositoryType : identityConfig.getRepositories().getRepository())
         {
            configurationMD.getRepositories().add(createIdentityRepositoryConfigurationMetaData(repositoryType));
         }
      }

      if (identityConfig.getRealms() != null &&
         identityConfig.getRealms().getRealm() != null)
      {
         for (RealmType realmType : identityConfig.getRealms().getRealm())
         {
            configurationMD.getRealms().add(createRealmConfigurationMetaData(realmType));
         }
      }
View Full Code Here


      catch (JAXBException e)
      {
         throw new IdentityConfigurationException("Cannot unmarshal xml configuration: ", e);
      }

      JbossIdentityType identityConfig = jiElement.getValue();

      IdentityConfigurationMetaDataImpl configurationMD = new IdentityConfigurationMetaDataImpl();

      if (identityConfig.getStores() != null &&
         identityConfig.getStores().getIdentityStores() != null &&
         identityConfig.getStores().getIdentityStores().getIdentityStore() != null)
      {

         for (IdentityStoreType identityStoreType : identityConfig.getStores().getIdentityStores().getIdentityStore())
         {
            configurationMD.getIdentityStores().add(createIdentityStoreConfigurationMetaData(identityStoreType));
         }
      }

      if (identityConfig.getRepositories() != null &&
         identityConfig.getRepositories().getRepository() != null)
      {

         for (RepositoryType repositoryType : identityConfig.getRepositories().getRepository())
         {
            configurationMD.getRepositories().add(createIdentityRepositoryConfigurationMetaData(repositoryType));
         }
      }

      if (identityConfig.getRealms() != null &&
         identityConfig.getRealms().getRealm() != null)
      {
         for (RealmType realmType : identityConfig.getRealms().getRealm())
         {
            configurationMD.getRealms().add(createRealmConfigurationMetaData(realmType));
         }
      }
View Full Code Here

      catch (JAXBException e)
      {
         throw new IdentityConfigurationException("Cannot unmarshal xml configuration: ", e);
      }

      JbossIdentityType identityConfig = jiElement.getValue();

      IdentityConfigurationMetaDataImpl configurationMD = new IdentityConfigurationMetaDataImpl();

      if (identityConfig.getStores() != null &&
         identityConfig.getStores().getIdentityStores() != null &&
         identityConfig.getStores().getIdentityStores().getIdentityStore() != null)
      {

         for (IdentityStoreType identityStoreType : identityConfig.getStores().getIdentityStores().getIdentityStore())
         {
            configurationMD.getIdentityStores().add(createIdentityStoreConfigurationMetaData(identityStoreType));
         }
      }

      if (identityConfig.getRepositories() != null &&
         identityConfig.getRepositories().getRepository() != null)
      {

         for (RepositoryType repositoryType : identityConfig.getRepositories().getRepository())
         {
            configurationMD.getRepositories().add(createIdentityRepositoryConfigurationMetaData(repositoryType));
         }
      }

      if (identityConfig.getRealms() != null &&
         identityConfig.getRealms().getRealm() != null)
      {
         for (RealmType realmType : identityConfig.getRealms().getRealm())
         {
            configurationMD.getRealms().add(createRealmConfigurationMetaData(realmType));
         }
      }
View Full Code Here

      catch (JAXBException e)
      {
         throw new IdentityConfigurationException("Cannot unmarshal xml configuration: ", e);
      }

      JbossIdentityType identityConfig = jiElement.getValue();

      IdentityConfigurationMetaDataImpl configurationMD = new IdentityConfigurationMetaDataImpl();

      if (identityConfig.getStores() != null &&
         identityConfig.getStores().getIdentityStores() != null &&
         identityConfig.getStores().getIdentityStores().getIdentityStore() != null)
      {

         for (IdentityStoreType identityStoreType : identityConfig.getStores().getIdentityStores().getIdentityStore())
         {
            configurationMD.getIdentityStores().add(createIdentityStoreConfigurationMetaData(identityStoreType));
         }
      }

      if (identityConfig.getRepositories() != null &&
         identityConfig.getRepositories().getRepository() != null)
      {

         for (RepositoryType repositoryType : identityConfig.getRepositories().getRepository())
         {
            configurationMD.getRepositories().add(createIdentityRepositoryConfigurationMetaData(repositoryType));
         }
      }

      if (identityConfig.getRealms() != null &&
         identityConfig.getRealms().getRealm() != null)
      {
         for (RealmType realmType : identityConfig.getRealms().getRealm())
         {
            configurationMD.getRealms().add(createRealmConfigurationMetaData(realmType));
         }
      }
View Full Code Here

TOP

Related Classes of org.jboss.identity.idm.impl.configuration.jaxb2.JAXB2IdentityConfiguration

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.