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

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


   }

   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

   }

   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

   }

   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

TOP

Related Classes of org.jboss.identity.idm.impl.configuration.metadata.RealmConfigurationMetaDataImpl

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.