Package org.jboss.identity.idm.common.exception

Examples of org.jboss.identity.idm.common.exception.IdentityException


         {
            hibernateCredential.setBinaryValue((byte[])value);
         }
         else
         {
            throw new IdentityException("Not supported credential value: " + value.getClass());
         }

         hibernateSession.persist(hibernateCredential);

         hibernateObject.addCredential(hibernateCredential);

      }
      else
      {
         throw new IdentityException("CredentialType not supported for a given IdentityObjectType");
      }
   }
View Full Code Here


      {
         return ((Session)ctx.getIdentityStoreSession().getSessionContext());
      }
      catch (Exception e)
      {
         throw new IdentityException("Cannot obtain Hibernate Session", e);
      }
   }
View Full Code Here

      if (!getSupportedFeatures().isIdentityObjectTypeSupported(iot))
      {
         if (!isAllowNotDefinedIdentityObjectTypes())
         {
            throw new IdentityException("IdentityType not supported by this IdentityStore implementation: " + iot);
         }
      }
   }
View Full Code Here


      }
      catch (Exception e)
      {
         throw new IdentityException("IdentityObjectType[" + type.getName() + "] not present in the store.", e);
      }

      if (hibernateType == null)
      {
         throw new IdentityException("IdentityObjectType[" + type.getName() + "] not present in the store.");
      }
                                                            
      return hibernateType;
   }
View Full Code Here

            .setParameter("realm", getRealm(hibernateSession, ctx))
            .uniqueResult();
      }
      catch (Exception e)
      {
         throw new IdentityException("IdentityObject[ " + io.getName() + " | " + io.getIdentityType().getName() + "] not present in the store.", e);
      }

      return hibernateObject;
   }
View Full Code Here

            .setParameter("name", iot.getName())
            .uniqueResult();
      }
      catch (Exception e)
      {
         throw new IdentityException("IdentityObjectRelationshipType[ " + iot.getName() + "] not present in the store.");
      }

      return relationshipType;
   }
View Full Code Here

          hibernateType = (HibernateIdentityObjectCredentialType)session.
               createCriteria(HibernateIdentityObjectCredentialType.class).add(Restrictions.eq("name", credentialType.getName())).uniqueResult();
      }
      catch (HibernateException e)
      {
         throw new IdentityException("IdentityObjectCredentialType[ " + credentialType.getName() + "] not present in the store.");
      }

      return hibernateType;

   }
View Full Code Here


      }
      catch (Exception e)
      {
         throw new IdentityException("Failed to create store realm", e);
      }
   }
View Full Code Here

      {
         mapping = name;
         return mapping;
      }

      throw new IdentityException("Attribute name is not configured in this store");
   }
View Full Code Here

               IdentitySearchCriteriaImpl.applyCriteria(identitySession, convertSearchControls(criteria), identities);
            }
         }
         catch (Exception e)
         {
            throw new IdentityException("Failed to apply criteria", e);
         }

         return identities;
      }
View Full Code Here

TOP

Related Classes of org.jboss.identity.idm.common.exception.IdentityException

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.