Examples of IdentityRepositoryConfigurationMetaDataImpl


Examples of org.jboss.identity.idm.impl.configuration.metadata.IdentityRepositoryConfigurationMetaDataImpl

   }


   private static IdentityRepositoryConfigurationMetaData createIdentityRepositoryConfigurationMetaData(RepositoryType repositoryType)
   {
      IdentityRepositoryConfigurationMetaDataImpl repoMD = new IdentityRepositoryConfigurationMetaDataImpl();

      repoMD.setId(repositoryType.getId());
      repoMD.setClassName(repositoryType.getClazz());
      if (repositoryType.getExternalConfig() != null)
      {
         repoMD.setExternalConfig(repositoryType.getExternalConfig().getValue());
      }
      repoMD.setDefaultAttributeStroeId(repositoryType.getDefaultAttributeStoreId());
      repoMD.setDefaultIdentityStoreId(repositoryType.getDefaultIdentityStoreId());

      List<IdentityStoreMappingMetaData> storeMappings = new LinkedList<IdentityStoreMappingMetaData>();

      if (repositoryType.getIdentityStoreMappings() != null &&
         repositoryType.getIdentityStoreMappings().getIdentityStoreMapping() != null)
      {

         for (IdentityStoreMappingType identityStoreMappingType : repositoryType.getIdentityStoreMappings().getIdentityStoreMapping())
         {
            IdentityStoreMappingMetaDataImpl mapping = new IdentityStoreMappingMetaDataImpl();

            mapping.setIdentityStoreId(identityStoreMappingType.getIdentityStoreId());
            mapping.setIdentityObjectTypeMappings(identityStoreMappingType.getIdentityObjectTypes().getIdentityObjectType());
            mapping.setOptions(createOptions(identityStoreMappingType.getOptions()));

            storeMappings.add(mapping);
         }
      }

      repoMD.setIdentityStoreToIdentityObjectTypeMappings(storeMappings);

      repoMD.setOptions(createOptions(repositoryType.getOptions()));


      return repoMD;
   }
View Full Code Here

Examples of org.jboss.identity.idm.impl.configuration.metadata.IdentityRepositoryConfigurationMetaDataImpl

   }


   private static IdentityRepositoryConfigurationMetaData createIdentityRepositoryConfigurationMetaData(RepositoryType repositoryType)
   {
      IdentityRepositoryConfigurationMetaDataImpl repoMD = new IdentityRepositoryConfigurationMetaDataImpl();

      repoMD.setId(repositoryType.getId());
      repoMD.setClassName(repositoryType.getClazz());
      if (repositoryType.getExternalConfig() != null)
      {
         repoMD.setExternalConfig(repositoryType.getExternalConfig().getValue());
      }
      repoMD.setDefaultAttributeStroeId(repositoryType.getDefaultAttributeStoreId());
      repoMD.setDefaultIdentityStoreId(repositoryType.getDefaultIdentityStoreId());

      List<IdentityStoreMappingMetaData> storeMappings = new LinkedList<IdentityStoreMappingMetaData>();

      if (repositoryType.getIdentityStoreMappings() != null &&
         repositoryType.getIdentityStoreMappings().getIdentityStoreMapping() != null)
      {

         for (IdentityStoreMappingType identityStoreMappingType : repositoryType.getIdentityStoreMappings().getIdentityStoreMapping())
         {
            IdentityStoreMappingMetaDataImpl mapping = new IdentityStoreMappingMetaDataImpl();

            mapping.setIdentityStoreId(identityStoreMappingType.getIdentityStoreId());
            mapping.setIdentityObjectTypeMappings(identityStoreMappingType.getIdentityObjectTypes().getIdentityObjectType());
            mapping.setOptions(createOptions(identityStoreMappingType.getOptions()));

            storeMappings.add(mapping);
         }
      }

      repoMD.setIdentityStoreToIdentityObjectTypeMappings(storeMappings);

      repoMD.setOptions(createOptions(repositoryType.getOptions()));


      return repoMD;
   }
View Full Code Here

Examples of org.jboss.identity.idm.impl.configuration.metadata.IdentityRepositoryConfigurationMetaDataImpl

   }


   private static IdentityRepositoryConfigurationMetaData createIdentityRepositoryConfigurationMetaData(RepositoryType repositoryType)
   {
      IdentityRepositoryConfigurationMetaDataImpl repoMD = new IdentityRepositoryConfigurationMetaDataImpl();

      repoMD.setId(repositoryType.getId());
      repoMD.setClassName(repositoryType.getClazz());
      if (repositoryType.getExternalConfig() != null)
      {
         repoMD.setExternalConfig(repositoryType.getExternalConfig().getValue());
      }
      repoMD.setDefaultAttributeStroeId(repositoryType.getDefaultAttributeStoreId());
      repoMD.setDefaultIdentityStoreId(repositoryType.getDefaultIdentityStoreId());

      List<IdentityStoreMappingMetaData> storeMappings = new LinkedList<IdentityStoreMappingMetaData>();

      if (repositoryType.getIdentityStoreMappings() != null &&
         repositoryType.getIdentityStoreMappings().getIdentityStoreMapping() != null)
      {

         for (IdentityStoreMappingType identityStoreMappingType : repositoryType.getIdentityStoreMappings().getIdentityStoreMapping())
         {
            IdentityStoreMappingMetaDataImpl mapping = new IdentityStoreMappingMetaDataImpl();

            mapping.setIdentityStoreId(identityStoreMappingType.getIdentityStoreId());
            mapping.setIdentityObjectTypeMappings(identityStoreMappingType.getIdentityObjectTypes().getIdentityObjectType());
            mapping.setOptions(createOptions(identityStoreMappingType.getOptions()));

            storeMappings.add(mapping);
         }
      }

      repoMD.setIdentityStoreToIdentityObjectTypeMappings(storeMappings);

      repoMD.setOptions(createOptions(repositoryType.getOptions()));


      return repoMD;
   }
