Examples of IdentityObject


Examples of org.jboss.identity.idm.spi.model.IdentityObject

   public IdentityObject createIdentityObject(IdentityStoreInvocationContext invocationCtx,
                                              String name,
                                              IdentityObjectType identityObjectType) throws IdentityException
   {
      IdentityObject io = identityStore.createIdentityObject(invocationCtx, name, identityObjectType);

      if (io != null)
      {
         //should also invalidate IO searches cache - searches/type - clear all children
         invalidateCachedIdentityObjectSearches(io);
View Full Code Here

Examples of org.jboss.identity.idm.spi.model.IdentityObject

   public IdentityObject createIdentityObject(IdentityStoreInvocationContext invocationCtx,
                                              String name,
                                              IdentityObjectType identityObjectType,
                                              Map<String, String[]> attributes) throws IdentityException
   {
      IdentityObject io = identityStore.createIdentityObject(invocationCtx, name, identityObjectType, attributes);



      if (io != null)
      {
View Full Code Here

Examples of org.jboss.identity.idm.spi.model.IdentityObject

   public IdentityObject findIdentityObject(IdentityStoreInvocationContext invocationContext,
                                            String name,
                                            IdentityObjectType identityObjectType) throws IdentityException
   {
      IdentityObject io = getFromCache(name, identityObjectType);

      if (io == null)
      {
         io = identityStore.findIdentityObject(invocationContext, name, identityObjectType);
         putIntoCache(io);
View Full Code Here

Examples of org.jboss.identity.idm.spi.model.IdentityObject

   }

   public IdentityObject findIdentityObject(IdentityStoreInvocationContext invocationContext,
                                            String id) throws IdentityException
   {
      IdentityObject io = getFromCache(id);

      if (io == null)
      {
         io = identityStore.findIdentityObject(invocationContext, id);
         putIntoCache(io);
View Full Code Here

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

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

            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

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

            }

            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

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

         }
        
         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

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

  
   @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

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

         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
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.