Changed to unmaintained
[appc.git] / appc-dispatcher / appc-dispatcher-common / domain-model-lib / src / main / java / org / onap / appc / domainmodel / lcm / VNFOperation.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Copyright (C) 2017 Amdocs
8  * ================================================================================
9  * Modifications Copyright (C) 2018-2019 Orange Nokia
10  * =============================================================================
11  * Licensed under the Apache License, Version 2.0 (the "License");
12  * you may not use this file except in compliance with the License.
13  * You may obtain a copy of the License at
14  * 
15  *      http://www.apache.org/licenses/LICENSE-2.0
16  * 
17  * Unless required by applicable law or agreed to in writing, software
18  * distributed under the License is distributed on an "AS IS" BASIS,
19  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  * See the License for the specific language governing permissions and
21  * limitations under the License.
22  * 
23  * ============LICENSE_END=========================================================
24  */
25
26 package org.onap.appc.domainmodel.lcm;
27
28 public enum VNFOperation {
29     ActionStatus,
30     ActivateNESw,
31     AttachVolume,
32     Audit,
33     Backup,
34     CheckLock(true),
35     Configure,
36     ConfigBackup,
37     ConfigBackupDelete,
38     ConfigExport,
39     ConfigModify,
40     ConfigRestore,
41     ConfigScaleOut,
42     DetachVolume,
43     DistributeTraffic,
44     DistributeTrafficCheck,
45     DownloadNESw,
46     Evacuate,
47     GetConfig,
48     HealthCheck,
49     LicenseManagement,
50     LiveUpgrade,
51     Lock(true),
52     Migrate,
53     PostEvacuate,
54     PostMigrate,
55     PostRebuild,
56     Provisioning,
57     PreConfigure,
58     PreEvacuate,
59     PreMigrate,
60     PreRebuild,
61     Query,
62     QuiesceTraffic,
63     ResumeTraffic,
64     Reboot,
65     Rebuild,
66     Restart,
67     Rollback,
68     Snapshot,
69     SoftwareUpload,
70     Start,
71     StartApplication,
72     StartTraffic,
73     StatusTraffic,
74     Stop,
75     StopApplication,
76     StopTraffic,
77     Sync,
78     Terminate,
79     Test,
80     Test_lic,
81     Unlock(true),
82     UpgradePreCheck,
83     UpgradeSoftware,
84     UpgradePostCheck,
85     UpgradeBackup,
86     UpgradeBackout,
87     ConfigScaleIn;
88
89     private boolean builtIn;
90
91     VNFOperation() {
92         this.builtIn = false;
93     }
94
95     /**
96      * Operations handled directly by the RequestHandler without further call to DG are built-in operations.
97      */
98     public boolean isBuiltIn() {
99         return builtIn;
100     }
101
102     VNFOperation(boolean builtIn) {
103         this.builtIn = builtIn;
104     }
105
106     public static VNFOperation findByString(String operationName) {
107         for (VNFOperation operation : VNFOperation.values()) {
108             if (operation.name().equals(operationName)) {
109                 return operation;
110             }
111         }
112         return null;
113     }
114 }