/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.perforce.ts.rest;
/**
* Copyright (c) 2013 Perforce Software. All rights reserved.
*/
import com.atlassian.jira.rest.client.api.MetadataRestClient;
import com.atlassian.jira.rest.client.api.RestClientException;
import com.atlassian.jira.rest.client.api.domain.IssueType;
import com.atlassian.jira.rest.client.api.domain.Priority;
import com.atlassian.jira.rest.client.api.domain.Resolution;
import com.atlassian.jira.rest.client.api.domain.Status;
import com.atlassian.util.concurrent.Promise;
/**
* Extending the MetadataRestClient interface to serve extended JIRA metadata
* information like statuses and extended resolutions.
*
* @see com.atlassian.jira.rest.client.api.MetadataRestClient
*/
public interface ExtendedMetadataRestClient extends MetadataRestClient {
/**
* Retrieves from the server complete list of available issue statuses.
*
* @return list of available issue statuses for this JIRA instance
* @throws RestClientException in case of problems (connectivity, malformed messages, etc.)
*/
Promise<Iterable<Status>> getStatuses();
/**
* Retrieves from the server complete information about selected issue type by name.
*
* @param type unique name of the issue type resource
* @return complete information about issue type resource
* @throws RestClientException in case of problems (connectivity, malformed messages, etc.)
*/
Promise<IssueType> getIssueType(String type);
/**
* Retrieves from the server complete information about selected status by name.
*
* @param status unique name of the status resource
* @return complete information about the selected status
* @throws RestClientException in case of problems (connectivity, malformed messages, etc.)
*/
Promise<Status> getStatus(String status);
/**
* Retrieves from the server complete information about selected priority by name.
*
* @param priority unique name of the priority resource
* @return complete information about the selected priority
* @throws RestClientException in case of problems (connectivity, malformed messages, etc.)
*/
Promise<Priority> getPriority(String priority);
/**
* Retrieves from the server complete information about selected resolution by name.
*
* @param resolution unique name of the resolution resource
* @return complete information about the selected resolution
* @throws RestClientException in case of problems (connectivity, malformed messages, etc.)
*/
Promise<Resolution> getResolution(String resolution);
}