Package org.picketlink.idm.spi.model

Examples of org.picketlink.idm.spi.model.IdentityObject


                //    actionProperty.getValue(permission).toString());
            }

            if (resource != null && (action == null || (actionSet != null && actionSet.contains(action)))) {
                // FIXME
                IdentityObject identity = null; //lookupPrincipal(principalCache, permission);

                if (action != null) {
                    permissions.add(new Permission(resource, action, identity));
                } else {
                    for (String a : actionSet.members()) {
View Full Code Here


            if (event != null) {
                event.fire(new IdentityObjectCreatedEvent(identityInstance));
            }

            Object id = modelProperties.get(PROPERTY_IDENTITY_ID).getValue(identityInstance);
            IdentityObject obj = new SimpleIdentityObject(name, (id != null ? id.toString() : null),
                    identityObjectType);

            if (attributes != null) {
                List<IdentityObjectAttribute> attribs = new ArrayList<IdentityObjectAttribute>();
                for (String key : attributes.keySet()) {
View Full Code Here

            }

            if (cache.containsKey(entity)) {
                return (IdentityObject) cache.get(entity);
            } else {
                IdentityObject obj = new SimpleIdentityObject(
                        identityNameProperty.getValue(entity).toString(),
                        identityIdProperty.getValue(entity).toString(),                       
                        convertToIdentityObjectType(identityTypeProperty.getValue(entity)));
                cache.put(entity, obj);
View Full Code Here

         }
        
         if (resource != null && (action == null || (actionSet != null && actionSet.contains(action))))
         {           
            // FIXME
            IdentityObject identity = null; //lookupPrincipal(principalCache, permission);
           
            if (action != null)
            {
               permissions.add(new Permission(resource, action, identity));
            }
View Full Code Here

  
   @Override
   public boolean equals(Object value)
   {
      if (!(value instanceof IdentityObject)) return false;
      IdentityObject other = (IdentityObject) value;
     
      return (id != null ? id.equals(other.getId()) : other.getId() == null) &&
             name.equals(other.getName()) &&
             type.equals(other.getIdentityType());
   }
View Full Code Here

         EntityManager em = getEntityManager(ctx);
        
         em.persist(identityInstance);
        
         Object id = modelProperties.get(PROPERTY_IDENTITY_ID).getValue(identityInstance);
         IdentityObject obj = new IdentityObjectImpl(
               (id != null ? id.toString() : null),
               name, identityObjectType);
        
         if (attributes != null)
         {
View Full Code Here

         {
            return (IdentityObject) cache.get(entity);
         }
         else
         {        
            IdentityObject obj = new IdentityObjectImpl(
               identityIdProperty.getValue(entity).toString(),
               identityNameProperty.getValue(entity).toString(),
               convertToIdentityObjectType(identityTypeProperty.getValue(entity)));
            cache.put(entity, obj);
           
View Full Code Here

TOP

Related Classes of org.picketlink.idm.spi.model.IdentityObject

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.