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;
12 import org.opendaylight.yangtools.concepts.Path;
14 public interface DataChange<P extends Path<P>, D> {
17 * Returns a map of paths and newly created objects.
19 * @return map of paths and newly created objects
21 Map<P, D> getCreatedOperationalData();
24 * Returns a map of paths and newly created objects.
26 * @return map of paths and newly created objects
28 Map<P, D> getCreatedConfigurationData();
31 * 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.
45 * Original state of the object is in
46 * {@link #getOriginalConfigurationData()}
48 * @return map of paths and newly created objects
50 Map<P, D> getUpdatedConfigurationData();
55 * Returns a set of paths of removed objects.
58 * Original state of the object is in
59 * {@link #getOriginalConfigurationData()}
61 * @return map of paths and newly created objects
63 Set<P> getRemovedConfigurationData();
66 * Returns a set of paths of removed objects.
69 * Original state of the object is in
70 * {@link #getOriginalOperationalData()}
72 * @return map of paths and newly created objects
74 Set<P> getRemovedOperationalData();
77 * Return a map of paths and original state of updated and removed objectd.
79 * @return map of paths and original state of updated and removed objectd.
81 Map<P, D> getOriginalConfigurationData();
84 * Return a map of paths and original state of updated and removed objectd.
86 * @return map of paths and original state of updated and removed objectd.
88 Map<P, D> getOriginalOperationalData();