Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mathieu GICQUEL
GTD Server
Commits
5b2b8889
Commit
5b2b8889
authored
Mar 30, 2021
by
Jean-Mael BOIS
Browse files
Translation in progress (end server-main) -
#1
parent
cd6059c2
Changes
41
Hide whitespace changes
Inline
Side-by-side
gtd-server-core/src/main/java/fr/alma/gtd/server/core/AbstractContext.java
View file @
5b2b8889
...
...
@@ -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
...
...
gtd-server-main/src/main/java/fr/alma/gtd/server/main/GTDServerWithReactor.java
View file @
5b2b8889
...
...
@@ -10,7 +10,7 @@ import java.util.concurrent.BlockingQueue;
/**
* Facade for the Main GTD Server Component.
*
* FIXME: This class should
n
e the ONLY visible class of the module !
* FIXME: This class should
b
e the ONLY visible class of the module !
*/
public
class
GTDServerWithReactor
implements
GTDServer
{
...
...
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
SupprimerCompte
.java
→
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
DeleteAccount
.java
View file @
5b2b8889
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
}
}
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Supprimer
Context
e
.java
→
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Delete
Context.java
View file @
5b2b8889
...
...
@@ -7,55 +7,53 @@ import fr.alma.gtd.server.core.IContext;
import
fr.alma.gtd.server.core.CallBack
;
/**
* Command
e de suppression d'un
context
e
.
* author Nobody
* Command
to delete a
context.
* author Nobody
* @version 1.0.0
*/
public
final
class
Command
Supprimer
Context
e
implements
Command
{
public
final
class
Command
Delete
Context
implements
Command
{
/**
*
L'identifiant de l'utilisateur
.
*
The user ID
.
*/
private
final
String
identification
;
/**
*
L
e context
e a supprimer
.
*
Th
e context
to be deleted
.
*/
private
final
IContext
context
e
;
private
final
IContext
context
;
/**
*
L
e callback.
*
Th
e callback.
*/
private
final
CallBack
<
String
>
callback
;
/**
*
Le service de gestion de context
e.
*
The context management servic
e.
*/
private
IContextServiceRemote
context
e
ServiceRemote
;
private
IContextServiceRemote
contextServiceRemote
;
/**
*
L
e ser
vice de gestion d'utilisateurs
.
*
Th
e
u
ser
management service
.
*/
private
IUserServiceRemote
u
tilisateurS
erviceRemote
;
private
IUserServiceRemote
u
s
erviceRemote
;
/**
* 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
Command
Supprimer
Context
e
(
final
String
i
,
final
IContext
c
,
final
CallBack
<
String
>
ca
)
{
public
Command
Delete
Context
(
final
String
i
,
final
IContext
c
,
final
CallBack
<
String
>
ca
)
{
super
();
this
.
identification
=
i
;
this
.
context
e
=
c
;
this
.
context
=
c
;
this
.
callback
=
ca
;
}
@Override
public
void
execute
()
{
// TODO
}
}
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Supprimer
Ide
e
.java
→
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Delete
Ide
a
.java
View file @
5b2b8889
...
...
@@ -6,55 +6,54 @@ import fr.alma.gtd.server.persistence.sessions.IIdeaServiceRemote;
import
fr.alma.gtd.server.persistence.sessions.IUserServiceRemote
;
/**
* Command
e de suppression d'une
ide
e
.
* author Nobody
* Command
to delete an
ide
a
.
* author Nobody
* @version 1.0.0
*/
public
final
class
Command
Supprimer
Ide
e
implements
Command
{
public
final
class
Command
Delete
Ide
a
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
ide
e
;
private
final
IIdea
ide
a
;
/**
*
L
e callback.
*
Th
e callback.
*/
private
final
CallBack
<
String
>
callback
;
/**
*
Le service de gestion d'ide
e.
*
The idea management servic
e.
*/
private
IIdeaServiceRemote
ide
e
ServiceRemote
;
private
IIdeaServiceRemote
ide
a
ServiceRemote
;
/**
*
L
e ser
vice de gestion d'utilisateurs
.
*
Th
e
u
ser
management service
.
*/
private
IUserServiceRemote
u
tilisateu
rServiceRemote
;
private
IUserServiceRemote
u
se
rServiceRemote
;
/**
* 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
Command
Supprimer
Ide
e
(
final
String
ii
,
final
IIdea
i
,
final
CallBack
<
String
>
c
)
{
public
Command
Delete
Ide
a
(
final
String
ii
,
final
IIdea
i
,
final
CallBack
<
String
>
c
)
{
super
();
this
.
identification
=
ii
;
this
.
ide
e
=
i
;
this
.
ide
a
=
i
;
this
.
callback
=
c
;
}
@Override
public
void
execute
()
{
// TODO
}
}
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Supprimer
Projet.java
→
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Delete
Proje
c
t.java
View file @
5b2b8889
...
...
@@ -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
;
/**
* Command
e de suppression d'un
projet.
* author Nobody
* Command
to delete a
proje
c
t.
* author Nobody
* @version 1.0.0
*/
public
final
class
Command
Supprimer
Projet
implements
Command
{
public
final
class
Command
Delete
Proje
c
t
implements
Command
{
/**
*
L'identifiant de l'utilisateur
.
*
The user ID
.
*/
private
final
String
identification
;
/**
*
L
e projet
a supprimer
.
*
Th
e proje
c
t
to be deleted
.
*/
private
final
IProject
projet
;
private
final
IProject
proje
c
t
;
/**
*
L
e callback.
*
Th
e callback.
*/
private
final
CallBack
<
String
>
callback
;
/**
*
Le service de gestion de projet
.
*
The project management service
.
*/
private
IProjectServiceRemote
projetServiceRemote
;
private
IProjectServiceRemote
proje
c
tServiceRemote
;
/**
*
L
e ser
vice de gestion d'utilisateurs
.
*
Th
e
u
ser
management service
.
*/
private
IUserServiceRemote
u
tilisateu
rServiceRemote
;
private
IUserServiceRemote
u
se
rServiceRemote
;
/**
* 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
Command
Supprimer
Projet
(
final
String
i
,
final
IProject
p
,
final
CallBack
<
String
>
c
)
{
public
Command
Delete
Proje
c
t
(
final
String
i
,
final
IProject
p
,
final
CallBack
<
String
>
c
)
{
super
();
this
.
identification
=
i
;
this
.
projet
=
p
;
this
.
proje
c
t
=
p
;
this
.
callback
=
c
;
}
@Override
public
void
execute
()
{
// TODO
}
}
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Supprimer
Tag.java
→
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Delete
Tag.java
View file @
5b2b8889
...
...
@@ -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
;
/**
* Command
e de suppression d'un
tag.
* author Nobody
* Command
to delete a
tag.
* author Nobody
* @version 1.0.0
*/
public
final
class
Command
Supprimer
Tag
implements
Command
{
public
final
class
Command
Delete
Tag
implements
Command
{
/**
*
L'identifiant de l'utilisateur
.
*
The user ID
.
*/
private
final
String
identification
;
/**
*
L
e tag
a supprimer
.
*
Th
e tag
to delete
.
*/
private
final
ITag
tag
;
/**
*
L
e callback.
*
Th
e callback.
*/
private
final
CallBack
<
String
>
callback
;
/**
*
Le service de gestion de tags
.
*
The tag management service
.
*/
private
ITagServiceRemote
tagServiceRemote
;
/**
*
L
e ser
vice de gestion d'utilisateurs
.
*
Th
e
u
ser
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
Command
Supprimer
Tag
(
final
String
i
,
final
ITag
t
,
final
CallBack
<
String
>
c
)
{
public
Command
Delete
Tag
(
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
}
}
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
SupprimerTache
.java
→
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
DeleteTask
.java
View file @
5b2b8889
...
...
@@ -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
;
/**
* Command
e de suppression d'une tache
.
* author Nobody
* Command
to delete a task
.
* author Nobody
* @version 1.0.0
*/
public
final
class
Command
SupprimerTache
implements
Command
{
public
final
class
Command
DeleteTask
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
ta
che
;
private
final
ITask
ta
sk
;
/**
*
L
e callback.
*
Th
e callback.
*/
private
final
CallBack
<
String
>
callback
;
/**
*
Le service de gestion de taches
.
*
The task management service
.
*/
private
ITaskServiceRemote
ta
che
ServiceRemote
;
private
ITaskServiceRemote
ta
sk
ServiceRemote
;
/**
*
L
e ser
vice de gestion d'utilisateurs
.
*
Th
e
u
ser
management service
.
*/
private
IUserServiceRemote
u
tilisateu
rServiceRemote
;
private
IUserServiceRemote
u
se
rServiceRemote
;
/**
* 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
Command
SupprimerTache
(
final
String
i
,
final
ITask
t
,
final
CallBack
<
String
>
c
)
{
public
Command
DeleteTask
(
final
String
i
,
final
ITask
t
,
final
CallBack
<
String
>
c
)
{
super
();
this
.
identification
=
i
;
this
.
ta
che
=
t
;
this
.
ta
sk
=
t
;
this
.
callback
=
c
;
}
@Override
public
void
execute
()
{
// TODO
}
}
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Telecharge
Archive.java
→
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Download
Archive.java
View file @
5b2b8889
...
...
@@ -6,20 +6,19 @@ import java.util.Date;
import
java.util.List
;
import
fr.alma.gtd.server.core.CallBack
;
public
class
Command
Telecharge
Archive
implements
Command
{
public
class
Command
Download
Archive
implements
Command
{
public
Command
Telecharge
Archive
(
Date
date
,
CallBack
<
List
<
IServerObject
>>
callback
)
{
public
Command
Download
Archive
(
Date
date
,
CallBack
<
List
<
IServerObject
>>
callback
)
{
}
public
Command
Telecharge
Archive
(
CallBack
<
List
<
IServerObject
>>
callback
)
{
public
Command
Download
Archive
(
CallBack
<
List
<
IServerObject
>>
callback
)
{
}
@Override
public
void
execute
()
{
// TODO
}
}
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
TelechargePar
Tag.java
→
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
DownloadBy
Tag.java
View file @
5b2b8889
...
...
@@ -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
Command
TelechargePar
Tag
(
Date
date
,
ITag
tag
,
CallBack
<
List
<
ITask
>>
callback
)
{
public
Command
DownloadBy
Tag
(
Date
date
,
ITag
tag
,
CallBack
<
List
<
ITask
>>
callback
)
{
}
...
...
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Telecharge
Calend
rie
r.java
→
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Download
Calend
a
r.java
View file @
5b2b8889
...
...
@@ -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
Command
Telecharge
Calend
rie
r
(
Date
date
,
CallBack
<
List
<
ITask
>>
callback
)
{
public
Command
Download
Calend
a
r
(
Date
date
,
CallBack
<
List
<
ITask
>>
callback
)
{
}
@Override
public
void
execute
()
{
// TODO
}
}
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Telecharge
Context
es
.java
→
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Download
Context.java
View file @
5b2b8889
...
...
@@ -6,46 +6,47 @@ import fr.alma.gtd.server.core.IContext;
import
java.util.List
;
import
fr.alma.gtd.server.core.CallBack
;
/**
* Co
mmande de telechargement d'un contexte
.
* Co
ntext download command
.
* author Nobody
*
* @version 1.0.0
*/
public
final
class
Command
Telecharge
Context
es
implements
Command
{
public
final
class
Command
Download
Context
implements
Command
{
/**
*
L'identifiant de l'utilisateur
.
*
The user ID
.
*/
private
final
String
identification
;
/**
*
Le nom d'utilisateur
.
*
The username
.
*/
private
final
String
username
;
/**
*
L
e callback.
*
Th
e callback.
*/
private
final
CallBack
<
List
<
IContext
>>
callback
;
/**
*
Le service de gestion de context
e.
*
The context management servic
e.
*/
private
IContextServiceRemote
context
e
ServiceRemote
;
private
IContextServiceRemote
contextServiceRemote
;
/**
*
L
e ser
vice de gestion d'utilisateurs
.
*
Th
e
u
ser
management service
.
*/
private
IUserServiceRemote
u
tilisateu
rServiceRemote
;
private
IUserServiceRemote
u
se
rServiceRemote
;
/**
*
Le c
onstruct
eu
r.
*
C
onstruct
o
r.
*
* @param i
L'identifiant de l'utilisateur
.
* @param c
L
e callback.
* @param i
The user ID
.
* @param c
Th
e callback.
*/
public
Command
Telecharge
Context
es
(
final
String
i
,
final
CallBack
<
List
<
IContext
>>
c
)
{
public
Command
Download
Context
(
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 c
onstruct
eu
r.
*
C
onstruct
o
r.
*
* @param i
L'identifiant de l'utilisateur
.
* @param u
Le nom d'utilisateur
.
* @param c
L
e callback.
* @param i
The user ID
.
* @param u
The username
.
* @param c
Th
e callback.
*/
public
Command
Telecharge
Context
es
(
final
String
i
,
final
String
u
,
final
CallBack
<
List
<
IContext
>>
c
)
{
public
Command
Download
Context
(
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
}
}
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Telecharge
Ide
e
s.java
→
gtd-server-main/src/main/java/fr/alma/gtd/server/main/commande/Command
Download
Ide
a
s.java
View file @
5b2b8889
...
...
@@ -4,20 +4,19 @@ import fr.alma.gtd.server.core.*;
import
java.util.List
;