Package org.exoplatform.services.organization

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


            //
            GroupHandler groupHandler = orgService_.getGroupHandler();
            Group group = groupHandler.createGroupInstance();
            group.setGroupName(groupName);
            group.setDescription("this is a group for test");
            groupHandler.addChild(null, group, true);

            //
            PortalConfig cfg = storage_.getPortalConfig(PortalConfig.GROUP_TYPE, "/" + groupName);
            assertNotNull(cfg);
            Container container = cfg.getPortalLayout();
View Full Code Here


      group = groupHandler.createGroupInstance();
      group.setGroupName("groupTest");
      group.setLabel("group label");

      groupHandler.addChild(null, group, true);

      group = groupHandler.findGroupById("/groupTest");
      assertNotNull(group);

      PortalConfig pConfig = storage.getPortalConfig(PortalConfig.GROUP_TYPE, "/groupTest");
View Full Code Here

            if (newGroup.getLabel() == null || newGroup.getLabel().trim().length() == 0) {
                newGroup.setLabel(newGroup.getGroupName());
            }
            String changeGroupId;
            if (currentGroupId == null) {
                groupHandler.addChild(null, newGroup, true);
                // uiGroupExplorer.changeGroup(groupName) ;
                changeGroupId = groupName;
            } else {
                Group parrentGroup = groupHandler.findGroupById(currentGroupId);
                groupHandler.addChild(parrentGroup, newGroup, true);
View Full Code Here

                groupHandler.addChild(null, newGroup, true);
                // uiGroupExplorer.changeGroup(groupName) ;
                changeGroupId = groupName;
            } else {
                Group parrentGroup = groupHandler.findGroupById(currentGroupId);
                groupHandler.addChild(parrentGroup, newGroup, true);
                // uiGroupExplorer.changeGroup(currentGroupId) ;
                changeGroupId = currentGroupId;
            }

            // change group
View Full Code Here

            newGroup.setLabel(newGroup.getGroupName());
         }
         String changeGroupId;
         if (currentGroupId == null)
         {
            groupHandler.addChild(null, newGroup, true);
            //uiGroupExplorer.changeGroup(groupName) ;
            changeGroupId = groupName;
         }
         else
         {
View Full Code Here

            changeGroupId = groupName;
         }
         else
         {
            Group parrentGroup = groupHandler.findGroupById(currentGroupId);
            groupHandler.addChild(parrentGroup, newGroup, true);
            //uiGroupExplorer.changeGroup(currentGroupId) ;
            changeGroupId = currentGroupId;
         }

         // change group
View Full Code Here

      if (g == null)
      {
         g = groupHandler.createGroupInstance();
         g.setGroupName("user");
         groupHandler.addChild(null, g, true);
      }
      if (memberType == null)
      {
         memberType = membershipTypeHandler.createMembershipTypeInstance();
         memberType.setName("member");
View Full Code Here

      if (g == null)
      {
         g = groupHandler.createGroupInstance();
         g.setGroupName("user");
         groupHandler.addChild(null, g, true);
      }
      if (memberType == null)
      {
         memberType = membershipTypeHandler.createMembershipTypeInstance();
         memberType.setName("member");
View Full Code Here

      if (g == null)
      {
         g = groupHandler.createGroupInstance();
         g.setGroupName("user");
         groupHandler.addChild(null, g, true);
      }
      if (memberType == null)
      {
         memberType = membershipTypeHandler.createMembershipTypeInstance();
         memberType.setName("member");
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.