001/* 002 * Copyright 2024-2025, Warm-Flow (290631660@qq.com). 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * https://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.dromara.warm.flow.core.dto; 017 018import java.io.Serializable; 019import java.util.List; 020 021/** 022 * 修改办理人参数 023 * 024 * @author warm 025 */ 026public class ModifyHandler implements Serializable { 027 private static final long serialVersionUID = 1L; 028 029 /** 030 * 修改的任务id 031 */ 032 private Long taskId; 033 034 /** 035 * 当前办理人 036 */ 037 private String curUser; 038 039 /** 040 * 用户所拥有的权限标识 041 */ 042 private List<String> permissionFlag; 043 044 /** 045 * 增加办理人:加签,转办,委托 046 */ 047 private List<String> addHandlers; 048 049 /** 050 * 减少办理人:减签,委托 051 */ 052 private List<String> reductionHandlers; 053 054 /** 055 * 审批意见 056 */ 057 private String message; 058 059 /** 060 * 转办忽略权限校验(true:忽略,false:不忽略) 061 */ 062 private boolean ignore; 063 064 /** 065 * 协作方式(1审批 2转办 3委派 4会签 5票签 6加签 7减签) 066 */ 067 private Integer cooperateType; 068 069 public static ModifyHandler build() { 070 return new ModifyHandler(); 071 } 072 073 public ModifyHandler taskId(Long taskId) { 074 this.taskId = taskId; 075 return this; 076 } 077 078 public ModifyHandler curUser(String curUser) { 079 this.curUser = curUser; 080 return this; 081 } 082 083 public ModifyHandler permissionFlag(List<String> permissionFlag) { 084 this.permissionFlag = permissionFlag; 085 return this; 086 } 087 088 public ModifyHandler addHandlers(List<String> addHandlers) { 089 this.addHandlers = addHandlers; 090 return this; 091 } 092 093 public ModifyHandler reductionHandlers(List<String> reductionHandlers) { 094 this.reductionHandlers = reductionHandlers; 095 return this; 096 } 097 098 public ModifyHandler message(String message) { 099 this.message = message; 100 return this; 101 } 102 103 public ModifyHandler ignore(boolean ignore) { 104 this.ignore = ignore; 105 return this; 106 } 107 108 public ModifyHandler cooperateType(Integer cooperateType) { 109 this.cooperateType = cooperateType; 110 return this; 111 } 112 113 public Long getTaskId() { 114 return taskId; 115 } 116 117 public ModifyHandler setTaskId(Long taskId) { 118 this.taskId = taskId; 119 return this; 120 } 121 122 public String getCurUser() { 123 return curUser; 124 } 125 126 public ModifyHandler setCurUser(String curUser) { 127 this.curUser = curUser; 128 return this; 129 } 130 131 public List<String> getPermissionFlag() { 132 return permissionFlag; 133 } 134 135 public ModifyHandler setPermissionFlag(List<String> permissionFlag) { 136 this.permissionFlag = permissionFlag; 137 return this; 138 } 139 140 public List<String> getAddHandlers() { 141 return addHandlers; 142 } 143 144 public ModifyHandler setAddHandlers(List<String> addHandlers) { 145 this.addHandlers = addHandlers; 146 return this; 147 } 148 149 public List<String> getReductionHandlers() { 150 return reductionHandlers; 151 } 152 153 public ModifyHandler setReductionHandlers(List<String> reductionHandlers) { 154 this.reductionHandlers = reductionHandlers; 155 return this; 156 } 157 158 public String getMessage() { 159 return message; 160 } 161 162 public ModifyHandler setMessage(String message) { 163 this.message = message; 164 return this; 165 } 166 167 public boolean isIgnore() { 168 return ignore; 169 } 170 171 public ModifyHandler setIgnore(boolean ignore) { 172 this.ignore = ignore; 173 return this; 174 } 175 176 public Integer getCooperateType() { 177 return cooperateType; 178 } 179 180 public ModifyHandler setCooperateType(Integer cooperateType) { 181 this.cooperateType = cooperateType; 182 return this; 183 } 184}