Package org.eurekastreams.server.action.request.profile

Examples of org.eurekastreams.server.action.request.profile.DomainGroupCacheUpdaterRequest


        if (log.isDebugEnabled())
        {
            log.debug("Performing action");
        }

        DomainGroupCacheUpdaterRequest request = (DomainGroupCacheUpdaterRequest) inActionContext.getParams();

        Long domainGroupId = request.getDomainGroupId();

        log.info("Loading domain group by id #" + domainGroupId);
        DomainGroup domainGroup = domainGroupMapper.findById(domainGroupId);

        log.info("Updating the cached list of coordinators for group #" + domainGroupId + " from the database");

        List<Long> peopleIds = groupCoordinatorCacheManager.execute(domainGroup);

        // if this is a private group, this change will affect the coordinators'
        // and followers' activity search
        if (!domainGroup.isPublicGroup())
        {
            if (request.getIsUpdate())
            {
                log.info("Looping across the coordinators to update"
                        + " their private group access list to include the group #" + domainGroupId);
                for (Long coordinatorPersonId : peopleIds)
                {
View Full Code Here


     */
    protected void queueAsyncAction(final TaskHandlerActionContext<PrincipalActionContext> inActionContext,
            final DomainGroup inDomainGroup, final boolean inIsUpdate) throws Exception
    {
        log.info("Queuing up async action to update the cache for domain group #" + inDomainGroup.getId());
        DomainGroupCacheUpdaterRequest request = new DomainGroupCacheUpdaterRequest(inDomainGroup.getId(), inIsUpdate);

        inActionContext.getUserActionRequests().add(
                new UserActionRequest("domainGroupCacheUpdaterAsyncAction", null, request));
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.action.request.profile.DomainGroupCacheUpdaterRequest

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.