|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RedmineServiceImplementor
Technical contract to implements a redmine service which wrap the
RedmineRestClient.
DefaultRedmineServiceImplementor.
Any concrete implentation of a redmine service should implements this..
DefaultRedmineServiceImplementor| 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. |
|
|
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. |
|
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. |
|
| Method Detail |
|---|
boolean isInit()
true is service is init and loggued to Redmine service,
false otherwise.
RedmineServiceImplementor init(org.nuiton.io.rest.RestClient session)
throws RedmineServiceException
session - the redmine client to be used by the service
RedmineServiceException - if any pbRedmineRestClient
RedmineServiceImplementor init(org.nuiton.io.rest.RestClientConfiguration configuration)
throws RedmineServiceException
configuration - the configuration to be used to init the internal redmine client
RedmineServiceException - if any pb
void destroy()
throws RedmineServiceException
RedmineServiceException - if any pb
<T> T getData(String requestName,
Class<T> type,
Object... args)
throws RedmineServiceException
T - 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
<T> T[] getDatas(String requestName,
Class<T> type,
Object... args)
throws RedmineServiceException
T - 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
<T> T sendData(String requestName,
Class<T> klazz,
Object... args)
throws RedmineServiceException
T - 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
<T> T[] sendDatas(String requestName,
Class<T> klazz,
Object... args)
throws RedmineServiceException
T - 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
void checkLoggued()
throws IllegalStateException,
RedmineServiceLoginException,
NullPointerException
IllegalStateException - if service not init
RedmineServiceLoginException - if not loggued
NullPointerException - if something is null
void checkNotLoggued(org.nuiton.io.rest.RestClient session)
throws RedmineServiceLoginException,
NullPointerException
session - the session to test
RedmineServiceLoginException - if not anonymous
NullPointerException - if something is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||