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

Examples of org.jboss.identity.idm.impl.configuration.jaxb2.generated.ObjectFactory


         * for the marshaller. So, we create our POJO as normal but thenuse our
         * factory to give us a JAXBElement from our POJO - at least for the
         * top-level object.
         */
        {
            ObjectFactory f = new ObjectFactory();
            generatedCompany = f.createCompany();
            generated.Organisation generatedOrg = f.createOrganisation();
            generatedOrg.setName(customCompany.getOrganisations().get(0).getName());
            generatedCompany.getOrganisations().getOrg().add(generatedOrg);
//            genOrg.setName(org.getName());
            // Get JAXBElement representation and use that...
            //jaxbOrg = f.createOrganisation(genOrg);
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

      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.generated.ObjectFactory

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.