-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Les listes sont maintenant partagé avec un certains nombres de personnes - Possibilité d'avoir plusieurs listes. - Possibilités d'avoir plusieurs bénéficiaires par liste - Il est maintenant possible d'ajouter plusieurs liens - Il est aussi possible d'ajouter une photo. - Participez à un cadeau qui est déjà offert. - Ajouté des idées sur la liste d'une autre personne qu'elle ne verra pas.
- Loading branch information
Showing
30 changed files
with
1,619 additions
and
405 deletions.
There are no files selected for viewing
5 changes: 4 additions & 1 deletion
5
liste-envies-war/src/main/java/fr/desaintsteban/liste/envies/dto/AppUserDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 0 additions & 89 deletions
89
liste-envies-war/src/main/java/fr/desaintsteban/liste/envies/dto/EnvieDto.java
This file was deleted.
Oops, something went wrong.
110 changes: 110 additions & 0 deletions
110
liste-envies-war/src/main/java/fr/desaintsteban/liste/envies/dto/EnvyDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
package fr.desaintsteban.liste.envies.dto; | ||
|
||
import fr.desaintsteban.liste.envies.model.Link; | ||
import org.codehaus.jackson.annotate.JsonIgnoreProperties; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* 01/10/2014. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class EnvyDto { | ||
private Long id; | ||
|
||
private String owner; | ||
private Boolean suggest = false; | ||
private String label; | ||
|
||
private String description; | ||
|
||
private String price; | ||
private String picture; | ||
private List<Link> urls; | ||
private List<String> userTake; | ||
|
||
private List<NoteDto> notes; | ||
|
||
public EnvyDto() { | ||
} | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public String getOwner() { | ||
return owner; | ||
} | ||
|
||
public void setOwner(String owner) { | ||
this.owner = owner; | ||
} | ||
|
||
public Boolean getSuggest() { | ||
return suggest; | ||
} | ||
|
||
public void setSuggest(Boolean suggest) { | ||
this.suggest = suggest; | ||
} | ||
|
||
public String getLabel() { | ||
return label; | ||
} | ||
|
||
public void setLabel(String label) { | ||
this.label = label; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
public String getPicture() { | ||
return picture; | ||
} | ||
|
||
public void setPicture(String picture) { | ||
this.picture = picture; | ||
} | ||
|
||
public List<Link> getUrls() { | ||
return urls; | ||
} | ||
|
||
public void setUrls(List<Link> urls) { | ||
this.urls = urls; | ||
} | ||
|
||
public List<String> getUserTake() { | ||
return userTake; | ||
} | ||
|
||
public void setUserTake(List<String> userTake) { | ||
this.userTake = userTake; | ||
} | ||
|
||
public String getPrice() { | ||
return price; | ||
} | ||
|
||
public void setPrice(String price) { | ||
this.price = price; | ||
} | ||
|
||
public List<NoteDto> getNotes() { | ||
return notes; | ||
} | ||
|
||
public void setNotes(List<NoteDto> notes) { | ||
this.notes = notes; | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
liste-envies-war/src/main/java/fr/desaintsteban/liste/envies/dto/ListEnviesDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package fr.desaintsteban.liste.envies.dto; | ||
|
||
import org.codehaus.jackson.annotate.JsonIgnoreProperties; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class ListEnviesDto { | ||
private String name; | ||
|
||
private String title; | ||
private String description; | ||
private Boolean isOwner; | ||
private List<UserShareDto> users; | ||
|
||
private List<UserShareDto> owners; | ||
|
||
public List<UserShareDto> getOwners() { | ||
return owners; | ||
} | ||
|
||
public void setOwners(List<UserShareDto> owners) { | ||
this.owners = owners; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
public void setTitle(String title) { | ||
this.title = title; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
public List<UserShareDto> getUsers() { | ||
return users; | ||
} | ||
|
||
public void setUsers(List<UserShareDto> users) { | ||
this.users = users; | ||
} | ||
|
||
public Boolean getOwner() { | ||
return isOwner; | ||
} | ||
|
||
public void setOwner(Boolean owner) { | ||
isOwner = owner; | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
liste-envies-war/src/main/java/fr/desaintsteban/liste/envies/dto/UserShareDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package fr.desaintsteban.liste.envies.dto; | ||
|
||
import fr.desaintsteban.liste.envies.model.AppUser; | ||
import fr.desaintsteban.liste.envies.model.UserShareType; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* | ||
*/ | ||
public class UserShareDto { | ||
private String email; | ||
private String name; | ||
private UserShareType type; | ||
|
||
public UserShareDto() { | ||
} | ||
|
||
public UserShareDto(String email, String name, UserShareType type) { | ||
this.email = email; | ||
this.name = name; | ||
this.type = type; | ||
} | ||
|
||
public UserShareDto(String email, UserShareType type, Map<String, AppUser> userName) { | ||
this.email = email; | ||
this.type = type; | ||
if (userName != null && userName.containsKey(email)) { | ||
this.name = userName.get(email).getName(); | ||
} | ||
} | ||
|
||
public String getEmail() { | ||
return email; | ||
} | ||
|
||
public void setEmail(String email) { | ||
this.email = email; | ||
} | ||
|
||
public UserShareType getType() { | ||
return type; | ||
} | ||
|
||
public void setType(UserShareType type) { | ||
this.type = type; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.