Examples of GroupDefinition


Examples of com.founder.fix.fixflow.core.impl.identity.GroupDefinition

    this.childMembers=childMembers;
  }
 
  public List<UserTo> execute(CommandContext commandContext) {
   
    GroupDefinition groupDefinitionObj=null;
    List<GroupDefinition> groupDefinitions = Context.getProcessEngineConfiguration().getGroupDefinitions();
    for (GroupDefinition groupDefinition : groupDefinitions) {

      if (groupDefinition.getId().equals(this.groupType)) {
        groupDefinitionObj= groupDefinition;
        break;
      }

    }
    if(groupDefinitionObj==null){
      throw new FixFlowException("编号为: "+groupId+" 类型为: "+groupType+" 的组不存在");
    }
   
    if(childMembers){
      return groupDefinitionObj.findUserChildMembersIncludeByGroupId(groupId);
    }
    else{
      return groupDefinitionObj.findUserByGroupId(groupId);
    }
   

  }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.identity.GroupDefinition

        }
        taskInfo=taskInfo+")";
      }
      for (String groupToKey : groupTosMap.keySet()) {
        List<GroupTo> groupTos=groupTosMap.get(groupToKey);
        GroupDefinition groupDefinition = identityService.getGroupDefinition(groupToKey);
        String groupTypeName = "";
        groupTypeName = groupDefinition.getName();
        taskInfo += "(共享 " + groupTypeName + " : ";
        taskInfo += listToStr(groupTos, ",",groupDefinition) + ")";
      }
    } else {
      UserTo user = identityService.getUserTo(assignee);
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.identity.GroupDefinition

          userTos.add(userTo);
        }
        else{
          if(identityLink.getGroupId()!=null){
           
            GroupDefinition groupDefinition=Authentication.groupDefinition(identityLink.getGroupType());
           
            List<UserTo> userToTemp= groupDefinition.findUserChildMembersIncludeByGroupId(identityLink.getGroupId());
           
            userTos.addAll(userToTemp);
           
           
          }
View Full Code Here

Examples of com.getperka.flatpack.policy.pst.GroupDefinition

      return false;
    }

    @Override
    public boolean visit(GroupDefinition x) {
      GroupDefinition n = new GroupDefinition();
      n.setName(clone(x.getName()));
      n.setPaths(clone(x.getPaths()));
      stack.push(n);
      return false;
    }
View Full Code Here

