|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.jredmine.DefaultRedmineAnonymousService
org.nuiton.jredmine.DefaultRedmineService
public class DefaultRedmineService
Default RedmineService implementation based on a RestClient
|
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
|
| Fields inherited from class org.nuiton.jredmine.DefaultRedmineAnonymousService |
|---|
delegateImplementor |
| Fields inherited from interface org.nuiton.jredmine.RedmineService |
|---|
ROLE |
| Constructor Summary | |
|---|---|
DefaultRedmineService()
|
|
| Method Summary | |
|---|---|
Attachment |
addAttachment(String projectName,
String versionName,
Attachment attachement)
Add a attachment for a given version of a given project. |
TimeEntry |
addIssueTimeEntry(String projectName,
String issueId,
TimeEntry entry)
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. |
Project[] |
getUserProjects()
Obtain for the loggued user, all projets where he belongs. |
RedmineServiceImplementor |
init(org.nuiton.io.rest.RestClient session)
Initialize the service given a redmine client already initialized. |
RedmineServiceImplementor |
init(org.nuiton.io.rest.RestClientConfiguration configuration)
Initialize the service given a client configuration. |
Version |
nextVersion(String projectName,
String oldVersionName,
Version newVersion)
Prepare a new version (create it or update it). |
Version |
updateVersion(String projectName,
Version version)
Update a version for a given project. |
| Methods inherited from class org.nuiton.jredmine.DefaultRedmineAnonymousService |
|---|
checkLoggued, checkNotLoggued, destroy, getAttachments, getClosedIssues, getData, getDatas, getIssueCategories, getIssuePriorities, getIssues, getIssues, getIssueStatuses, getIssueTimeEntries, getNews, getOpenedIssues, getProject, getProjectMembers, getProjects, getTrackers, getVersion, getVersions, isInit, sendData, sendDatas |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.nuiton.jredmine.RedmineAnonymousService |
|---|
getAttachments, getClosedIssues, getIssueCategories, getIssuePriorities, getIssues, getIssues, getIssueStatuses, getIssueTimeEntries, getNews, getOpenedIssues, getProject, getProjectMembers, getProjects, getTrackers, getVersion, getVersions |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public DefaultRedmineService()
| Method Detail |
|---|
public RedmineServiceImplementor init(org.nuiton.io.rest.RestClientConfiguration configuration)
throws RedmineServiceException
RedmineServiceImplementor
init in interface RedmineServiceImplementorinit in class DefaultRedmineAnonymousServiceconfiguration - the configuration to be used to init the internal redmine client
RedmineServiceException - if any pb
public RedmineServiceImplementor init(org.nuiton.io.rest.RestClient session)
throws RedmineServiceException
RedmineServiceImplementor
init in interface RedmineServiceImplementorinit in class DefaultRedmineAnonymousServicesession - the redmine client to be used by the service
RedmineServiceException - if any pbRedmineRestClient
public Project[] getUserProjects()
throws RedmineServiceException
RedmineLogguedService
getUserProjects in interface RedmineLogguedServiceRedmineServiceException - if any pb while retriving datasProject
public Version addVersion(String projectName,
Version version)
throws RedmineServiceException
RedmineLogguedService
addVersion in interface RedmineLogguedServiceprojectName - the name of the projectversion - the version to add
RedmineServiceException - if any pb while sending and retriving
datas to redmine serverVersion
public Version updateVersion(String projectName,
Version version)
throws RedmineServiceException
RedmineLogguedService
updateVersion in interface RedmineLogguedServiceprojectName - the name of the projectversion - the version to update
RedmineServiceException - if any pb while sending and retriving
datas to redmine serverVersion
public Version nextVersion(String projectName,
String oldVersionName,
Version newVersion)
throws RedmineServiceException
RedmineLogguedServiceoldVersionName is given, then all issues unclosed from this
old version will be move to the new version.
b>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)newVersion - the newVersion to create or update
RedmineServiceException - if any pb while sending and retriving
datas to redmine serverVersion
public Attachment addAttachment(String projectName,
String versionName,
Attachment attachement)
throws RedmineServiceException
RedmineLogguedService
addAttachment in interface RedmineLogguedServiceprojectName - the name of the projectversionName - the name of the versionattachement - the attachment to add
RedmineServiceException - if any pb while sending and retriving
datas to redmine serverAttachment
public News addNews(String projectName,
News news)
throws RedmineServiceException
RedmineLogguedService
addNews in interface RedmineLogguedServiceprojectName - the name of the projectnews - the news to add
RedmineServiceException - if any pb while sending and retriving
datas to redmine serverNews
public TimeEntry addIssueTimeEntry(String projectName,
String issueId,
TimeEntry entry)
throws RedmineServiceException
RedmineLogguedService
addIssueTimeEntry in interface RedmineLogguedServiceprojectName - the name of the projectissueId - the id of the issue to updateentry - time entry to add
RedmineServiceException - if any pb while sending or retrieving
datas to redmine serverIssue,
TimeEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||