Package org.exoplatform.services.organization

Examples of org.exoplatform.services.organization.Group


        if (getCurrentGroup() == null)
            return null;
        Collection<Object> groups = service.getGroupHandler().findGroups(getCurrentGroup());
        if (groups.size() > 0) {
            for (Object child : groups) {
                Group childGroup = (Group) child;
                listGroup.add(childGroup.getId());
            }
        }
        return listGroup;

    }
View Full Code Here


        selectGroup_ = service.getGroupHandler().findGroupById(groupId);
        String parentGroupId = null;
        if (selectGroup_ != null) {
            parentGroupId = selectGroup_.getParentId();
        }
        Group parentGroup = null;
        if (parentGroupId != null) {
            parentGroup = service.getGroupHandler().findGroupById(parentGroupId);
        }

        Collection childrenGroup = service.getGroupHandler().findGroups(selectGroup_);
View Full Code Here

        }
        if (id == null) {
            return list;
        }
        OrganizationService service = getApplicationComponent(OrganizationService.class);
        Group group = service.getGroupHandler().findGroupById(id);
        if (group == null) {
            return list;
        }
        list.add(0, new LocalPath(group.getId(), group.getLabel()));
        getPath(list, group.getParentId());
        return list;
    }
View Full Code Here

   /**
    * {@inheritDoc}
    */
   public Group findGroupById(String groupId) throws Exception
   {
      Group group = (Group)groupCache.get(groupId);
      if (group != null)
         return group;

      group = groupHandler.findGroupById(groupId);
      if (group != null)
View Full Code Here

   /**
    * {@inheritDoc}
    */
   public Group removeGroup(Group group, boolean broadcast) throws Exception
   {
      Group gr = groupHandler.removeGroup(group, broadcast);
      if (gr != null)
      {
         groupCache.remove(gr.getId());

         List<Membership> memberships = membershipCache.getCachedObjects();
         for (Membership membership : memberships)
         {
            if (membership.getGroupId().equals(gr.getId()))
            {
               membershipCache.remove(membership.getId());
               membershipCache.remove(new MembershipCacheKey(membership));
            }
         }
View Full Code Here

      {
         throw new MessageException(new ApplicationMessage("PermissionValidator.msg.invalid-permission-input", args));
      }
      String membership = tmp[0];
      String groupId = tmp[1];
      Group group = null;
      MembershipType membershipType = null;
      try
      {
         membershipType = service.getMembershipTypeHandler().findMembershipType(membership);
         group = service.getGroupHandler().findGroupById(groupId);
View Full Code Here

         {
            groups = orgService_.getGroupHandler().findGroupsOfUser(accessUser);
         }
         for (Object group : groups)
         {
            Group m = (Group)group;
            String groupId = m.getId().trim();
            if (groupId.equals(userACL_.getGuestsGroup()))
            {
               continue;
            }
            navigation = storage_.getPageNavigation(PortalConfig.GROUP_TYPE, groupId);
View Full Code Here

{

   @Override
   public void onEvent(Event<GroupHandler, Group> event) throws Exception
   {
      Group group = event.getData();
      ExoContainer container = ExoContainerContext.getCurrentContainer();
      UserPortalConfigService portalConfigService =
         (UserPortalConfigService)container.getComponentInstanceOfType(UserPortalConfigService.class);
      String groupId = group.getId().substring(1);
      portalConfigService.removeUserPortalConfig("group", groupId);
   }
View Full Code Here

*/
public class RemoveGroupPortalConfigListener extends Listener<GroupHandler, Group> {

    @Override
    public void onEvent(Event<GroupHandler, Group> event) throws Exception {
        Group group = event.getData();
        ExoContainer container = ExoContainerContext.getCurrentContainer();
        UserPortalConfigService portalConfigService = (UserPortalConfigService) container
                .getComponentInstanceOfType(UserPortalConfigService.class);
        String groupId = group.getId().substring(1);
        portalConfigService.removeUserPortalConfig("group", groupId);
    }
View Full Code Here

                        throw new UserPortalException("Could not retrieve groups", e);
                    }

                    //
                    for (Object group : groups) {
                        Group m = (Group) group;
                        String groupId = m.getId().trim();
                        if (!groupId.equals(service.getUserACL().getGuestsGroup())) {
                            NavigationContext groupNavigation = service.getNavigationService().loadNavigation(
                                    SiteKey.group(groupId));
                            if (groupNavigation != null && groupNavigation.getState() != null) {
                                navigations.add(new UserNavigation(this, groupNavigation, service.getUserACL()
View Full Code Here

TOP

Related Classes of org.exoplatform.services.organization.Group

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.