forked from Taskana/taskana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes Taskana#2490: Set Owner of Task when Transferring
- Loading branch information
Showing
7 changed files
with
270 additions
and
20 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
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
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
27 changes: 27 additions & 0 deletions
27
...st-spring/src/main/java/pro/taskana/task/rest/models/TransferTaskRepresentationModel.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,27 @@ | ||
package pro.taskana.task.rest.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.beans.ConstructorProperties; | ||
|
||
public class TransferTaskRepresentationModel { | ||
|
||
@JsonProperty("owner") | ||
private final String owner; | ||
|
||
@JsonProperty("setTransferFlag") | ||
private final Boolean setTransferFlag; | ||
|
||
@ConstructorProperties({"setTransferFlag", "owner"}) | ||
public TransferTaskRepresentationModel(Boolean setTransferFlag, String owner) { | ||
this.setTransferFlag = setTransferFlag == null || setTransferFlag; | ||
this.owner = owner; | ||
} | ||
|
||
public Boolean getSetTransferFlag() { | ||
return setTransferFlag; | ||
} | ||
|
||
public String getOwner() { | ||
return owner; | ||
} | ||
} |
Oops, something went wrong.