2 * Copyright (c) 2015 Intel Corporation. All rights reserved.
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
8 package org.opendaylight.neutron.spi;
10 import java.util.List;
13 * This interface defines the methods for CRUD of NB neutron objects.
15 public interface INeutronCRUD<T extends INeutronObject<T>> {
18 * Applications call this interface method to determine if a particular
19 * Neutron object exists.
22 * UUID of the Neutron object
25 boolean exists(String uuid);
28 * Applications call this interface method to return if a particular
29 * Neutron object exists.
32 * UUID of the Neutron object
33 * @return {@link org.opendaylight.neutron.spi.INeutronObject}
34 * OpenStack Neutron class
39 * Applications call this interface method to return all Neutron objects.
41 * @return List of OpenStackNeutrons objects
46 * Applications call this interface method to add a Neutron object to the
50 * OpenStackNeutron object
51 * @return boolean on whether the object was added or not
56 * Applications call this interface method to remove a Neutron object to the
60 * identifier for the neutron object
61 * @return boolean on whether the object was removed or not
63 boolean remove(String uuid);
66 * Applications call this interface method to edit a Neutron object.
69 * identifier of the neutron object
71 * OpenStackNeutron object containing changes to apply
72 * @return boolean on whether the object was updated or not
74 boolean update(String uuid, T delta);