BUG-2218: Keep existing link augmentations during discovery process
[controller.git] / opendaylight / configuration / api / src / main / java / org / opendaylight / controller / configuration / ConfigurationEvent.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.configuration;
9
10 public enum ConfigurationEvent {
11     SAVE("Save"),
12     BACKUP("Backup"),
13     RESTORE("Restore"),
14     DELETE("Delete");
15
16     private ConfigurationEvent(String name) {
17         this.name = name;
18     }
19
20     private String name;
21
22     public String toString() {
23         return name;
24     }
25
26     public static ConfigurationEvent fromString(String pName) {
27         for(ConfigurationEvent p:ConfigurationEvent.values()) {
28             if (p.toString().equals(pName)) {
29                 return p;
30             }
31         }
32         return null;
33     }
34 }