public class DefaultRedmineService extends AbstractRedmineService implements RedmineService
RedmineService.
|
| Modifier and Type | Field and Description |
|---|---|
protected DateFormat |
DATE_FORMAT |
ROLE| Constructor and Description |
|---|
DefaultRedmineService() |
| Modifier and Type | Method and Description |
|---|---|
Attachment |
addAttachment(String projectName,
String versionName,
Attachment attachment)
Add a attachment for a given version of a given project.
|
TimeEntry |
addIssueTimeEntry(String projectName,
String issueId,
TimeEntry timeEntry)
Add a new time entry to the given issue for the given project and
return the updated time entry.
|
News |
addNews(String projectName,
News news)
Add a news for a given project.
|
Version |
addVersion(String projectName,
Version version)
Add a version for a given project.
|
Attachment[] |
getAttachments(String projectName,
String versionName)
Obtain all attachments for a specific version on a given project.
|
Issue[] |
getClosedIssues(String projectName)
Obtain all closed issues for a given project.
|
User |
getCurrentUser()
Obtain the redmine user from the credentials given in the service configuration.
|
IssueCategory[] |
getIssueCategories(String projectName)
Obtain all categories defined on issues for a given project.
|
IssuePriority[] |
getIssuePriorities()
Obtain all the priorities defined on a
Issue. |
Issue[] |
getIssues(String projectName)
Obtain all issues for a given project.
|
Issue[] |
getIssues(String projectName,
String versionName)
Obtain all issues for a specific version on a given project.
|
IssueStatus[] |
getIssueStatuses()
Obtain all the statuses defined on a
Issue. |
TimeEntry[] |
getIssueTimeEntries(String projectName,
String issueId)
Obtain for a given issue of a given project all the time entries.
|
Version |
getLastestClosedVersion(String projectName)
Obtain the lastest closed version for a given project.
|
News[] |
getNews(String projectName)
Obtain all news defined on a given project.
|
Issue[] |
getOpenedIssues(String projectName)
Obtain all opened issues for a given project.
|
Project |
getProject(String projectName)
Obtain a project given his name.
|
User[] |
getProjectMembers(String projectName)
Obtain all users defined on a given project.
|
Project[] |
getProjects()
Obtain all accessible projects.
|
Tracker[] |
getTrackers(String projectName)
Obtain all trackers defined on a given project.
|
Project[] |
getUserProjects()
Obtain for the loggued user, all projets where he belongs.
|
Version |
getVersion(String projectName,
String versionName)
Obtain a specific version for a given project.
|
protected String |
getVersionEffectiveDate(Version version) |
Version[] |
getVersions(String projectName)
Obtain all versions defined on a given project.
|
protected String |
getVersionStatus(Version version) |
void |
init(RedmineServiceConfiguration configuration)
Initialize the service.
|
Version |
nextVersion(String projectName,
String oldVersionName,
Version version)
Prepare a new version (create it or update it).
|
Version |
updateVersion(String projectName,
Version version)
Update a version for a given project.
|
checkInit, checkLoggued, checkSessionConfigurationNotNull, checkSessionNotNull, destroy, executeRequestAndReturnData, executeRequestAndReturnDatas, getClient, isInitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isInitprotected final DateFormat DATE_FORMAT
public void init(RedmineServiceConfiguration configuration) throws RedmineServiceException
RedmineAnonymousServiceinit in interface RedmineAnonymousServiceinit in class AbstractRedmineServiceconfiguration - the configuration to be used to init the internal redmine clientRedmineServiceException - if any pbpublic IssueStatus[] getIssueStatuses() throws RedmineServiceException
RedmineAnonymousServiceIssue.
Note : The statuses are common for all projects.getIssueStatuses in interface RedmineAnonymousServiceRedmineServiceException - if any pb while retriving datasIssueStatuspublic IssuePriority[] getIssuePriorities() throws RedmineServiceException
RedmineAnonymousServiceIssue.
Note : The priorities are common for all projects.getIssuePriorities in interface RedmineAnonymousServiceRedmineServiceException - if any pb while retriving datasIssuePrioritypublic Project[] getProjects() throws RedmineServiceException
RedmineAnonymousServicegetProjects in interface RedmineAnonymousServiceRedmineServiceException - if any pb while retriving datasProjectpublic IssueCategory[] getIssueCategories(String projectName) throws RedmineServiceException
RedmineAnonymousServicegetIssueCategories in interface RedmineAnonymousServiceprojectName - the name of the projectRedmineServiceException - if any pb while retriving datasIssueCategorypublic Project getProject(String projectName) throws RedmineServiceException
RedmineAnonymousServicegetProject in interface RedmineAnonymousServiceprojectName - the name of the projectRedmineServiceException - if any pb while retriving datasProjectpublic Tracker[] getTrackers(String projectName) throws RedmineServiceException
RedmineAnonymousServicegetTrackers in interface RedmineAnonymousServiceprojectName - the name of the projectRedmineServiceException - if any pb while retriving datasTrackerpublic News[] getNews(String projectName) throws RedmineServiceException
RedmineAnonymousServicegetNews in interface RedmineAnonymousServiceprojectName - the name of the projectRedmineServiceException - if any pb while retriving datasNewspublic User[] getProjectMembers(String projectName) throws RedmineServiceException
RedmineAnonymousServicegetProjectMembers in interface RedmineAnonymousServiceprojectName - the name of the projectRedmineServiceException - if any pb while retriving datasUserpublic Version[] getVersions(String projectName) throws RedmineServiceException
RedmineAnonymousServicegetVersions in interface RedmineAnonymousServiceprojectName - the name of the projectRedmineServiceException - if any pb while retriving datasVersionpublic Version getVersion(String projectName, String versionName) throws RedmineServiceException
RedmineAnonymousServicegetVersion in interface RedmineAnonymousServiceprojectName - the name of the projectversionName - the name of the versionRedmineServiceException - if any pb while retriving datasVersionpublic Version getLastestClosedVersion(String projectName) throws RedmineServiceException
RedmineAnonymousServicegetLastestClosedVersion in interface RedmineAnonymousServiceprojectName - the name of the projectnull if no version is matching)RedmineServiceException - if any pb while retriving datasVersionpublic Attachment[] getAttachments(String projectName, String versionName) throws RedmineServiceException
RedmineAnonymousServicegetAttachments in interface RedmineAnonymousServiceprojectName - the name of the projectversionName - the name of the versionRedmineServiceException - if any pb while retriving datasAttachmentpublic Issue[] getIssues(String projectName, String versionName) throws RedmineServiceException
RedmineAnonymousServicegetIssues in interface RedmineAnonymousServiceprojectName - the name of the projectversionName - the name of the versionRedmineServiceException - if any pb while retriving datasIssuepublic TimeEntry[] getIssueTimeEntries(String projectName, String issueId) throws RedmineServiceException
RedmineAnonymousServicegetIssueTimeEntries in interface RedmineAnonymousServiceprojectName - the name of the projectissueId - the id of the issueRedmineServiceException - if any pb while retrieving time entries of the issuepublic Issue[] getIssues(String projectName) throws RedmineServiceException
RedmineAnonymousServicegetIssues in interface RedmineAnonymousServiceprojectName - the name of the projectRedmineServiceException - if any pb while retriving datasIssuepublic Issue[] getOpenedIssues(String projectName) throws RedmineServiceException
RedmineAnonymousServicegetOpenedIssues in interface RedmineAnonymousServiceprojectName - the name of the projectRedmineServiceException - if any pb while retriving datasIssuepublic Issue[] getClosedIssues(String projectName) throws RedmineServiceException
RedmineAnonymousServicegetClosedIssues in interface RedmineAnonymousServiceprojectName - the name of the projectRedmineServiceException - if any pb while retriving datasIssuepublic User getCurrentUser() throws RedmineServiceException
RedmineLogguedServicegetCurrentUser in interface RedmineLogguedServiceRedmineServiceException - if any pbpublic Project[] getUserProjects() throws RedmineServiceException
RedmineLogguedServicegetUserProjects in interface RedmineLogguedServiceRedmineServiceException - if any pb while retriving datasProjectpublic Version addVersion(String projectName, Version version) throws RedmineServiceException
RedmineLogguedServiceaddVersion in interface RedmineLogguedServiceprojectName - the name of the projectversion - the version to addRedmineServiceException - if any pb while sending and retriving
datas to redmine serverVersionpublic Version updateVersion(String projectName, Version version) throws RedmineServiceException
RedmineLogguedServiceupdateVersion in interface RedmineLogguedServiceprojectName - the name of the projectversion - the version to updateRedmineServiceException - if any pb while sending and retriving
datas to redmine serverVersionpublic Version nextVersion(String projectName, String oldVersionName, Version version) throws RedmineServiceException
RedmineLogguedServiceoldVersionName is given, then all issues unclosed from this
old version will be move to the new version.
Note: This method requires to be loggued on redmine server.nextVersion in interface RedmineLogguedServiceprojectName - the name of the projectoldVersionName - the name of the old version (optional)version - the newVersion to create or updateRedmineServiceException - if any pb while sending and retriving
datas to redmine serverVersionpublic Attachment addAttachment(String projectName, String versionName, Attachment attachment) throws RedmineServiceException
RedmineLogguedServiceaddAttachment in interface RedmineLogguedServiceprojectName - the name of the projectversionName - the name of the versionattachment - the attachment to addRedmineServiceException - if any pb while sending and retriving
datas to redmine serverAttachmentpublic News addNews(String projectName, News news) throws RedmineServiceException
RedmineLogguedServiceaddNews in interface RedmineLogguedServiceprojectName - the name of the projectnews - the news to addRedmineServiceException - if any pb while sending and retriving
datas to redmine serverNewspublic TimeEntry addIssueTimeEntry(String projectName, String issueId, TimeEntry timeEntry) throws RedmineServiceException
RedmineLogguedServiceaddIssueTimeEntry in interface RedmineLogguedServiceprojectName - the name of the projectissueId - the id of the issue to updatetimeEntry - time entry to addRedmineServiceException - if any pb while sending or retrieving
datas to redmine serverIssue,
TimeEntryCopyright © 2009–2016 CodeLutin. All rights reserved.