Commit 7bed6690 authored by ducanh-le's avatar ducanh-le
Browse files

Implement methods to add commands for GTDServerWithReactor. Ref #43

parent 40afdf14
......@@ -13,103 +13,103 @@ public interface GTDServer {
void createAccount(final String username, final String password, final String pseudo, final CallBack<String> callback);
void createContext(final IContext context, final String identification, final CallBack<IContext> callback);
void createContext(final IContext context, final String identification, final CallBack<IContext> callback) throws Exception;
void createIdea(final IIdea idea, final String identification, final CallBack<IIdea> callback);
void createIdea(final IIdea idea, final String identification, final CallBack<IIdea> callback) throws Exception;
void createProject(final IProject project, final String identification, final CallBack<IProject> callback);
void createProject(final IProject project, final String identification, final CallBack<IProject> callback) throws Exception;
void createTask(final ITask task, final String identification, final CallBack<ITask> callback);
void createTask(final ITask task, final String identification, final CallBack<ITask> callback) throws Exception;
void createTag(final ITag tag, final String identification, final CallBack<ITag> callback);
void createTag(final ITag tag, final String identification, final CallBack<ITag> callback) throws Exception;
void disconnect(final String identification, final CallBack<String> callback);
void disconnect(final String identification, final CallBack<String> callback) throws Exception;
void sendContext(final IContext context, final UpdateMode mode, final String identification, final CallBack<IContext> callback);
void sendContext(final IContext context, final UpdateMode mode, final String identification, final CallBack<IContext> callback) throws Exception;
void sendIdea(final IIdea idea, final UpdateMode mode, final String identification, final CallBack<IIdea> callback);
void sendIdea(final IIdea idea, final UpdateMode mode, final String identification, final CallBack<IIdea> callback) throws Exception;
void sendProject(final IProject project, final UpdateMode mode, final String identification, final CallBack<IProject> callback);
void sendProject(final IProject project, final UpdateMode mode, final String identification, final CallBack<IProject> callback) throws Exception;
void sendTask(final ITask task, final UpdateMode mode, final String identification, final CallBack<ITask> callback);
void sendTask(final ITask task, final UpdateMode mode, final String identification, final CallBack<ITask> callback) throws Exception;
void sendTag(final ITag tag, final UpdateMode mode, final String identification, final CallBack<ITag> callback);
void sendTag(final ITag tag, final UpdateMode mode, final String identification, final CallBack<ITag> callback) throws Exception;
void login(final String username, final String password, final CallBack<String> callback);
void editPassword(final String oldPassword, final String newPassword, final String identification, final CallBack<String> callback);
void editPassword(final String oldPassword, final String newPassword, final String identification, final CallBack<String> callback) throws Exception;
void editPseudo(final String pseudo, final String identification, final CallBack<String> callback);
void editPseudo(final String pseudo, final String identification, final CallBack<String> callback) throws Exception;
void deleteAccount(final String username, final String password, final String identification, final CallBack<String> callback);
void deleteAccount(final String username, final String password, final String identification, final CallBack<String> callback) throws Exception;
void deleteContext(final IContext context, final String identification, final CallBack<String> callback);
void deleteContext(final IContext context, final String identification, final CallBack<String> callback) throws Exception;
void deleteIdea(final IIdea idea, final String identification, final CallBack<String> callback);
void deleteIdea(final IIdea idea, final String identification, final CallBack<String> callback) throws Exception;
void deleteProject(final IProject project, final String identification, final CallBack<String> callback);
void deleteProject(final IProject project, final String identification, final CallBack<String> callback) throws Exception;
void deleteTask(final ITask task, final String identification, final CallBack<String> callback);
void deleteTask(final ITask task, final String identification, final CallBack<String> callback) throws Exception;
void deleteTag(final ITag tag, final String identification, final CallBack<String> callback);
void deleteTag(final ITag tag, final String identification, final CallBack<String> callback) throws Exception;
void downloadArchive(final String identification, final CallBack<List<IServerObject>> callback);
void downloadArchive(final String identification, final CallBack<List<IServerObject>> callback) throws Exception;
void downloadArchive(final Date date, final String identification, final CallBack<List<IServerObject>> callback);
void downloadArchive(final Date date, final String identification, final CallBack<List<IServerObject>> callback) throws Exception;
void downloadCalendar(final String identification, final CallBack<List<ITask>> callback);
void downloadCalendar(final String identification, final CallBack<List<ITask>> callback) throws Exception;
void downloadCalendar(final Date date, final String identification, final CallBack<List<ITask>> callback);
void downloadCalendar(final Date date, final String identification, final CallBack<List<ITask>> callback) throws Exception;
void downloadContext(final String identification, final CallBack<List<IContext>> callback);
void downloadContext(final String identification, final CallBack<List<IContext>> callback) throws Exception;
void downloadIdeas(final String identification, final CallBack<List<IIdea>> callback);
void downloadIdeas(final String identification, final CallBack<List<IIdea>> callback) throws Exception;
void downloadInbox(final String identification, final CallBack<List<IIdea>> callback);
void downloadInbox(final String identification, final CallBack<List<IIdea>> callback) throws Exception;
void downloadInbox(final Date date, final String identification, final CallBack<List<IIdea>> callback);
void downloadInbox(final Date date, final String identification, final CallBack<List<IIdea>> callback) throws Exception;
void downloadParticipants(final String identification, final CallBack<List<IParticipant>> callback);
void downloadParticipants(final String identification, final CallBack<List<IParticipant>> callback) throws Exception;
void downloadTrashcan(final String identification, final CallBack<List<IServerObject>> callback);
void downloadTrashcan(final String identification, final CallBack<List<IServerObject>> callback) throws Exception;
void downloadTrashcan(final Date date, final String identification, final CallBack<List<IServerObject>> callback);
void downloadTrashcan(final Date date, final String identification, final CallBack<List<IServerObject>> callback) throws Exception;
void downloadNextTasks(final String identification, final CallBack<List<ITask>> callback);
void downloadNextTasks(final String identification, final CallBack<List<ITask>> callback) throws Exception;
void downloadNextTasks(final Date date, final String identification, final CallBack<List<ITask>> callback);
void downloadNextTasks(final Date date, final String identification, final CallBack<List<ITask>> callback) throws Exception;
void downloadNextTasksByContext(final IContext context, final String identification, final CallBack<List<ITask>> callback);
void downloadNextTasksByContext(final IContext context, final String identification, final CallBack<List<ITask>> callback) throws Exception;
void downloadNextTasksByContext(final Date date, final IContext context, final String identification, final CallBack<List<ITask>> callback);
void downloadNextTasksByContext(final Date date, final IContext context, final String identification, final CallBack<List<ITask>> callback) throws Exception;
void downloadProjects(final String identification, final CallBack<List<IProject>> callback);
void downloadProjects(final String identification, final CallBack<List<IProject>> callback) throws Exception;
void downloadTaskByTag(final ITag tag, final String identification, final CallBack<List<ITask>> callback);
void downloadTaskByTag(final ITag tag, final String identification, final CallBack<List<ITask>> callback) throws Exception;
void downloadTaskByTag(final Date date, final ITag tag, final String identification, final CallBack<List<ITask>> callback);
void downloadTaskByTag(final Date date, final ITag tag, final String identification, final CallBack<List<ITask>> callback) throws Exception;
void downloadTasks(final String identification, final CallBack<List<ITask>> callback);
void downloadTasks(final String identification, final CallBack<List<ITask>> callback) throws Exception;
void downloadTags(final String identification, final CallBack<List<ITag>> callback);
void downloadTags(final String identification, final CallBack<List<ITag>> callback) throws Exception;
void downloadContexts(final String username, final String identification, final CallBack<List<IContext>> callback);
void downloadContexts(final String username, final String identification, final CallBack<List<IContext>> callback) throws Exception;
void downloadIdeas(final String username, final String identification, final CallBack<List<IIdea>> callback);
void downloadIdeas(final String username, final String identification, final CallBack<List<IIdea>> callback) throws Exception;
void downloadLog(final String identification, final CallBack<List<String>> callback);
void downloadLog(final String identification, final CallBack<List<String>> callback) throws Exception;
void downloadLog(final Date date, final String identification, final CallBack<List<String>> callback);
void downloadLog(final Date date, final String identification, final CallBack<List<String>> callback) throws Exception;
void downloadLog(final String username, final String identification, final CallBack<List<String>> callback);
void downloadLog(final String username, final String identification, final CallBack<List<String>> callback) throws Exception;
void downloadLogAdmin(final String identification, final CallBack<List<String>> callback);
void downloadLogAdmin(final String identification, final CallBack<List<String>> callback) throws Exception;
void downloadProjects(final String username, final String identification, final CallBack<List<IProject>> callback);
void downloadProjects(final String username, final String identification, final CallBack<List<IProject>> callback) throws Exception;
void downloadTasks(final String username, final String identification, final CallBack<List<ITask>> callback);
void downloadTasks(final String username, final String identification, final CallBack<List<ITask>> callback) throws Exception;
void downloadTags(final String username, final String identification, final CallBack<List<ITag>> callback);
void downloadTags(final String username, final String identification, final CallBack<List<ITag>> callback) throws Exception;
void start();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment