-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Now there is an endpoint to add wf comments
- Loading branch information
Showing
4 changed files
with
404 additions
and
4 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
dotCMS/src/main/java/com/dotcms/rest/api/v1/workflow/ResponseEntityWorkflowCommentView.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,13 @@ | ||
package com.dotcms.rest.api.v1.workflow; | ||
|
||
import com.dotcms.rest.ResponseEntityView; | ||
|
||
/** | ||
* This class is used to return a WorkflowTimelineItemView object as a response entity. | ||
* @author jsanca | ||
*/ | ||
public class ResponseEntityWorkflowCommentView extends ResponseEntityView<WorkflowTimelineItemView> { | ||
public ResponseEntityWorkflowCommentView(final WorkflowTimelineItemView entity) { | ||
super(entity); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
dotCMS/src/main/java/com/dotcms/rest/api/v1/workflow/WorkflowCommentForm.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,22 @@ | ||
package com.dotcms.rest.api.v1.workflow; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* This class is used to represent a WorkflowCommentForm object. | ||
* @author jsanca | ||
*/ | ||
public class WorkflowCommentForm { | ||
|
||
private String comment; | ||
|
||
@JsonCreator | ||
public WorkflowCommentForm(@JsonProperty("comment") final String comment) { | ||
this.comment = comment; | ||
} | ||
|
||
public String getComment() { | ||
return comment; | ||
} | ||
} |
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.