View Full Code Here

Examples of org.jboss.identity.idm.impl.configuration.metadata.IdentityRepositoryConfigurationMetaDataImpl

   }


   private static IdentityRepositoryConfigurationMetaData createIdentityRepositoryConfigurationMetaData(RepositoryType repositoryType)
   {
      IdentityRepositoryConfigurationMetaDataImpl repoMD = new IdentityRepositoryConfigurationMetaDataImpl();

      repoMD.setId(repositoryType.getId());
      repoMD.setClassName(repositoryType.getClazz());
      if (repositoryType.getExternalConfig() != null)
      {
         repoMD.setExternalConfig(repositoryType.getExternalConfig().getValue());
      }
      repoMD.setDefaultAttributeStroeId(repositoryType.getDefaultAttributeStoreId());
      repoMD.setDefaultIdentityStoreId(repositoryType.getDefaultIdentityStoreId());

      List<IdentityStoreMappingMetaData> storeMappings = new LinkedList<IdentityStoreMappingMetaData>();

      if (repositoryType.getIdentityStoreMappings() != null &&
         repositoryType.getIdentityStoreMappings().getIdentityStoreMapping() != null)
      {

         for (IdentityStoreMappingType identityStoreMappingType : repositoryType.getIdentityStoreMappings().getIdentityStoreMapping())
         {
            IdentityStoreMappingMetaDataImpl mapping = new IdentityStoreMappingMetaDataImpl();

            mapping.setIdentityStoreId(identityStoreMappingType.getIdentityStoreId());
            mapping.setIdentityObjectTypeMappings(identityStoreMappingType.getIdentityObjectTypes().getIdentityObjectType());
            mapping.setOptions(createOptions(identityStoreMappingType.getOptions()));

            storeMappings.add(mapping);
         }
      }

      repoMD.setIdentityStoreToIdentityObjectTypeMappings(storeMappings);

      repoMD.setOptions(createOptions(repositoryType.getOptions()));


      return repoMD;
   }
View Full Code Here

Examples of org.picketlink.idm.impl.configuration.metadata.IdentityRepositoryConfigurationMetaDataImpl

        ((IdentityConfigurationMetaDataImpl) metadata).setRealms(realms);

        if (stores.size() > 0) {
            List<IdentityRepositoryConfigurationMetaData> repositories = new ArrayList<IdentityRepositoryConfigurationMetaData>();

            IdentityRepositoryConfigurationMetaDataImpl repository = new IdentityRepositoryConfigurationMetaDataImpl();
            repository.setClassName(WrapperIdentityStoreRepository.class.getName());
            repository.setDefaultAttributeStoreId(defaultAttributeStoreId != null ? defaultAttributeStoreId : defaultStoreId);
            repository.setDefaultIdentityStoreId(defaultIdentityStoreId != null ? defaultIdentityStoreId : defaultStoreId);

            List<IdentityStoreMappingMetaData> mappings = new ArrayList<IdentityStoreMappingMetaData>();

            IdentityStoreMappingMetaDataImpl mapping = new IdentityStoreMappingMetaDataImpl();
            List<String> identityObjectTypes = new ArrayList<String>();
            identityObjectTypes.add("USER");
            identityObjectTypes.add("GROUP");
            mapping.setIdentityObjectTypeMappings(identityObjectTypes);
            mapping.setIdentityStoreId(defaultIdentityStoreId != null ? defaultIdentityStoreId : defaultStoreId);
            mappings.add(mapping);

            repository.setIdentityStoreToIdentityObjectTypeMappings(mappings);

            repositories.add(repository);
            ((IdentityConfigurationMetaDataImpl) metadata).setRepositories(repositories);
           
            configured = true;
View Full Code Here

Examples of org.picketlink.idm.impl.configuration.metadata.IdentityRepositoryConfigurationMetaDataImpl

     
      if (stores.size() > 0)
      {
         List<IdentityRepositoryConfigurationMetaData> repositories = new ArrayList<IdentityRepositoryConfigurationMetaData>();
        
         IdentityRepositoryConfigurationMetaDataImpl repository = new IdentityRepositoryConfigurationMetaDataImpl();
         repository.setClassName(WrapperIdentityStoreRepository.class.getName());
         repository.setDefaultAttributeStoreId(defaultAttributeStoreId != null ? defaultAttributeStoreId : defaultStoreId);
         repository.setDefaultIdentityStoreId(defaultIdentityStoreId != null ? defaultIdentityStoreId : defaultStoreId);
        
         List<IdentityStoreMappingMetaData> mappings = new ArrayList<IdentityStoreMappingMetaData>();
        
         IdentityStoreMappingMetaDataImpl mapping = new IdentityStoreMappingMetaDataImpl();
         List<String> identityObjectTypes = new ArrayList<String>();
         identityObjectTypes.add("USER");
         identityObjectTypes.add("GROUP");
         mapping.setIdentityObjectTypeMappings(identityObjectTypes);
         mapping.setIdentityStoreId(defaultIdentityStoreId != null ? defaultIdentityStoreId : defaultStoreId);
         mappings.add(mapping);
        
         repository.setIdentityStoreToIdentityObjectTypeMappings(mappings);
             
         repositories.add(repository);
         metadata.setRepositories(repositories);
      }
           
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.