|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.jredmine.DefaultRedmineAnonymousService
public class DefaultRedmineAnonymousService
Default implementation of RedmineAnonymousService.
RestClientConfiguration.isAnonymous()
|
| Field Summary | |
|---|---|
protected RedmineServiceImplementor |
delegateImplementor
|
| Constructor Summary | |
|---|---|
DefaultRedmineAnonymousService()
|
|
| Method Summary | ||
|---|---|---|
void |
checkLoggued()
Checks if the current session is not a anonymous one. |
|
void |
checkNotLoggued(org.nuiton.io.rest.RestClient session)
Checks if the current session is anonymous. |
|
void |
destroy()
Close the service and destroy any connexion to the redmine service. |
|
Attachment[] |
getAttachments(java.lang.String projectName,
java.lang.String versionName)
Obtain all attachments for a specific version on a given project |
|
Issue[] |
getClosedIssues(java.lang.String projectName)
Obtain all closed issues for a given project |
|
|
getData(java.lang.String requestName,
java.lang.Class<T> type,
java.lang.Object... args)
Generic method to obtain a single data from a redmine server. |
|
|
getDatas(java.lang.String requestName,
java.lang.Class<T> type,
java.lang.Object... args)
Generic method to obtain a array of data from a redmine server. |
|
IssueCategory[] |
getIssueCategories(java.lang.String projectName)
Obtain all categories defined on issues for a given project. |
|
IssuePriority[] |
getIssuePriorities()
Obtain all the priorities defined on a Issue. |
|
Issue[] |
getIssues(java.lang.String projectName)
Obtain all issues for a given project |
|
Issue[] |
getIssues(java.lang.String projectName,
java.lang.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(java.lang.String projectName,
java.lang.String issueId)
Obtain for a given issue of a given project all the time entries. |
|
News[] |
getNews(java.lang.String projectName)
Obtain all news defined on a given project. |
|
Issue[] |
getOpenedIssues(java.lang.String projectName)
Obtain all opened issues for a given project |
|
Project |
getProject(java.lang.String projectName)
Obtain a project given his name. |
|
User[] |
getProjectMembers(java.lang.String projectName)
Obtain all users defined on a given project. |
|
Project[] |
getProjects()
Obtain all accessible projets. |
|
Tracker[] |
getTrackers(java.lang.String projectName)
Obtain all trackers defined on a given project. |
|
User[] |
getUsers(java.lang.String projectName)
Obtain all users defined on a given project. |
|
Version |
getVersion(java.lang.String projectName,
java.lang.String versionName)
Obtain a specific version for a given project. |
|
Version[] |
getVersions(java.lang.String projectName)
Obtain all versions defined on a given project. |
|
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. |
|
boolean |
isInit()
Tests if the service is loogued to the redmine service. |
|
|
sendData(java.lang.String requestName,
java.lang.Class<T> klazz,
java.lang.Object... args)
Generic method to send a data to a redmine server and return the single data updated from the redmine server. |
|
|
sendDatas(java.lang.String requestName,
java.lang.Class<T> klazz,
java.lang.Object... args)
Generic method to send a data (or more ) to a redmine server and return the array of data from the redmine server. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected RedmineServiceImplementor delegateImplementor
| Constructor Detail |
|---|
public DefaultRedmineAnonymousService()
| Method Detail |
|---|
public IssueStatus[] getIssueStatuses()
throws RedmineServiceException
RedmineAnonymousServiceIssue.
Note : The statuses are common for all projects.
getIssueStatuses in interface RedmineAnonymousServiceRedmineServiceException - if any pb while retriving datasIssueStatus
public IssuePriority[] getIssuePriorities()
throws RedmineServiceException
RedmineAnonymousServiceIssue.
Note : The priorities are common for all projects.
getIssuePriorities in interface RedmineAnonymousServiceRedmineServiceException - if any pb while retriving datasIssuePriority
public Project[] getProjects()
throws RedmineServiceException
RedmineAnonymousService
getProjects in interface RedmineAnonymousServiceRedmineServiceException - if any pb while retriving datasProject
public IssueCategory[] getIssueCategories(java.lang.String projectName)
throws RedmineServiceException
RedmineAnonymousService
getIssueCategories in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasIssueCategory
public Project getProject(java.lang.String projectName)
throws RedmineServiceException
RedmineAnonymousService
getProject in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasProject
public Tracker[] getTrackers(java.lang.String projectName)
throws RedmineServiceException
RedmineAnonymousService
getTrackers in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasTracker
public News[] getNews(java.lang.String projectName)
throws RedmineServiceException
RedmineAnonymousService
getNews in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasNews
public User[] getUsers(java.lang.String projectName)
throws RedmineServiceException
RedmineAnonymousService
getUsers in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasUser
public User[] getProjectMembers(java.lang.String projectName)
throws RedmineServiceException
RedmineAnonymousService
getProjectMembers in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasUser
public Version[] getVersions(java.lang.String projectName)
throws RedmineServiceException
RedmineAnonymousService
getVersions in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasVersion
public Version getVersion(java.lang.String projectName,
java.lang.String versionName)
throws RedmineServiceException
RedmineAnonymousService
getVersion in interface RedmineAnonymousServiceprojectName - the name of the projectversionName - the name of the version
RedmineServiceException - if any pb while retriving datasVersion
public Attachment[] getAttachments(java.lang.String projectName,
java.lang.String versionName)
throws RedmineServiceException
RedmineAnonymousService
getAttachments in interface RedmineAnonymousServiceprojectName - the name of the projectversionName - the name of the version
RedmineServiceException - if any pb while retriving datasAttachment
public Issue[] getIssues(java.lang.String projectName,
java.lang.String versionName)
throws RedmineServiceException
RedmineAnonymousService
getIssues in interface RedmineAnonymousServiceprojectName - the name of the projectversionName - the name of the version
RedmineServiceException - if any pb while retriving datasIssue
public TimeEntry[] getIssueTimeEntries(java.lang.String projectName,
java.lang.String issueId)
throws RedmineServiceException
RedmineAnonymousService
getIssueTimeEntries in interface RedmineAnonymousServiceprojectName - the name of the projectissueId - the id of the issue
RedmineServiceException - if any pb while retrieving time entries of the issue
public Issue[] getIssues(java.lang.String projectName)
throws RedmineServiceException
RedmineAnonymousService
getIssues in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasIssue
public Issue[] getOpenedIssues(java.lang.String projectName)
throws RedmineServiceException
RedmineAnonymousService
getOpenedIssues in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasIssue
public Issue[] getClosedIssues(java.lang.String projectName)
throws RedmineServiceException
RedmineAnonymousService
getClosedIssues in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasIssue
public RedmineServiceImplementor init(org.nuiton.io.rest.RestClientConfiguration configuration)
throws RedmineServiceException
RedmineServiceImplementor
init in interface RedmineServiceImplementorconfiguration - 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 RedmineServiceImplementorsession - the redmine client to be used by the service
RedmineServiceException - if any pbRedmineRestClient
public <T> T getData(java.lang.String requestName,
java.lang.Class<T> type,
java.lang.Object... args)
throws RedmineServiceException
RedmineServiceImplementor
getData in interface RedmineServiceImplementorT - the type of data to obtainrequestName - the name of the request to usetype - the type of data to obtainargs - the parameters to obtain the data
RedmineServiceException - if any pb
public <T> T[] getDatas(java.lang.String requestName,
java.lang.Class<T> type,
java.lang.Object... args)
throws RedmineServiceException
RedmineServiceImplementor
getDatas in interface RedmineServiceImplementorT - the type of data to obtainrequestName - the name of the request to usetype - the type of data to obtainargs - the parameters to obtain the datas
RedmineServiceException - if any pb
public <T> T sendData(java.lang.String requestName,
java.lang.Class<T> klazz,
java.lang.Object... args)
throws RedmineServiceException
RedmineServiceImplementor
sendData in interface RedmineServiceImplementorT - the type of data to treaterequestName - the name of the request usedklazz - the type of data to treateargs - the parameters of the request
RedmineServiceException - if any pb
public <T> T[] sendDatas(java.lang.String requestName,
java.lang.Class<T> klazz,
java.lang.Object... args)
throws RedmineServiceException
RedmineServiceImplementor
sendDatas in interface RedmineServiceImplementorT - the type of data to treaterequestName - the name of the request usedklazz - the type of data to treateargs - the parameters of the request
RedmineServiceException - if any pbpublic boolean isInit()
RedmineServiceImplementor
isInit in interface RedmineServiceImplementortrue is service is init and loggued to Redmine service,
false otherwise.
public void destroy()
throws RedmineServiceException
RedmineServiceImplementor
destroy in interface RedmineServiceImplementorRedmineServiceException - if any pb
public void checkNotLoggued(org.nuiton.io.rest.RestClient session)
throws java.lang.IllegalStateException,
RedmineServiceLoginException,
java.lang.NullPointerException
RedmineServiceImplementor
checkNotLoggued in interface RedmineServiceImplementorsession - the session to test
RedmineServiceLoginException - if not anonymous
java.lang.NullPointerException - if something is null
java.lang.IllegalStateException
public void checkLoggued()
throws java.lang.IllegalStateException,
RedmineServiceLoginException,
java.lang.NullPointerException
RedmineServiceImplementor
checkLoggued in interface RedmineServiceImplementorjava.lang.IllegalStateException - if service not init
RedmineServiceLoginException - if not loggued
java.lang.NullPointerException - if something is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||