Examples of IdentityObjectType


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

   protected IdentityObject createIdentityObjectForGroupId(String groupId)
   {
      GroupId id = new GroupId(groupId);

      IdentityObjectType iot = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType(id.getType());

      return new SimpleIdentityObject(id.getName(), null, iot);
   }
View Full Code Here

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

      checkNotNullArgument(identity, "User");
      checkNotNullArgument(groupType, "Group type");

      List<Group> identities = new LinkedList<Group>();

      IdentityObjectType iot = getIdentityObjectType(groupType);

      Collection<IdentityObject> ios = null;

      ios = getRepository().findIdentityObject(getInvocationContext(), createIdentityObject(identity), ROLE, false, convertSearchControls(controls));

      for (IdentityObject io : ios)
      {
         if (io.getIdentityType().getName().equals(iot.getName()))
         {
            identities.add(createGroup(io));
         }
      }
View Full Code Here

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

      featuresDescription = new PersistenceManagerFeaturesDescription()
      {
         public boolean isUsersAddRemoveSupported()
         {
            IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType();

            return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
               isIdentityObjectAddRemoveSupported(objectType);
         }

         public boolean isGroupsAddRemoveSupported(String groupType)
         {
            IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType(groupType);

            return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
               isIdentityObjectAddRemoveSupported(objectType);
         }

         public boolean isUsersSearchControlSupported(IdentitySearchControl control)
         {
            IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType();

            if (control instanceof IdentityObjectSearchControl)
            {
               return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
                  isControlSupported(objectType, (IdentityObjectSearchControl)control);
            }

            return false;
         }


         public boolean isUsersSearchControlSupported(Class controlClazz)
         {
            IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType();

            return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
               isControlSupported(objectType, controlClazz);

         }

         public boolean isGroupsSearchControlSupported(String groupType, IdentitySearchControl control)
         {
            IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType(groupType);

            if (control instanceof IdentityObjectSearchControl)
            {
               return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
                  isControlSupported(objectType, (IdentityObjectSearchControl)control);
            }

            return false;
         }

         public boolean isGroupsSearchControlSupported(String groupType, Class controlClazz)
         {
            IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType(groupType);

            return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
               isControlSupported(objectType, controlClazz);
         }
      };
View Full Code Here

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

   public User createUser(String identityName) throws IdentityException
   {
      checkNotNullArgument(identityName, "Identity name");
      checkObjectName(identityName);

      IdentityObjectType iot = getUserObjectType();

      IdentityObject identityObject = getRepository().createIdentityObject(getInvocationContext(), identityName, iot);

      return createUser(identityObject);
   }
View Full Code Here

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

    }

    @Override
    public boolean equals(Object value) {
        if (!(value instanceof IdentityObjectType)) return false;
        IdentityObjectType other = (IdentityObjectType) value;
        return name.equals(other.getName());
    }
View Full Code Here

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

                    modelProperties.get(PROPERTY_IDENTITY_ID).getName() +
                    " = :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());
View Full Code Here

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

            ascending = criteria.isAscending();
        }

        StringBuilder queryString = new StringBuilder();

        IdentityObjectType identityType = identity.getIdentityType();

        Object identType = modelProperties.containsKey(PROPERTY_IDENTITY_TYPE_NAME) ? lookupIdentityType(
                identityType.getName(), getEntityManager(invocationCxt)) : identityType.getName();

        final String identEntityAnnotationValue = identityClass.getAnnotation(Entity.class).name();
        final String identEntityName = ("".equals(identEntityAnnotationValue) ? identityClass.getSimpleName() : identEntityAnnotationValue);

        Object ident = getEntityManager(invocationCxt).createQuery(
View Full Code Here

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

        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

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

  
   @Override
   public boolean equals(Object value)
   {
      if (!(value instanceof IdentityObjectType)) return false;
      IdentityObjectType other = (IdentityObjectType) value;
      return name.equals(other.getName());
   }
View Full Code Here

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

              modelProperties.get(PROPERTY_IDENTITY_ID).getName() +
              " = :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());
       
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.