Examples of GetAllPersonIdsWhoHaveGroupCoordinatorAccess


Examples of org.eurekastreams.server.persistence.mappers.GetAllPersonIdsWhoHaveGroupCoordinatorAccess

        transDef.setReadOnly(true);
        TransactionStatus transStatus = transMgr.getTransaction(transDef);

        String type = request.getParameter("type");

        GetAllPersonIdsWhoHaveGroupCoordinatorAccess groupCoordinatorMapper = //
        (GetAllPersonIdsWhoHaveGroupCoordinatorAccess) getSpringContext().getBean(
                "getAllPersonIdsWhoHaveGroupCoordinatorAccess");

        DomainGroupMapper groupMapper = (DomainGroupMapper) getSpringContext().getBean("jpaGroupMapper");

        String entityName = request.getParameter("entityName");

        if (type.equals("DomainGroup"))
        {
            DomainGroup group = groupMapper.findByShortName(entityName);

            if (group == null)
            {
                throw new ServletException("Group:  " + entityName + " not found");
            }

            if (groupCoordinatorMapper.hasGroupCoordinatorAccessRecursively(inName, group.getId()))
            {
                transMgr.commit(transStatus);
                return group;
            }
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.