Examples of findGroupById()


Examples of org.exoplatform.services.organization.GroupHandler.findGroupById()

        MembershipTypeHandler mtHandler = service.getMembershipTypeHandler();
        User user = service.getUserHandler().findUserByName(user_);
        for (Membership membership : membership_) {
            if (user == null)
                user = service.getUserHandler().findUserByName(membership.getUserName());
            Group group = groupHandler.findGroupById(membership.getGroupId());
            MembershipType mt = mtHandler.findMembershipType(membership.getMembershipType());
            if (service.getMembershipHandler() != null) {
                service.getMembershipHandler().linkMembership(user, group, mt, broadcast);
            }
        }
View Full Code Here

Examples of org.exoplatform.services.organization.GroupHandler.findGroupById()

      if (LOG.isDebugEnabled())
         LOG.debug("+++++++++++FIND USER BY GROUP_ID " + groupId);

      MembershipHandler membershipHandler = orgService.getMembershipHandler();
      GroupHandler groupHandler = orgService.getGroupHandler();
      Group group = groupHandler.findGroupById(groupId);
      if (group == null)
      {
         return new LazyListImpl();
      }
View Full Code Here

Examples of org.exoplatform.services.organization.GroupHandler.findGroupById()

         log.debug("+++++++++++FIND USER BY GROUP_ID " + groupId);
      PortalContainer manager = PortalContainer.getInstance();
      OrganizationService service = (OrganizationService)manager.getComponentInstanceOfType(OrganizationService.class);
      MembershipHandler membershipHandler = service.getMembershipHandler();
      GroupHandler groupHandler = service.getGroupHandler();
      Group group = groupHandler.findGroupById(groupId);
      @SuppressWarnings("unchecked")
      List<Membership> members = (List<Membership>)membershipHandler.findMembershipsByGroup(group);

      DBObjectQuery dbQuery = new DBObjectQuery<UserImpl>(UserImpl.class);
      for (Membership member : members)
View Full Code Here

Examples of org.exoplatform.services.organization.GroupHandler.findGroupById()

   {
      log.info("Create User Profile: " + event.getData().getUserName());
      UserProfile profile = service_.getUserProfileHandler().createUserProfileInstance(event.getData().getUserName());
      service_.getUserProfileHandler().saveUserProfile(profile, true);
      GroupHandler groupHandler = service_.getGroupHandler();
      Group g = groupHandler.findGroupById("/user");
      MembershipTypeHandler membershipTypeHandler = service_.getMembershipTypeHandler();
      MembershipType memberType = membershipTypeHandler.findMembershipType("member");

      if (g == null)
      {
View Full Code Here

Examples of org.exoplatform.services.organization.GroupHandler.findGroupById()

   {
      log.info("Create User Profile: " + event.getData().getUserName());
      UserProfile profile = service_.getUserProfileHandler().createUserProfileInstance(event.getData().getUserName());
      service_.getUserProfileHandler().saveUserProfile(profile, true);
      GroupHandler groupHandler = service_.getGroupHandler();
      Group g = groupHandler.findGroupById("/user");
      MembershipTypeHandler membershipTypeHandler = service_.getMembershipTypeHandler();
      MembershipType memberType = membershipTypeHandler.findMembershipType("member");

      if (g == null)
      {
View Full Code Here

Examples of org.exoplatform.services.organization.GroupHandler.findGroupById()

      User user = service.getUserHandler().findUserByName(user_);
      for (Membership membership : membership_)
      {
         if (user == null)
            user = service.getUserHandler().findUserByName(membership.getUserName());
         Group group = groupHandler.findGroupById(membership.getGroupId());
         MembershipType mt = mtHandler.findMembershipType(membership.getMembershipType());
         if (service.getMembershipHandler() != null)
         {
            service.getMembershipHandler().linkMembership(user, group, mt, broadcast);
         }
View Full Code Here

Examples of org.jbpm.pvm.internal.identity.spi.IdentitySession.findGroupById()

    // resolve and tokenize groups
    String groupList = addressTemplate.getGroups();
    if (groupList != null) {
      for (String groupId : tokenizeActors(groupList, execution)) {
        Group group = identitySession.findGroupById(groupId);
        addRecipients(addressResolver.resolveAddresses(group), email, recipientType);
      }
    }
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.identity.spi.IdentitySession.findGroupById()

    this.groupId = groupId;
  }

  public Group execute(Environment environment) {
    IdentitySession identitySession = environment.get(IdentitySession.class);
    return identitySession.findGroupById(groupId);
  }
}
View Full Code Here

Examples of org.jbpm.pvm.internal.identity.spi.IdentitySession.findGroupById()

    // resolve and tokenize groups
    String groupList = fromTemplate.getGroups();
    if (groupList != null) {
      for (String groupId : tokenizeActors(groupList, execution)) {
        Group group = identitySession.findGroupById(groupId);
        addSenders(addressResolver.resolveAddresses(group), email);
      }
    }
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.identity.spi.IdentitySession.findGroupById()

    this.groupId = groupId;
  }

  public Group execute(Environment environment) {
    IdentitySession identitySession = environment.get(IdentitySession.class);
    return identitySession.findGroupById(groupId);
  }
}
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.