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.listener;
017
018import java.util.List;
019
020/**
021 * 权限监听器,动态设置后续节点的权限
022 *
023 * @author warm
024 */
025public class NodePermission {
026
027    /**
028     * 节点编码
029     */
030    private String nodeCode;
031
032    /**
033     * 该节点的办理权限,多个权限用逗号分隔
034     */
035    private String permissionFlag;
036
037    /**
038     * 该节点的办理权限集合
039     */
040    private List<String> permissionFlagList;
041
042
043    public NodePermission() {
044    }
045
046    public String getNodeCode() {
047        return nodeCode;
048    }
049
050    public void setNodeCode(String nodeCode) {
051        this.nodeCode = nodeCode;
052    }
053
054    public String getPermissionFlag() {
055        return permissionFlag;
056    }
057
058    public void setPermissionFlag(String permissionFlag) {
059        this.permissionFlag = permissionFlag;
060    }
061
062    public List<String> getPermissionFlagList() {
063        return permissionFlagList;
064    }
065
066    public void setPermissionFlagList(List<String> permissionFlagList) {
067        this.permissionFlagList = permissionFlagList;
068    }
069
070    @Override
071    public String toString() {
072        return "NodePermission{" +
073                "nodeCode='" + nodeCode + '\'' +
074                ", permissionFlag='" + permissionFlag + '\'' +
075                ", permissionFlagList=" + permissionFlagList +
076                '}';
077    }
078}