Package org.jboss.seam.security.management

Examples of org.jboss.seam.security.management.IdentityObjectRelationshipImpl


                    relationshipName);

            em.persist(relationship);
            em.flush();

            return new IdentityObjectRelationshipImpl(fromIdentity, toIdentity,
                    relationshipName, relationshipType);
        } catch (Exception ex) {
            throw new IdentityException("Exception creating relationship", ex);
        }
    }
View Full Code Here


        List<?> results = em.createQuery(criteria).getResultList();

        EntityToSpiConverter converter = new EntityToSpiConverter();

        for (Object result : results) {
            IdentityObjectRelationship relationship = new IdentityObjectRelationshipImpl(
                    converter.convertToIdentityObject(relationshipFromProp.getValue(result)),
                    converter.convertToIdentityObject(relationshipToProp.getValue(result)),
                    (String) relationshipNameProp.getValue(result),
                    converter.convertToRelationshipType(relationshipTypeProp.getValue(result))
            );
View Full Code Here

        List<?> results = em.createQuery(criteria).getResultList();

        EntityToSpiConverter converter = new EntityToSpiConverter();

        for (Object result : results) {
            IdentityObjectRelationship relationship = new IdentityObjectRelationshipImpl(
                    converter.convertToIdentityObject(relationshipFromProp.getValue(result)),
                    converter.convertToIdentityObject(relationshipToProp.getValue(result)),
                    (String) relationshipNameProp.getValue(result),
                    converter.convertToRelationshipType(relationshipTypeProp.getValue(result))
            );
View Full Code Here

         modelProperties.get(PROPERTY_RELATIONSHIP_NAME).setValue(relationship,
               relationshipName);
        
         em.persist(relationship);
        
         return new IdentityObjectRelationshipImpl(fromIdentity, toIdentity,
               relationshipName, relationshipType);
      }
      catch (Exception ex)
      {
         throw new IdentityException("Exception creating relationship", ex);
View Full Code Here

     
      EntityToSpiConverter converter = new EntityToSpiConverter();
     
      for (Object result : results)
      {
         IdentityObjectRelationship relationship = new IdentityObjectRelationshipImpl(
               converter.convertToIdentityObject(relationshipFromProp.getValue(result)),
               converter.convertToIdentityObject(relationshipToProp.getValue(result)),
               (String) relationshipNameProp.getValue(result),
               converter.convertToRelationshipType(relationshipTypeProp.getValue(result))        
         );
View Full Code Here

     
      EntityToSpiConverter converter = new EntityToSpiConverter();
     
      for (Object result : results)
      {
         IdentityObjectRelationship relationship = new IdentityObjectRelationshipImpl(
               converter.convertToIdentityObject(relationshipFromProp.getValue(result)),
               converter.convertToIdentityObject(relationshipToProp.getValue(result)),
               (String) relationshipNameProp.getValue(result),
               converter.convertToRelationshipType(relationshipTypeProp.getValue(result))        
         );
View Full Code Here

TOP

Related Classes of org.jboss.seam.security.management.IdentityObjectRelationshipImpl

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.