2 * Copyright (c) 2013 Cisco Systems, Inc. and others. 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.controller.md.sal.common.api.data;
13 import org.opendaylight.yangtools.concepts.Path;
15 public interface DataChange<P extends Path<P>, D> {
18 * Returns a map of paths and newly created objects
20 * @return map of paths and newly created objects
22 Map<P, D> getCreatedOperationalData();
25 * Returns a map of paths and newly created objects
27 * @return map of paths and newly created objects
29 Map<P, D> getCreatedConfigurationData();
32 * Returns a map of paths and respective updated objects after update.
34 * Original state of the object is in
35 * {@link #getOriginalOperationalData()}
37 * @return map of paths and newly created objects
39 Map<P, D> getUpdatedOperationalData();
42 * Returns a map of paths and respective updated objects after update.
44 * Original state of the object is in
45 * {@link #getOriginalConfigurationData()}
47 * @return map of paths and newly created objects
49 Map<P, D> getUpdatedConfigurationData();
54 * Returns a set of paths of removed objects.
56 * Original state of the object is in
57 * {@link #getOriginalConfigurationData()}
59 * @return map of paths and newly created objects
61 Set<P> getRemovedConfigurationData();
64 * Returns a set of paths of removed objects.
66 * Original state of the object is in
67 * {@link #getOriginalOperationalData()}
69 * @return map of paths and newly created objects
71 Set<P> getRemovedOperationalData();
74 * Return a map of paths and original state of updated and removed objectd.
76 * @return map of paths and original state of updated and removed objectd.
78 Map<P, D> getOriginalConfigurationData();
81 * Return a map of paths and original state of updated and removed objectd.
83 * @return map of paths and original state of updated and removed objectd.
85 Map<P, D> getOriginalOperationalData();