Examples of Priority


Examples of br.gov.frameworkdemoiselle.annotation.Priority

  }

  private static <T> Integer getPriority(AnnotatedMethod<T> annotatedMethod) {
    Integer priority = Priority.MIN_PRIORITY;

    Priority annotation = annotatedMethod.getAnnotation(Priority.class);
    if (annotation != null) {
      priority = annotation.value();
    }

    return priority;
  }
View Full Code Here

Examples of com.atlassian.jira.issue.priority.Priority

    final Timestamp slaLastCalculatedVal = (Timestamp) issue.getCustomFieldValue(slaLastCalculated);
    final String responseSlaStateVal = (String) issue.getCustomFieldValue(responseSlaState);
    final String fixKPIStateVal = (String) issue.getCustomFieldValue(fixKPIState);
    final Period timeElapsedVal = (Period) issue.getCustomFieldValue(timeElapsed);
    final Timestamp onHoldVal = (Timestamp) issue.getCustomFieldValue(onHold);
        Priority priority = issue.getPriorityObject();
        final String incidentPriorityVal = priority.getName();

    long responseTime = getResponseSLAInMillis(slaConfig, incidentPriorityVal);
    long fixTime = getFixKPIInMillis(slaConfig, incidentPriorityVal);

View Full Code Here

Examples of com.atlassian.jira.rest.client.api.domain.Priority

  @JiraBuildNumberDependent(BN_JIRA_5)
  public void testGetPriorities() {
    final Iterable<Priority> priorities = client.getMetadataClient().getPriorities().claim();
    assertEquals(5, Iterables.size(priorities));

    final Priority priority = findEntityBySelfAddressSuffix(priorities, "/1");
    assertEquals(Long.valueOf(1), priority.getId());
    assertEquals("Blocker", priority.getName());
    assertEquals("Blocks development and/or testing work, production could not run.", priority.getDescription());
    assertNotNull(priority.getSelf());
  }
View Full Code Here

Examples of com.atlassian.jira.rest.client.domain.Priority

    final String name = json.getString("name");
    final Long id = JsonParseUtil.getOptionalLong(json, "id");
    final URI selfUri = JsonParseUtil.getSelfUri(json);
        final String iconUrl = JsonParseUtil.getOptionalString(json, "iconUrl");
        if (iconUrl != null) {
            return new Priority(selfUri, id, name, null, null, JsonParseUtil.parseURI(iconUrl));
        }
    return new BasicPriority(selfUri, id, name);
  }
View Full Code Here

Examples of com.baulsupp.kolja.log.line.type.Priority

public class PriorityFilter implements Filter {
  public PriorityFilter() {
  }

  public boolean lineMatches(Line line) {
    Priority priority = (Priority) line.getValue("priority");

    return priority.atleast(Priority.INFO);
  }
View Full Code Here

Examples of com.cloudhopper.mq.util.Priority

  short transferAttempts = buf.getShort(); //2
  short transfers = buf.getShort(); //2
  byte[] b = new byte[meta.length-14];
  buf.get(b);
  String logItemIdentifier = new String(b);
  return new PriorityMQMessage<T>(transferAttempts, transfers, logItemIdentifier, new Priority(priority), timestamp, new Tiny(sequence).intValue());
    }
View Full Code Here

Examples of com.stoyanr.todo.model.Item.Priority

    @Test
    public void testUpdateItemPriority() {
        data.addItem(getItemText());
        data.setDirty(false);
        Priority prio = Priority.LOW;
        data.updateItem(data.getDocument().getItems().get(0), prio);
        Item itemx = new Item(null, 0, getItemText(), prio, Status.NEW, NOW,
            NOW);
        verifyUpdateItemInvocations(itemx);
        assertUpdateItemResults(itemx);
View Full Code Here

Examples of com.tapsterrock.mpx.Priority

        // gtask.setExpand()
        // gtask.setLength();
        gtask.setMilestone(milestone);
        gtask.setName(task.getName() == null ? "-" : task.getName());
        gtask.setNotes(task.getNotes());
        Priority prio = task.getPriority();
        if (prio != null) {
            int priority = prio.getValue();
            int p;
            switch (priority) {
            case Priority.HIGHEST:
            case Priority.HIGHER:
            case Priority.VERY_HIGH:
View Full Code Here

Examples of com.vmware.bdd.apitypes.Priority

                  Constants.OUTPUT_OP_RESULT_FAIL, e.getMessage());
            return;
         }

         //validate the input of ioShares
         Priority ioPriority = null;
         if (ioShares != null) {
            try {
               ioPriority = Priority.valueOf(ioShares.toUpperCase());
            } catch (IllegalArgumentException ex) {
               CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER,
View Full Code Here

Examples of com.volantis.mcs.themes.Priority

                StyleValue newValue = newPropertyValue.getValue();
                if (newValue instanceof StylePair) {
                    StylePair pairValue = (StylePair) newValue;
                    updateEditorValue(first, pairValue.getFirst());
                    updateEditorValue(second, pairValue.getSecond());
                    Priority priority = newPropertyValue.getPriority();
                    boolean important = priority == Priority.IMPORTANT;
                    importantCheckbox.setSelection(important);
                    handled = true;
                } else if (newValue instanceof StyleFraction) {
                    StyleFraction fractionValue = (StyleFraction) newValue;
                    updateEditorValue(first, fractionValue.getNumerator());
                    updateEditorValue(second, fractionValue.getDenominator());
                    second.setEnabled(true);
                    Priority priority = newPropertyValue.getPriority();
                    boolean important = priority == Priority.IMPORTANT;
                    importantCheckbox.setSelection(important);
                    handled = true;
                } else if (newValue instanceof StyleKeyword ||
                        newValue instanceof StyleInherit) {
                    updateEditorValue(first, newValue);
                    // The second value should not be enabled in this case.
                    updateEditorValue(second, null);
                    second.setEnabled(false);
                    Priority priority = newPropertyValue.getPriority();
                    boolean important = priority == Priority.IMPORTANT;
                    importantCheckbox.setSelection(important);
                    handled = true;
                }
            }
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.