Package org.nuxeo.ecm.social.relationship.service

Examples of org.nuxeo.ecm.social.relationship.service.RelationshipService


                throw new IllegalArgumentException(ACTOR_PARAMETER
                        + " is required");
            }

            RelationshipKind relationshipKind = (RelationshipKind) parameters.get(RELATIONSHIP_KIND_PARAMETER);
            RelationshipService relationshipService = Framework.getLocalService(RelationshipService.class);
            List<String> actors = relationshipService.getTargetsOfKind(actor,
                    relationshipKind);
            actors.add(actor);

            StringBuilder sb = new StringBuilder(
                    "select activity from Activity activity where activity.actor in (:actors) and activity.verb = :verb ");
View Full Code Here


        EntityManager em = ((ActivityStreamServiceImpl) activityStreamService).getEntityManager();
        Query query;
        switch (queryType) {
        case ACTIVITY_STREAM_FOR_ACTOR:
            RelationshipService relationshipService = Framework.getLocalService(RelationshipService.class);
            List<String> actors = new ArrayList<String>();
            for (String relationshipKind : relationshipKinds) {
                actors.addAll(relationshipService.getTargetsOfKind(actor,
                        RelationshipKind.fromString(relationshipKind)));
            }
            if (actors.isEmpty()) {
                return new ActivitiesListImpl();
            }
View Full Code Here

TOP

Related Classes of org.nuxeo.ecm.social.relationship.service.RelationshipService

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.