Examples of SecurityEntityRelationTypeImpl


Examples of org.apache.jetspeed.security.mapping.impl.SecurityEntityRelationTypeImpl

            Collection<Entity> expectedEntities) throws Exception
    {
        Entity randomEntity = entityManager.getEntity(toEntityType,toEntityId);
        TestCase.assertNotNull(randomEntity);
        CollectingEntitySearchResultHandler handler = new CollectingEntitySearchResultHandler();
        entityManager.getRelatedEntitiesTo(randomEntity, new SecurityEntityRelationTypeImpl(relationType,fromEntityType,toEntityType), handler);
        basicEntityResultSetChecks(expectedEntities, handler.getResults());
    }
View Full Code Here

Examples of org.apache.jetspeed.security.mapping.impl.SecurityEntityRelationTypeImpl

            Collection<Entity> expectedEntities) throws Exception
    {
        Entity randomEntity = entityManager.getEntity(fromEntityType,fromEntityId);
        TestCase.assertNotNull(randomEntity);
        CollectingEntitySearchResultHandler handler = new CollectingEntitySearchResultHandler();
        entityManager.getRelatedEntitiesFrom(randomEntity, new SecurityEntityRelationTypeImpl(relationType,fromEntityType,toEntityType), handler);
        basicEntityResultSetChecks(expectedEntities, handler.getResults());
    }
View Full Code Here

Examples of org.apache.jetspeed.security.mapping.impl.SecurityEntityRelationTypeImpl

        // use attribute on from entity (of "user" type); user IDs are stored
        // in the "j2-role" attribute
        hasRoleDAO = new AttributeBasedRelationDAO();
        hasRoleDAO.setRelationAttribute("uniqueMember");
        hasRoleDAO.setUseFromEntityAttribute(false);
        hasRoleDAO.setRelationType(new SecurityEntityRelationTypeImpl("hasRole","user","role"));
        hasRoleDAO.setAttributeContainsInternalId(true);
        relationDaos.add(hasRoleDAO);

        entityManager = new DefaultLDAPEntityManager(daos, relationDaos);
    }
View Full Code Here

Examples of org.apache.jetspeed.security.mapping.impl.SecurityEntityRelationTypeImpl

        hasRoleDAO = new AttributeBasedRelationDAO();
        hasRoleDAO.setRelationAttribute("uniqueMember");
        // use attribute on target entity (of "role" type); user IDs are stored
        // in a multi-valued attribute on roles.
        hasRoleDAO.setUseFromEntityAttribute(false);
        hasRoleDAO.setRelationType(new SecurityEntityRelationTypeImpl("hasRole","user","role"));
        hasRoleDAO.setAttributeContainsInternalId(true);
        relationDaos.add(hasRoleDAO);

        entityManager = new DefaultLDAPEntityManager(daos, relationDaos);
    }
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.