Commit 5b2b8889 authored by Jean-Mael BOIS's avatar Jean-Mael BOIS
Browse files

Translation in progress (end server-main) - #1

parent cd6059c2
......@@ -53,7 +53,6 @@ public abstract class AbstractContext extends AbstractServerObject implements IC
this.name = ctx.getName();
this.creator = ctx.getCreator();
this.lastModificationDate = ctx.getLastModificationDate();
}
@Override
......
......@@ -10,7 +10,7 @@ import java.util.concurrent.BlockingQueue;
/**
* Facade for the Main GTD Server Component.
*
* FIXME: This class should ne the ONLY visible class of the module !
* FIXME: This class should be the ONLY visible class of the module !
*/
public class GTDServerWithReactor implements GTDServer {
......
package fr.alma.gtd.server.main.commande;
import fr.alma.gtd.server.core.CallBack;
public class CommandSupprimerCompte implements Command {
public CommandSupprimerCompte(String username, String password, CallBack<String> callback) {
public class CommandDeleteAccount implements Command {
public CommandDeleteAccount(String username, String password, CallBack<String> callback) {
}
@Override
public void execute() {
// TODO
}
}
......@@ -7,55 +7,53 @@ import fr.alma.gtd.server.core.IContext;
import fr.alma.gtd.server.core.CallBack;
/**
* Commande de suppression d'un contexte.
* author Nobody
* Command to delete a context.
* author Nobody
* @version 1.0.0
*/
public final class CommandSupprimerContexte implements Command {
public final class CommandDeleteContext implements Command {
/**
* L'identifiant de l'utilisateur.
* The user ID.
*/
private final String identification;
/**
* Le contexte a supprimer.
* The context to be deleted.
*/
private final IContext contexte;
private final IContext context;
/**
* Le callback.
* The callback.
*/
private final CallBack<String> callback;
/**
* Le service de gestion de contexte.
* The context management service.
*/
private IContextServiceRemote contexteServiceRemote;
private IContextServiceRemote contextServiceRemote;
/**
* Le service de gestion d'utilisateurs.
* The user management service.
*/
private IUserServiceRemote utilisateurServiceRemote;
private IUserServiceRemote userviceRemote;
/**
* Le constructeur.
* @param i L'identifiant de l'utilisateur.
* @param c Le contexte a supprimer.
* @param ca Le callback.
* Constructor.
*
* @param i The user ID.
* @param c The context to be deleted.
* @param ca The callback.
*/
public CommandSupprimerContexte(final String i, final IContext c, final CallBack<String> ca) {
public CommandDeleteContext(final String i, final IContext c, final CallBack<String> ca) {
super();
this.identification = i;
this.contexte = c;
this.context = c;
this.callback = ca;
}
@Override
public void execute() {
// TODO
}
}
......@@ -6,55 +6,54 @@ import fr.alma.gtd.server.persistence.sessions.IIdeaServiceRemote;
import fr.alma.gtd.server.persistence.sessions.IUserServiceRemote;
/**
* Commande de suppression d'une idee.
* author Nobody
* Command to delete an idea.
* author Nobody
* @version 1.0.0
*/
public final class CommandSupprimerIdee implements Command {
public final class CommandDeleteIdea implements Command {
/**
* L'identifiant de l'utilisateur.
* The user ID.
*/
private final String identification;
/**
* L'idee a supprimer.
* The idea to be deleted.
*/
private final IIdea idee;
private final IIdea idea;
/**
* Le callback.
* The callback.
*/
private final CallBack<String> callback;
/**
* Le service de gestion d'idee.
* The idea management service.
*/
private IIdeaServiceRemote ideeServiceRemote;
private IIdeaServiceRemote ideaServiceRemote;
/**
* Le service de gestion d'utilisateurs.
* The user management service.
*/
private IUserServiceRemote utilisateurServiceRemote;
private IUserServiceRemote userServiceRemote;
/**
* Le constructeur.
* @param ii L'identifiant de l'utilisateur.
* @param i L'idee a supprimer.
* @param c Le callback.
* Constructor.
*
* @param ii The user ID.
* @param i The idea to be deleted.
* @param c The callback.
*/
public CommandSupprimerIdee(final String ii, final IIdea i, final CallBack<String> c) {
public CommandDeleteIdea(final String ii, final IIdea i, final CallBack<String> c) {
super();
this.identification = ii;
this.idee = i;
this.idea = i;
this.callback = c;
}
@Override
public void execute() {
// TODO
}
}
......@@ -5,56 +5,56 @@ import fr.alma.gtd.server.persistence.sessions.IUserServiceRemote;
import fr.alma.gtd.server.core.IProject;
import fr.alma.gtd.server.core.CallBack;
/**
* Commande de suppression d'un projet.
* author Nobody
* Command to delete a project.
* author Nobody
* @version 1.0.0
*/
public final class CommandSupprimerProjet implements Command {
public final class CommandDeleteProject implements Command {
/**
* L'identifiant de l'utilisateur.
* The user ID.
*/
private final String identification;
/**
* Le projet a supprimer.
* The project to be deleted.
*/
private final IProject projet;
private final IProject project;
/**
* Le callback.
* The callback.
*/
private final CallBack<String> callback;
/**
* Le service de gestion de projet.
* The project management service.
*/
private IProjectServiceRemote projetServiceRemote;
private IProjectServiceRemote projectServiceRemote;
/**
* Le service de gestion d'utilisateurs.
* The user management service.
*/
private IUserServiceRemote utilisateurServiceRemote;
private IUserServiceRemote userServiceRemote;
/**
* Le constructeur.
* @param i L'identifiant de l'utilisateur.
* @param p Le projet a supprimer.
* @param c Le callback.
* Constructor.
*
* @param i The user ID.
* @param p The project to be deleted.
* @param c The callback.
*/
public CommandSupprimerProjet(final String i, final IProject p, final CallBack<String> c) {
public CommandDeleteProject(final String i, final IProject p, final CallBack<String> c) {
super();
this.identification = i;
this.projet = p;
this.project = p;
this.callback = c;
}
@Override
public void execute() {
// TODO
}
}
......@@ -5,57 +5,56 @@ import fr.alma.gtd.server.persistence.sessions.IUserServiceRemote;
import fr.alma.gtd.server.core.ITag;
import fr.alma.gtd.server.core.CallBack;
/**
* Commande de suppression d'un tag.
* author Nobody
* Command to delete a tag.
* author Nobody
* @version 1.0.0
*/
public final class CommandSupprimerTag implements Command {
public final class CommandDeleteTag implements Command {
/**
* L'identifiant de l'utilisateur.
* The user ID.
*/
private final String identification;
/**
* Le tag a supprimer.
* The tag to delete.
*/
private final ITag tag;
/**
* Le callback.
* The callback.
*/
private final CallBack<String> callback;
/**
* Le service de gestion de tags.
* The tag management service.
*/
private ITagServiceRemote tagServiceRemote;
/**
* Le service de gestion d'utilisateurs.
* The user management service.
*/
private IUserServiceRemote utilisateurServiceRemote;
/**
* Le constructeur.
* @param i L'identifiant de l'utilisateur.
* @param t Le tag a supprimer.
* @param c Le callback.
* Constructor.
*
* @param i The user ID.
* @param t The tag to delete.
* @param c The callback.
*/
public CommandSupprimerTag(final String i, final ITag t, final CallBack<String> c) {
public CommandDeleteTag(final String i, final ITag t, final CallBack<String> c) {
super();
this.identification = i;
this.tag = t;
this.callback = c;
}
@Override
public void execute() {
// TODO
}
}
......@@ -5,57 +5,56 @@ import fr.alma.gtd.server.persistence.sessions.IUserServiceRemote;
import fr.alma.gtd.server.core.ITask;
import fr.alma.gtd.server.core.CallBack;
/**
* Commande de suppression d'une tache.
* author Nobody
* Command to delete a task.
* author Nobody
* @version 1.0.0
*/
public final class CommandSupprimerTache implements Command {
public final class CommandDeleteTask implements Command {
/**
* L'identifiant de l'utilisateur.
* The user ID.
*/
private final String identification;
/**
* La tache a supprimer.
* The task to remove.
*/
private final ITask tache;
private final ITask task;
/**
* Le callback.
* The callback.
*/
private final CallBack<String> callback;
/**
* Le service de gestion de taches.
* The task management service.
*/
private ITaskServiceRemote tacheServiceRemote;
private ITaskServiceRemote taskServiceRemote;
/**
* Le service de gestion d'utilisateurs.
* The user management service.
*/
private IUserServiceRemote utilisateurServiceRemote;
private IUserServiceRemote userServiceRemote;
/**
* Le constructeur.
* @param i L'identifiant de l'utilisateur.
* @param t La tache a supprimer.
* @param c Le callback.
* Constructor.
*
* @param i The user ID.
* @param t The task to remove.
* @param c The callback.
*/
public CommandSupprimerTache(final String i, final ITask t, final CallBack<String> c) {
public CommandDeleteTask(final String i, final ITask t, final CallBack<String> c) {
super();
this.identification = i;
this.tache = t;
this.task = t;
this.callback = c;
}
@Override
public void execute() {
// TODO
}
}
......@@ -6,20 +6,19 @@ import java.util.Date;
import java.util.List;
import fr.alma.gtd.server.core.CallBack;
public class CommandTelechargeArchive implements Command {
public class CommandDownloadArchive implements Command {
public CommandTelechargeArchive(Date date, CallBack<List<IServerObject>> callback) {
public CommandDownloadArchive(Date date, CallBack<List<IServerObject>> callback) {
}
public CommandTelechargeArchive(CallBack<List<IServerObject>> callback) {
public CommandDownloadArchive(CallBack<List<IServerObject>> callback) {
}
@Override
public void execute() {
// TODO
}
}
......@@ -6,13 +6,14 @@ import fr.alma.gtd.server.core.ITag;
import java.util.Date;
import java.util.List;
import fr.alma.gtd.server.core.CallBack;
public class CommandTelechargeParTag implements Command {
public CommandTelechargeParTag(ITag tag, CallBack<List<ITask>> callback) {
public class CommandDownloadByTag implements Command {
public CommandDownloadByTag(ITag tag, CallBack<List<ITask>> callback) {
}
public CommandTelechargeParTag(Date date, ITag tag, CallBack<List<ITask>> callback) {
public CommandDownloadByTag(Date date, ITag tag, CallBack<List<ITask>> callback) {
}
......
......@@ -6,20 +6,20 @@ import java.util.Date;
import java.util.List;
import fr.alma.gtd.server.core.CallBack;
public class CommandTelechargeCalendrier implements Command {
public CommandTelechargeCalendrier(CallBack<List<ITask>> callback) {
public class CommandDownloadCalendar implements Command {
public CommandDownloadCalendar(CallBack<List<ITask>> callback) {
}
public CommandTelechargeCalendrier(Date date, CallBack<List<ITask>> callback) {
public CommandDownloadCalendar(Date date, CallBack<List<ITask>> callback) {
}
@Override
public void execute() {
// TODO
}
}
......@@ -6,46 +6,47 @@ import fr.alma.gtd.server.core.IContext;
import java.util.List;
import fr.alma.gtd.server.core.CallBack;
/**
* Commande de telechargement d'un contexte.
* Context download command.
* author Nobody
*
* @version 1.0.0
*/
public final class CommandTelechargeContextes implements Command {
public final class CommandDownloadContext implements Command {
/**
* L'identifiant de l'utilisateur.
* The user ID.
*/
private final String identification;
/**
* Le nom d'utilisateur.
* The username.
*/
private final String username;
/**
* Le callback.
* The callback.
*/
private final CallBack<List<IContext>> callback;
/**
* Le service de gestion de contexte.
* The context management service.
*/
private IContextServiceRemote contexteServiceRemote;
private IContextServiceRemote contextServiceRemote;
/**
* Le service de gestion d'utilisateurs.
* The user management service.
*/
private IUserServiceRemote utilisateurServiceRemote;
private IUserServiceRemote userServiceRemote;
/**
* Le constructeur.
* Constructor.
*
* @param i L'identifiant de l'utilisateur.
* @param c Le callback.
* @param i The user ID.
* @param c The callback.
*/
public CommandTelechargeContextes(final String i, final CallBack<List<IContext>> c) {
public CommandDownloadContext(final String i, final CallBack<List<IContext>> c) {
super();
this.identification = i;
this.callback = c;
......@@ -53,13 +54,13 @@ public final class CommandTelechargeContextes implements Command {
}
/**
* Le constructeur.
* Constructor.
*
* @param i L'identifiant de l'utilisateur.
* @param u Le nom d'utilisateur.
* @param c Le callback.
* @param i The user ID.
* @param u The username.
* @param c The callback.
*/
public CommandTelechargeContextes(final String i, final String u, final CallBack<List<IContext>> c) {
public CommandDownloadContext(final String i, final String u, final CallBack<List<IContext>> c) {
super();
this.identification = i;
this.username = u;
......@@ -69,7 +70,6 @@ public final class CommandTelechargeContextes implements Command {
@Override
public void execute() {
// TODO
}
}
......@@ -4,20 +4,19 @@ import fr.alma.gtd.server.core.*;
import java.util.List;
public class CommandTelechargeIdees implements Command {