|
||||||||||
| 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(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 |
|
|
getData(String requestName,
Class<T> type,
Object... args)
Generic method to obtain a single data from a redmine server. |
|
|
getDatas(String requestName,
Class<T> type,
Object... args)
Generic method to obtain a array of data from a redmine server. |
|
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. |
|
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 projets. |
|
Tracker[] |
getTrackers(String projectName)
Obtain all trackers defined on a given project. |
|
User[] |
getUsers(String projectName)
Obtain all users defined on a given project. |
|
Version |
getVersion(String projectName,
String versionName)
Obtain a specific version for a given project. |
|
Version[] |
getVersions(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(String requestName,
Class<T> klazz,
Object... args)
Generic method to send a data to a redmine server and return the single data updated from the redmine server. |
|
|
sendDatas(String requestName,
Class<T> klazz,
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(String projectName)
throws RedmineServiceException
RedmineAnonymousService
getIssueCategories in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasIssueCategory
public Project getProject(String projectName)
throws RedmineServiceException
RedmineAnonymousService
getProject in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasProject
public Tracker[] getTrackers(String projectName)
throws RedmineServiceException
RedmineAnonymousService
getTrackers in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasTracker
public News[] getNews(String projectName)
throws RedmineServiceException
RedmineAnonymousService
getNews in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasNews
public User[] getUsers(String projectName)
throws RedmineServiceException
RedmineAnonymousService
getUsers in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasUser
public User[] getProjectMembers(String projectName)
throws RedmineServiceException
RedmineAnonymousService
getProjectMembers in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasUser
public Version[] getVersions(String projectName)
throws RedmineServiceException
RedmineAnonymousService
getVersions in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasVersion
public Version getVersion(String projectName,
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(String projectName,
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(String projectName,
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(String projectName,
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(String projectName)
throws RedmineServiceException
RedmineAnonymousService
getIssues in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasIssue
public Issue[] getOpenedIssues(String projectName)
throws RedmineServiceException
RedmineAnonymousService
getOpenedIssues in interface RedmineAnonymousServiceprojectName - the name of the project
RedmineServiceException - if any pb while retriving datasIssue
public Issue[] getClosedIssues(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(String requestName,
Class<T> type,
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(String requestName,
Class<T> type,
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(String requestName,
Class<T> klazz,
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(String requestName,
Class<T> klazz,
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 IllegalStateException,
RedmineServiceLoginException,
NullPointerException
RedmineServiceImplementor
checkNotLoggued in interface RedmineServiceImplementorsession - the session to test
RedmineServiceLoginException - if not anonymous
NullPointerException - if something is null
IllegalStateException
public void checkLoggued()
throws IllegalStateException,
RedmineServiceLoginException,
NullPointerException
RedmineServiceImplementor
checkLoggued in interface RedmineServiceImplementorIllegalStateException - if service not init
RedmineServiceLoginException - if not loggued
NullPointerException - if something is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||