|
||||||||||
| 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(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. |
|
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. |
|
| 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(java.lang.String requestName,
java.lang.Class<T> type,
java.lang.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(java.lang.String requestName,
java.lang.Class<T> type,
java.lang.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(java.lang.String requestName,
java.lang.Class<T> klazz,
java.lang.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(java.lang.String requestName,
java.lang.Class<T> klazz,
java.lang.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 java.lang.IllegalStateException,
RedmineServiceLoginException,
java.lang.NullPointerException
java.lang.IllegalStateException - if service not init
RedmineServiceLoginException - if not loggued
java.lang.NullPointerException - if something is null
void checkNotLoggued(org.nuiton.io.rest.RestClient session)
throws RedmineServiceLoginException,
java.lang.NullPointerException
session - the session to test
RedmineServiceLoginException - if not anonymous
java.lang.NullPointerException - if something is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||