Package org.jboss.seam.security.management

Examples of org.jboss.seam.security.management.IdentityObjectTypeImpl


                    " = :id")
                    .setParameter("id", id)
                    .getSingleResult();

            IdentityObjectType type = modelProperties.containsKey(PROPERTY_IDENTITY_TYPE_NAME) ?
                    new IdentityObjectTypeImpl(
                            modelProperties.get(PROPERTY_IDENTITY_TYPE_NAME).getValue(
                                    modelProperties.get(PROPERTY_IDENTITY_TYPE).getValue(identity)).toString()) :
                    new IdentityObjectTypeImpl(modelProperties.get(PROPERTY_IDENTITY_TYPE).getValue(identity).toString());


            return new SimpleIdentityObject(                   
                    modelProperties.get(PROPERTY_IDENTITY_NAME).getValue(identity).toString(),
                    modelProperties.get(PROPERTY_IDENTITY_ID).getValue(identity).toString(),
View Full Code Here


        public IdentityObjectType convertToIdentityObjectType(Object value) {
            if (value instanceof String) {
                String key = IDENTITY_TYPE_CACHE_PREFIX + (String) value;
                if (cache.containsKey(key)) return (IdentityObjectType) cache.get(key);

                IdentityObjectType type = new IdentityObjectTypeImpl((String) value);
                cache.put(key, type);
                return type;
            } else {
                if (cache.containsKey(value)) return (IdentityObjectType) cache.get(value);
                IdentityObjectType type = new IdentityObjectTypeImpl(
                        (String) identityTypeNameProperty.getValue(value));
                cache.put(value, type);
                return type;
            }
        }
View Full Code Here

              " = :id")
              .setParameter("id", id)
              .getSingleResult();
       
        IdentityObjectType type = modelProperties.containsKey(PROPERTY_IDENTITY_TYPE_NAME) ?
              new IdentityObjectTypeImpl(
                    modelProperties.get(PROPERTY_IDENTITY_TYPE_NAME).getValue(
                          modelProperties.get(PROPERTY_IDENTITY_TYPE).getValue(identity)).toString()) :
              new IdentityObjectTypeImpl(modelProperties.get(PROPERTY_IDENTITY_TYPE).getValue(identity).toString());
       
       
        return new IdentityObjectImpl(
                  modelProperties.get(PROPERTY_IDENTITY_ID).getValue(identity).toString(),
                  modelProperties.get(PROPERTY_IDENTITY_NAME).getValue(identity).toString(),
View Full Code Here

         if (value instanceof String)
         {
            String key = IDENTITY_TYPE_CACHE_PREFIX + (String) value;
            if (cache.containsKey(key)) return (IdentityObjectType) cache.get(key);
           
            IdentityObjectType type = new IdentityObjectTypeImpl((String) value);
            cache.put(key, type);
            return type;
         }
         else
         {
            if (cache.containsKey(value)) return (IdentityObjectType) cache.get(value);
            IdentityObjectType type = new IdentityObjectTypeImpl(
                  (String) identityTypeNameProperty.getValue(value));
            cache.put(value, type);
            return type;
         }
      }
View Full Code Here

TOP

Related Classes of org.jboss.seam.security.management.IdentityObjectTypeImpl

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.