Examples of ConstraintType


Examples of at.reppeitsolutions.formbuilder.model.ConstraintType

            String[] constraintsArray = constraintsstring.split(sep2);
            for (String constraintString : constraintsArray) {
                String[] constraintUuids = constraintString.split(sep1);
                WorkflowState workflowState = null;
                ConstraintClient constraintClient = null;
                ConstraintType constraintType = null;
                if (workflowStates != null) {
                    for (WorkflowState tmpWorkflowState : workflowStates) {
                        if (tmpWorkflowState.getUuid().equals(constraintUuids[0])) {
                            workflowState = tmpWorkflowState;
                            break;
View Full Code Here

Examples of at.reppeitsolutions.formbuilder.model.ConstraintType

                        FormBuilderItemAddConstraint addConstraint = mapper.readValue(formContentString, FormBuilderItemAddConstraint.class);
                        for (FormBuilderItemBase tmpItem : formBuilder.getForm().getItems()) {
                            if (tmpItem.getId().equals(addConstraint.getItemUuid())) {
                                WorkflowState workflowState = null;
                                ConstraintClient constraintClient = null;
                                ConstraintType constraintType = null;
                                if (formBuilder.getWorkflowStates() != null) {
                                    for (WorkflowState tmpWorkflowState : formBuilder.getWorkflowStates()) {
                                        if (tmpWorkflowState.getUuid().equals(addConstraint.getWorkflowState())) {
                                            workflowState = tmpWorkflowState;
                                            break;
View Full Code Here

Examples of com.projectlibre.pm.scheduling.ConstraintType

  public void to(NormalTask openprojTask, Task task, OpenprojImportState state) {
    //convert fields
    FieldUtil.convertFields(task, NormalTask.class, openprojTask, fieldsToConvert, false);
    FieldUtil.convertFields(task, CustomFields.class, openprojTask.getCustomFields(), customFieldsToConvert, false);
   
    ConstraintType constraintType=(ConstraintType)task.get("constraintType");
    if (constraintType!=null){
      LongDateConverter converter=new LongDateConverter();
      Long constraintDate=(Long)converter.to(task.get("constraintDate"));
      openprojTask.setScheduleConstraint(constraintType.getId(),constraintDate==null?0:constraintDate);
    }
   
    //find calendar
    WorkCalendar calendar=task.getCalendar();
    if (calendar!=null){
View Full Code Here

Examples of net.sf.mpxj.ConstraintType

         plannerTask.setType("normal");
      }
      plannerTask.setWork(getDurationString(mpxjTask.getWork()));
      plannerTask.setWorkStart(getDateTimeString(mpxjTask.getStart()));

      ConstraintType mpxjConstraintType = mpxjTask.getConstraintType();
      if (mpxjConstraintType != ConstraintType.AS_SOON_AS_POSSIBLE)
      {
         Constraint plannerConstraint = m_factory.createConstraint();
         plannerTask.setConstraint(plannerConstraint);
         if (mpxjConstraintType == ConstraintType.START_NO_EARLIER_THAN)
View Full Code Here

Examples of org.apache.helix.model.ClusterConstraints.ConstraintType

    String clusterName = getValue("clusterName");
    String constraintTypeStr = getValue("constraintType").toUpperCase();
    String constraintId = getValue("constraintId");

    try {
      ConstraintType constraintType = ConstraintType.valueOf(constraintTypeStr);
      ZkClient zkClient =
          (ZkClient) getContext().getAttributes().get(RestAdminApplication.ZKCLIENT);
      // ClusterSetup setupTool = new ClusterSetup(zkClient);
      HelixAdmin admin = new ZKHelixAdmin(zkClient); // setupTool.getClusterManagementTool();
View Full Code Here

Examples of org.apache.helix.model.ClusterConstraints.ConstraintType

        || constraintAttributesMap == null) {
      throw new IllegalArgumentException(
          "fail to set constraint. missing clusterName|constraintType|constraintId|constraintAttributesMap");
    }

    ConstraintType type = ConstraintType.valueOf(constraintType);
    ConstraintItemBuilder builder = new ConstraintItemBuilder();
    Map<String, String> constraintAttributes =
        HelixUtil.parseCsvFormatedKeyValuePairs(constraintAttributesMap);
    ConstraintItem constraintItem = builder.addConstraintAttributes(constraintAttributes).build();
    _admin.setConstraint(clusterName, type, constraintId, constraintItem);
View Full Code Here

Examples of org.apache.helix.model.ClusterConstraints.ConstraintType

    if (clusterName == null || constraintType == null || constraintId == null) {
      throw new IllegalArgumentException(
          "fail to remove constraint. missing clusterName|constraintType|constraintId");
    }

    ConstraintType type = ConstraintType.valueOf(constraintType);
    _admin.removeConstraint(clusterName, type, constraintId);
  }
View Full Code Here

Examples of org.apache.helix.model.ClusterConstraints.ConstraintType

    if (clusterName == null || constraintType == null) {
      throw new IllegalArgumentException(
          "fail to get constraint. missing clusterName|constraintType");
    }

    ConstraintType type = ConstraintType.valueOf(constraintType);
    ClusterConstraints constraints = _admin.getConstraints(clusterName, type);
    ZNRecordSerializer serializer = new ZNRecordSerializer();
    return new String(serializer.serialize(constraints.getRecord()));
  }
View Full Code Here

Examples of org.apache.helix.model.ClusterConstraints.ConstraintType

        || constraintAttributesMap == null) {
      throw new IllegalArgumentException(
          "fail to set constraint. missing clusterName|constraintType|constraintId|constraintAttributesMap");
    }

    ConstraintType type = ConstraintType.valueOf(constraintType);
    ConstraintItemBuilder builder = new ConstraintItemBuilder();
    Map<String, String> constraintAttributes =
        HelixUtil.parseCsvFormatedKeyValuePairs(constraintAttributesMap);
    ConstraintItem constraintItem = builder.addConstraintAttributes(constraintAttributes).build();
    _admin.setConstraint(clusterName, type, constraintId, constraintItem);
View Full Code Here

Examples of org.apache.helix.model.ClusterConstraints.ConstraintType

    if (clusterName == null || constraintType == null || constraintId == null) {
      throw new IllegalArgumentException(
          "fail to remove constraint. missing clusterName|constraintType|constraintId");
    }

    ConstraintType type = ConstraintType.valueOf(constraintType);
    _admin.removeConstraint(clusterName, type, constraintId);
  }
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.