-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* #11609 : Updating DB scripts. Adding upgrade task to create intermediate table and other minor changes. * #11609 added first draft for add/edit workflow action * #11609 almost code done for save/edit workflow actions associated to the scheme * #11609 the add action and action to step are done * #11609 Added the delete steps and dependencies/minor fixes for transactions, etc * #11609 delete action from step done in the ui/ajax and endpoint * #11609 Added the deletes for the UI * #12960 changes for reorder done * #13104 Added the new field requires lock options that supports locked, unlocked and both choices * #12960 added the scripts changes for all dbs * #12960 added changes for the workflow, action and step new relationships * #12960 notes and fixes * #12960 fixing the IT test * #12960 code review feedback * #11691 added changes for the new endpoint for getting content type schemes * #12960 added changes for h2 and mysql * #12960 added the changes for the show_on column * #12960 adding changes for the showOn * #12960 changes for show on functionality * resolving the error of the missing schemeid * solving issue with content resource test * Fixing the Task04305UpdateWorkflowActionTable * Reverting to master configuration * #12960 fixing postgres and oracle UT * #11609 fixes for 11609 * #11609 configuration rollback * #11609 fixes by code review
- Loading branch information
1 parent
53f5a78
commit 2fe3e6c
Showing
24 changed files
with
929 additions
and
217 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
Submodule enterprise
updated
from 38af85 to 4ccfa3
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
79 changes: 79 additions & 0 deletions
79
dotCMS/src/main/java/com/dotcms/workflow/form/WorkflowReorderActionStepForm.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,79 @@ | ||
package com.dotcms.workflow.form; | ||
|
||
import com.dotcms.repackage.com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.dotcms.repackage.com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.dotcms.repackage.javax.validation.constraints.NotNull; | ||
import com.dotcms.rest.api.Validated; | ||
|
||
@JsonDeserialize(builder = WorkflowReorderActionStepForm.Builder.class) | ||
public class WorkflowReorderActionStepForm extends Validated { | ||
|
||
@NotNull | ||
private final String actionId; | ||
|
||
@NotNull | ||
private final String stepId; | ||
|
||
@NotNull | ||
private final int order; | ||
|
||
public String getActionId() { | ||
return actionId; | ||
} | ||
|
||
public String getStepId() { | ||
return stepId; | ||
} | ||
|
||
public int getOrder() { | ||
return order; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "WorkflowReorderActionStepForm{" + | ||
"actionId='" + actionId + '\'' + | ||
", stepId='" + stepId + '\'' + | ||
", order=" + order + | ||
'}'; | ||
} | ||
|
||
public WorkflowReorderActionStepForm(final Builder builder) { | ||
|
||
this.actionId = builder.actionId; | ||
this.stepId = builder.stepId; | ||
this.order = builder.order; | ||
this.checkValid(); | ||
} | ||
|
||
public static final class Builder { | ||
|
||
@JsonProperty(required = true) | ||
private String actionId; | ||
@JsonProperty(required = true) | ||
private String stepId; | ||
@JsonProperty(required = true) | ||
private int order; | ||
|
||
public Builder actionId(String actionId) { | ||
this.actionId = actionId; | ||
return this; | ||
} | ||
|
||
public Builder stepId(String stepId) { | ||
this.stepId = stepId; | ||
return this; | ||
} | ||
|
||
public Builder order(int order) { | ||
this.order = order; | ||
return this; | ||
} | ||
|
||
|
||
public WorkflowReorderActionStepForm build() { | ||
|
||
return new WorkflowReorderActionStepForm(this); | ||
} | ||
} | ||
} |
Oops, something went wrong.