Package org.picketlink.idm.impl.configuration.metadata

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


     
      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

Related Classes of org.picketlink.idm.impl.configuration.metadata.IdentityRepositoryConfigurationMetaDataImpl

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.