Examples of org.jasig.portal.groups.pags.GroupDefinition

         this.applicationContext = ApplicationContextLocator.getApplicationContext();
         this.personAttributesGroupDefinitionDao = applicationContext.getBean("personAttributesGroupDefinitionDao", IPersonAttributesGroupDefinitionDao.class);
    }

    public boolean contains(IEntityGroup group, IGroupMember member) {
        GroupDefinition groupDef = convertEntityToGroupDef(group);
        if (member.isGroup())
        {
           String key = ((IEntityGroup)member).getLocalKey();
           return groupDef.hasMember(key);
        }
        else
        {
           if (member.getEntityType() != IPERSON_CLASS)
               { return false; }
View Full Code Here

Examples of org.jasig.portal.groups.pags.PersonAttributesGroupStore.GroupDefinition

      config.normalize();
      Element groupStoreElement = config.getDocumentElement();
      NodeList groupElements = groupStoreElement.getChildNodes();
      for (int i = 0; i < groupElements.getLength(); i++) {
         if (groupElements.item(i) instanceof Element) {
            GroupDefinition groupDef = initGroupDef((Element) groupElements.item(i));
            groupDefinitions.put(groupDef.getKey(), groupDef);
         }
      }
      return groupDefinitions;
   }
View Full Code Here

Examples of org.jasig.portal.groups.pags.PersonAttributesGroupStore.GroupDefinition

         }
      }
      return groupDefinitions;
   }
   private GroupDefinition initGroupDef(Element groupElement) {
      GroupDefinition groupDef = new GroupDefinition();
      NodeList children = groupElement.getChildNodes();
      for (int i = 0; i < children.getLength(); i++) {
         if (children.item(i) instanceof Element) {
            Element element = (Element)children.item(i);
            String tagName = element.getTagName();
            element.normalize();
            String text = null;
            if (element.getFirstChild() instanceof Text) {
               text = ((Text)element.getFirstChild()).getData().trim();
            }
            if (tagName.equals("group-key")) {
               groupDef.setKey(text);
            } else if (tagName.equals("group-name")) {
               groupDef.setName(text);
            } else if (tagName.equals("group-description")) {
               groupDef.setDescription(text);
            } else if (tagName.equals("selection-test")) {
               NodeList testGroups = element.getChildNodes();
               for (int j = 0; j < testGroups.getLength(); j++) {
                  Node testGroup = testGroups.item(j);
                  if (testGroup instanceof Element && ((Element)testGroup).getTagName().equals("test-group")) {
                     TestGroup tg = new TestGroup();
                     NodeList tests = testGroup.getChildNodes();
                     for (int k = 0; k < tests.getLength(); k++) {
                        Node test = tests.item(k);
                        if (test instanceof Element && ((Element)test).getTagName().equals("test")) {
                           String attribute = null;
                           String tester = null;
                           String value = null;
                           NodeList parameters = test.getChildNodes();
                           for (int l = 0; l < parameters.getLength(); l++) {
                              Node parameter = parameters.item(l);
                              text = null;
                              String nodeName = parameter.getNodeName();
                              if (parameter.getFirstChild() != null &&
                                  parameter.getFirstChild() instanceof Text) {
                                     text = ((Text)parameter.getFirstChild()).getData().trim();
                              }
                              if (nodeName.equals("attribute-name")) {
                                 attribute = text;
                              } else if (nodeName.equals("tester-class")) {
                                 tester = text;
                              } else if (nodeName.equals("test-value")) {
                                 value = text;
                              }
                           }
                           IPersonTester testerInst = initializeTester(tester, attribute, value);
                           tg.addTest(testerInst);
                        }
                        groupDef.addTestGroup(tg);
                    }
                  }
               }
            } else if (tagName.equals("members")) {
               addMemberKeys(groupDef, element);
View Full Code Here

Examples of org.jasig.portal.groups.pags.PersonAttributesGroupStore.GroupDefinition

      config.normalize();
      Element groupStoreElement = config.getDocumentElement();
      NodeList groupElements = groupStoreElement.getChildNodes();
      for (int i = 0; i < groupElements.getLength(); i++) {
         if (groupElements.item(i) instanceof Element) {
            GroupDefinition groupDef = initGroupDef((Element) groupElements.item(i));
            groupDefinitions.put(groupDef.getKey(), groupDef);
         }
      }
      return groupDefinitions;
   }
View Full Code Here

Examples of org.jasig.portal.groups.pags.PersonAttributesGroupStore.GroupDefinition

         }
      }
      return groupDefinitions;
   }
   private GroupDefinition initGroupDef(Element groupElement) {
      GroupDefinition groupDef = new GroupDefinition();
      NodeList children = groupElement.getChildNodes();
      for (int i = 0; i < children.getLength(); i++) {
         if (children.item(i) instanceof Element) {
            Element element = (Element)children.item(i);
            String tagName = element.getTagName();
            element.normalize();
            String text = null;
            if (element.getFirstChild() instanceof Text) {
               text = ((Text)element.getFirstChild()).getData();
            }
            if (tagName.equals("group-key")) {
               groupDef.setKey(text);
            } else if (tagName.equals("group-name")) {
               groupDef.setName(text);
            } else if (tagName.equals("group-description")) {
               groupDef.setDescription(text);
            } else if (tagName.equals("selection-test")) {
               NodeList testGroups = element.getChildNodes();
               for (int j = 0; j < testGroups.getLength(); j++) {
                  Node testGroup = testGroups.item(j);
                  if (testGroup instanceof Element && ((Element)testGroup).getTagName().equals("test-group")) {
                     TestGroup tg = new TestGroup();
                     NodeList tests = testGroup.getChildNodes();
                     for (int k = 0; k < tests.getLength(); k++) {
                        Node test = tests.item(k);
                        if (test instanceof Element && ((Element)test).getTagName().equals("test")) {
                           String attribute = null;
                           String tester = null;
                           String value = null;
                           NodeList parameters = test.getChildNodes();
                           for (int l = 0; l < parameters.getLength(); l++) {
                              Node parameter = parameters.item(l);
                              text = null;
                              String nodeName = parameter.getNodeName();
                              if (parameter.getFirstChild() != null &&
                                  parameter.getFirstChild() instanceof Text) {
                                     text = ((Text)parameter.getFirstChild()).getData();
                              }
                              if (nodeName.equals("attribute-name")) {
                                 attribute = text;
                              } else if (nodeName.equals("tester-class")) {
                                 tester = text;
                              } else if (nodeName.equals("test-value")) {
                                 value = text;
                              }
                           }
                           IPersonTester testerInst = initializeTester(tester, attribute, value);
                           tg.addTest(testerInst);
                        }
                        groupDef.addTestGroup(tg);
                    }
                  }
               }
            } else if (tagName.equals("members")) {
               addMemberKeys(groupDef, element);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.wizard.model.GroupDefinition

      final List<FieldWrapper> groups = getGroupFields();
      final DataSchema schema = getEditorModel().getDataSchema().getDataSchema();
      for (final int i : selectedIndices)
      {
        final SourceFieldDefinition group = getSelectableFields().get(i);
        final GroupDefinition xulGroup = new DefaultGroupDefinition();
        xulGroup.setField(group.getFieldName());
        FieldWrapper wrapper = new FieldWrapper(xulGroup, schema);
        groups.add(wrapper);
        final DefaultGroupDefinition definition = (DefaultGroupDefinition) wrapper.getFieldDefinition();
        new XulGroupDefinition(definition, schema);
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.