com.atlassian.bamboo.jira.jiraserver
Interface JiraServerManager

All Known Implementing Classes:
JiraServerManagerImpl

public interface JiraServerManager

Manages the connection and authorisation settings for the Jira Server


Method Summary
 java.util.Collection getAllJiraServers()
           
 JiraServerDefinition getDefaultJiraServer()
          Gets the "Default" server.
 JiraServerDefinition getJiraServer(long jiraServerId)
          Gets a jira definition given the id.
 void removeJiraServer(long jiraServerId)
          Delete the jira definition
 void saveJiraServer(JiraServerDefinition jiraServer)
          Saves the jira definition into database
 

Method Detail

saveJiraServer

void saveJiraServer(JiraServerDefinition jiraServer)
Saves the jira definition into database

Parameters:
jiraServer -

removeJiraServer

void removeJiraServer(long jiraServerId)
Delete the jira definition

Parameters:
jiraServerId -

getJiraServer

JiraServerDefinition getJiraServer(long jiraServerId)
Gets a jira definition given the id. Bamboo currently only supports one jira server so use getDefaultJiraServer() instead.

Parameters:
jiraServerId -
Returns:
JiraServerDefinition object

getAllJiraServers

java.util.Collection getAllJiraServers()
Returns:
a Collection of all JIRA servers

getDefaultJiraServer

JiraServerDefinition getDefaultJiraServer()
Gets the "Default" server. Currently, Bamboo only allows setting up one JIRA instance anyways. This will get the server out without having an id.

Returns:
JiraServerDefinition


Copyright © 2010 Atlassian. All Rights Reserved.