Merge "Remove unused spring dependency and wrong version in web pom"
[controller.git] / opendaylight / networkconfiguration / neutron / src / main / java / org / opendaylight / controller / networkconfig / neutron / INeutronFloatingIPCRUD.java
1 /*\r
2  * Copyright IBM Corporation, 2013.  All rights reserved.\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  */\r
8 \r
9 package org.opendaylight.controller.networkconfig.neutron;\r
10 \r
11 import java.util.List;\r
12 \r
13 /**\r
14  * This interface defines the methods for CRUD of NB FloatingIP objects\r
15  *\r
16  */\r
17 \r
18 public interface INeutronFloatingIPCRUD {\r
19     /**\r
20      * Applications call this interface method to determine if a particular\r
21      * FloatingIP object exists\r
22      *\r
23      * @param uuid\r
24      *            UUID of the FloatingIP object\r
25      * @return boolean\r
26      */\r
27 \r
28     public boolean floatingIPExists(String uuid);\r
29 \r
30     /**\r
31      * Applications call this interface method to return if a particular\r
32      * FloatingIP object exists\r
33      *\r
34      * @param uuid\r
35      *            UUID of the FloatingIP object\r
36      * @return {@link org.opendaylight.controller.networkconfig.neutron.NeutronFloatingIP.OpenStackFloatingIPs}\r
37      *          OpenStack FloatingIP class\r
38      */\r
39 \r
40     public NeutronFloatingIP getFloatingIP(String uuid);\r
41 \r
42     /**\r
43      * Applications call this interface method to return all FloatingIP objects\r
44      *\r
45      * @return a Set of OpenStackFloatingIPs objects\r
46      */\r
47 \r
48     public List<NeutronFloatingIP> getAllFloatingIPs();\r
49 \r
50     /**\r
51      * Applications call this interface method to add a FloatingIP object to the\r
52      * concurrent map\r
53      *\r
54      * @param input\r
55      *            OpenStackFloatingIP object\r
56      * @return boolean on whether the object was added or not\r
57      */\r
58 \r
59     public boolean addFloatingIP(NeutronFloatingIP input);\r
60 \r
61     /**\r
62      * Applications call this interface method to remove a FloatingIP object to the\r
63      * concurrent map\r
64      *\r
65      * @param uuid\r
66      *            identifier for the FloatingIP object\r
67      * @return boolean on whether the object was removed or not\r
68      */\r
69 \r
70     public boolean removeFloatingIP(String uuid);\r
71 \r
72     /**\r
73      * Applications call this interface method to edit a FloatingIP object\r
74      *\r
75      * @param uuid\r
76      *            identifier of the FloatingIP object\r
77      * @param delta\r
78      *            OpenStackFloatingIP object containing changes to apply\r
79      * @return boolean on whether the object was updated or not\r
80      */\r
81 \r
82     public boolean updateFloatingIP(String uuid, NeutronFloatingIP delta);\r
83 }\r