Examples of RealmConfigurationMetaDataImpl


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

   }

   private static RealmConfigurationMetaData createRealmConfigurationMetaData(RealmType realmType)
   {
      RealmConfigurationMetaDataImpl realmMD = new RealmConfigurationMetaDataImpl();

      realmMD.setId(realmType.getId());
      if (realmType.getIdentityTypeMappings() != null)
      {
         realmMD.setIdentityMapping(realmType.getIdentityTypeMappings().getIdentityMapping());
      }
      realmMD.setIdentityRepositoryIdRef(realmType.getRepositoryIdRef());

      Map<String, String> groupMappings = new HashMap<String, String>();

      if (realmType.getIdentityTypeMappings() != null
         && realmType.getIdentityTypeMappings().getGroupTypeMapping() != null)
      {
         for (GroupTypeMappingType groupTypeMappingType : realmType.getIdentityTypeMappings().getGroupTypeMapping())
         {
            groupMappings.put(groupTypeMappingType.getGroupTypeName(), groupTypeMappingType.getIdentityObjectTypeName());
         }
      }

      realmMD.setGroupTypeMappings(groupMappings);

      realmMD.setOptions(createOptions(realmType.getOptions()));


      return realmMD;
   }
View Full Code Here

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

   }

   private static RealmConfigurationMetaData createRealmConfigurationMetaData(RealmType realmType)
   {
      RealmConfigurationMetaDataImpl realmMD = new RealmConfigurationMetaDataImpl();

      realmMD.setId(realmType.getId());
      if (realmType.getIdentityTypeMappings() != null)
      {
         realmMD.setIdentityMapping(realmType.getIdentityTypeMappings().getIdentityMapping());
      }
      realmMD.setIdentityRepositoryIdRef(realmType.getRepositoryIdRef());

      Map<String, String> groupMappings = new HashMap<String, String>();

      if (realmType.getIdentityTypeMappings() != null
         && realmType.getIdentityTypeMappings().getGroupTypeMapping() != null)
      {
         for (GroupTypeMappingType groupTypeMappingType : realmType.getIdentityTypeMappings().getGroupTypeMapping())
         {
            groupMappings.put(groupTypeMappingType.getGroupTypeName(), groupTypeMappingType.getIdentityObjectTypeName());
         }
      }

      realmMD.setGroupTypeMappings(groupMappings);

      realmMD.setOptions(createOptions(realmType.getOptions()));


      return realmMD;
   }
View Full Code Here

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

   }

   private static RealmConfigurationMetaData createRealmConfigurationMetaData(RealmType realmType)
   {
      RealmConfigurationMetaDataImpl realmMD = new RealmConfigurationMetaDataImpl();

      realmMD.setId(realmType.getId());
      if (realmType.getIdentityTypeMappings() != null)
      {
         realmMD.setIdentityMapping(realmType.getIdentityTypeMappings().getIdentityMapping());
      }
      realmMD.setIdentityRepositoryIdRef(realmType.getRepositoryIdRef());

      Map<String, String> groupMappings = new HashMap<String, String>();

      if (realmType.getIdentityTypeMappings() != null
         && realmType.getIdentityTypeMappings().getGroupTypeMapping() != null)
      {
         for (GroupTypeMappingType groupTypeMappingType : realmType.getIdentityTypeMappings().getGroupTypeMapping())
         {
            groupMappings.put(groupTypeMappingType.getGroupTypeName(), groupTypeMappingType.getIdentityObjectTypeName());
         }
      }

      realmMD.setGroupTypeMappings(groupMappings);

      realmMD.setOptions(createOptions(realmType.getOptions()));


      return realmMD;
   }
View Full Code Here

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

   }

   private static RealmConfigurationMetaData createRealmConfigurationMetaData(RealmType realmType)
   {
      RealmConfigurationMetaDataImpl realmMD = new RealmConfigurationMetaDataImpl();

      realmMD.setId(realmType.getId());
      if (realmType.getIdentityTypeMappings() != null)
      {
         realmMD.setIdentityMapping(realmType.getIdentityTypeMappings().getIdentityMapping());
      }
      realmMD.setIdentityRepositoryIdRef(realmType.getRepositoryIdRef());

      Map<String, String> groupMappings = new HashMap<String, String>();

      if (realmType.getIdentityTypeMappings() != null
         && realmType.getIdentityTypeMappings().getGroupTypeMapping() != null)
      {
         for (GroupTypeMappingType groupTypeMappingType : realmType.getIdentityTypeMappings().getGroupTypeMapping())
         {
            groupMappings.put(groupTypeMappingType.getGroupTypeName(), groupTypeMappingType.getIdentityObjectTypeName());
         }
      }

      realmMD.setGroupTypeMappings(groupMappings);

      realmMD.setOptions(createOptions(realmType.getOptions()));


      return realmMD;
   }
View Full Code Here

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

        }

        ((IdentityConfigurationMetaDataImpl) metadata).setIdentityStores(stores);

        // Create the default realm
        RealmConfigurationMetaDataImpl realm = new RealmConfigurationMetaDataImpl();
        realm.setId(getDefaultRealm());
        realm.setIdentityMapping("USER");
        //realm.setGroupTypeMappings(groupTypeMappings)
        realm.setOptions(new HashMap<String, List<String>>());
        List<RealmConfigurationMetaData> realms = new ArrayList<RealmConfigurationMetaData>();
        realms.add(realm);
        ((IdentityConfigurationMetaDataImpl) metadata).setRealms(realms);

        if (stores.size() > 0) {
View Full Code Here

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

      }    
     
      metadata.setIdentityStores(stores);
     
      // Create the default realm
      RealmConfigurationMetaDataImpl realm = new RealmConfigurationMetaDataImpl();
      realm.setId(getDefaultRealm());
      realm.setIdentityMapping("USER");
      //realm.setGroupTypeMappings(groupTypeMappings)
      realm.setOptions(new HashMap<String,List<String>>());
      List<RealmConfigurationMetaData> realms = new ArrayList<RealmConfigurationMetaData>();     
      realms.add(realm);
      metadata.setRealms(realms);
     
      if (stores.size() > 0)
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.