-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed user request classes. Added RegisterUserRequest.
Signed-off-by: sugarylump <[email protected]>
- Loading branch information
1 parent
4486112
commit 85deb2c
Showing
5 changed files
with
99 additions
and
14 deletions.
There are no files selected for viewing
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
81 changes: 81 additions & 0 deletions
81
...da-common-data/src/main/java/org/roda/core/data/v2/user/requests/RegisterUserRequest.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,81 @@ | ||
package org.roda.core.data.v2.user.requests; | ||
|
||
import java.io.Serial; | ||
import java.io.Serializable; | ||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
import org.roda.core.data.common.SecureString; | ||
import org.roda.core.data.v2.generics.MetadataValue; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
/** | ||
* @author António Lindo <[email protected]> | ||
*/ | ||
@JsonInclude(JsonInclude.Include.ALWAYS) | ||
public class RegisterUserRequest implements Serializable { | ||
|
||
@Serial | ||
private static final long serialVersionUID = 2288990827132952813L; | ||
|
||
private String email; | ||
private String name; | ||
private String fullName; | ||
private SecureString password; | ||
private Set<MetadataValue> values; | ||
|
||
public RegisterUserRequest(String email, String name, String fullName, SecureString password, | ||
Set<MetadataValue> values) { | ||
this.email = email; | ||
this.name = name; | ||
this.fullName = fullName; | ||
this.password = password; | ||
this.values = values; | ||
} | ||
|
||
public RegisterUserRequest() { | ||
this.password = new SecureString(); | ||
this.values = new HashSet<>(); | ||
} | ||
|
||
public String getEmail() { | ||
return email; | ||
} | ||
|
||
public void setEmail(String email) { | ||
this.email = email; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getFullName() { | ||
return fullName; | ||
} | ||
|
||
public void setFullName(String fullName) { | ||
this.fullName = fullName; | ||
} | ||
|
||
public Set<MetadataValue> getValues() { | ||
return values; | ||
} | ||
|
||
public void setValues(Set<MetadataValue> values) { | ||
this.values = values; | ||
} | ||
|
||
public SecureString getPassword() { | ||
return password; | ||
} | ||
|
||
public void setPassword(SecureString password) { | ||
this.password = password; | ||
} | ||
} |
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
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
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