2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 Nokia Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.vid.model
23 data class SOWorkflow constructor(
26 fun clone(): SOWorkflow {
31 data class SOWorkflows @JvmOverloads constructor(
32 val workflows: List<SOWorkflow> = emptyList()) {
33 fun clone(): SOWorkflows {
34 return copy(workflows.toMutableList())
38 enum class SOWorkflowType(
43 enum class LocalWorkflowType(
49 data class SOWorkflowParameterDefinition constructor(
53 val type: SOWorkflowType,
54 val required: Boolean)
56 data class SOWorkflowParameterDefinitions constructor(
57 val parameterDefinitions: List<SOWorkflowParameterDefinition> = emptyList()) {
58 fun clone(): SOWorkflowParameterDefinitions {
59 return copy(parameterDefinitions.toMutableList())
63 data class LocalWorkflowParameterDefinition @JvmOverloads constructor(
66 val required: Boolean,
67 val type: LocalWorkflowType,
68 val pattern: String? = null,
69 val msgOnPatternError: String? = null,
70 val msgOnContentError: String? = null,
71 val acceptableFileType: String? = null
74 data class LocalWorkflowParameterDefinitions constructor(
75 val parameterDefinitions: List<LocalWorkflowParameterDefinition> = emptyList()
77 fun clone(): LocalWorkflowParameterDefinitions {
78 return copy(parameterDefinitions.toMutableList())