Examples of IdentityObjectType


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

            throw new IdentityException("identity id cannot be null");
         }

         String dn = id;

         IdentityObjectType type = null;

         //Recognize the type by ctx DN

         IdentityObjectType[] possibleTypes = getConfiguration(ctx).getConfiguredTypes();
View Full Code Here

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

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

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

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

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

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

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

            return false;
         }


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

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

         }

         public boolean isGroupsSearchControlSupported(GroupType 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(GroupType 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

      return featuresDescription;
   }

   public Identity createIdentity(String identityName) throws IdentityException
   {
      IdentityObjectType iot = getIdentityObjectType();

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

      return createIdentity(identityObject);
   }
View Full Code Here

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

      return createIdentity(identityObject);
   }

   public Group createGroup(String groupName, GroupType groupType) throws IdentityException
   {
      IdentityObjectType iot = getIdentityObjectType(groupType);

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

      return createGroup(identityObject);
   }
View Full Code Here

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

      return createGroup(identityObject);
   }

   public void removeIdentity(Identity identity, boolean force) throws IdentityException
   {
      IdentityObjectType iot = getIdentityObjectType();

      getRepository().removeIdentityObject(getInvocationContext(), createIdentityObject(identity));
     
   }
View Full Code Here

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

      getRepository().removeIdentityObject(getInvocationContext(), createIdentityObject(group));
   }

   public int getIdentityCount() throws IdentityException
   {
      IdentityObjectType iot = getIdentityObjectType();

      return getRepository().getIdentityObjectsCount(getInvocationContext(), iot);
   }
View Full Code Here

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

      return getRepository().getIdentityObjectsCount(getInvocationContext(), iot);
   }

   public int getGroupTypeCount(GroupType groupType) throws IdentityException
   {
      IdentityObjectType iot = getIdentityObjectType(groupType);

      return getRepository().getIdentityObjectsCount(getInvocationContext(), iot);
   }
View Full Code Here

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

      }
   }

   protected IdentityObject createIdentityObject(User identity)
   {
      IdentityObjectType iot = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType();

      return new SimpleIdentityObject(identity.getId(), iot);
   }
View Full Code Here

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

      return new SimpleIdentityObject(identity.getId(), iot);
   }

   protected IdentityObject createIdentityObjectForUserName(String userName)
   {
      IdentityObjectType iot = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType();

      return new SimpleIdentityObject(userName, iot);
   }
View Full Code Here

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

      return new SimpleIdentityObject(userName, iot);
   }

   protected IdentityObject createIdentityObject(Group group)
   {
      IdentityObjectType iot = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType(group.getGroupType());

      return new SimpleIdentityObject(group.getName(), group.getId(), iot);
   }
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.