-
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.
- Loading branch information
Showing
4 changed files
with
200 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
.../main/java/com/dotcms/rest/api/v1/workflow/ResponseEntityWorkflowHistoryCommentsView.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,16 @@ | ||
package com.dotcms.rest.api.v1.workflow; | ||
|
||
import com.dotcms.rest.ResponseEntityView; | ||
import com.dotmarketing.portlets.workflows.model.WorkflowTimelineItem; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* This class is used to return a list of WorkflowTimelineItem objects as a response entity. | ||
*/ | ||
public class ResponseEntityWorkflowHistoryCommentsView extends ResponseEntityView<List<WorkflowTimelineItemView>> { | ||
|
||
public ResponseEntityWorkflowHistoryCommentsView(final List<WorkflowTimelineItemView> entity) { | ||
super(entity); | ||
} | ||
} |
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
63 changes: 63 additions & 0 deletions
63
dotCMS/src/main/java/com/dotcms/rest/api/v1/workflow/WorkflowTimelineItemView.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,63 @@ | ||
package com.dotcms.rest.api.v1.workflow; | ||
|
||
import java.util.Date; | ||
|
||
/** | ||
* This class is used to return a list of WorkflowTimelineItem objects as a response entity. | ||
* | ||
* @author jsanca | ||
*/ | ||
public class WorkflowTimelineItemView { | ||
|
||
private final Date createdDate; | ||
private final String roleId; | ||
private final String postedBy; | ||
private final String actionId; | ||
private final String stepId; | ||
private final String commentDescription; | ||
private final String taskId; | ||
private final String type; | ||
|
||
public WorkflowTimelineItemView(Date createdDate, String roleId, String postedBy, String actionId, String stepId, String commentDescription, String taskId, String type) { | ||
this.createdDate = createdDate; | ||
this.roleId = roleId; | ||
this.postedBy = postedBy; | ||
this.actionId = actionId; | ||
this.stepId = stepId; | ||
this.commentDescription = commentDescription; | ||
this.taskId = taskId; | ||
this.type = type; | ||
} | ||
|
||
public Date getCreatedDate() { | ||
return createdDate; | ||
} | ||
|
||
public String getRoleId() { | ||
return roleId; | ||
} | ||
|
||
public String getPostedBy() { | ||
return postedBy; | ||
} | ||
|
||
public String getActionId() { | ||
return actionId; | ||
} | ||
|
||
public String getStepId() { | ||
return stepId; | ||
} | ||
|
||
public String getCommentDescription() { | ||
return commentDescription; | ||
} | ||
|
||
public String getTaskId() { | ||
return taskId; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
} |
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