Skip to content

Package: InventoryRequestChannel

InventoryRequestChannel

nameinstructionbranchcomplexitylinemethod
InventoryRequestChannel()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getBundleAction()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getContainerAction()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
setBundleAction(DeviceInventoryBundleAction)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setContainerAction(DeviceInventoryContainerAction)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2021, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.service.device.management.inventory.internal.message;
14:
15: import org.eclipse.kapua.service.device.management.commons.message.request.KapuaRequestChannelImpl;
16: import org.eclipse.kapua.service.device.management.inventory.model.bundle.DeviceInventoryBundleAction;
17: import org.eclipse.kapua.service.device.management.inventory.model.container.DeviceInventoryContainerAction;
18: import org.eclipse.kapua.service.device.management.inventory.model.inventory.DeviceInventory;
19: import org.eclipse.kapua.service.device.management.message.request.KapuaRequestChannel;
20:
21: /**
22: * {@link DeviceInventory} {@link KapuaRequestChannel} implementation.
23: *
24: * @since 1.5.0
25: */
26: public class InventoryRequestChannel extends KapuaRequestChannelImpl implements KapuaRequestChannel {
27:
28: private static final long serialVersionUID = 9127157971609776985L;
29:
30: private DeviceInventoryBundleAction bundleAction;
31:
32: private DeviceInventoryContainerAction containerAction;
33:
34: /**
35: * Gets the {@link DeviceInventoryBundleAction} to perform when {@link #getResource()} is {@code bundles}.
36: *
37: * @return The {@link DeviceInventoryBundleAction} to perform.
38: * @since 1.5.0
39: */
40: public DeviceInventoryBundleAction getBundleAction() {
41: return bundleAction;
42: }
43:
44: /**
45: * Sets the {@link DeviceInventoryBundleAction} to perform when {@link #getResource()} is {@code bundles}
46: *
47: * @param bundleAction The {@link DeviceInventoryBundleAction} to perform.
48: * @since 1.5.0
49: */
50: public void setBundleAction(DeviceInventoryBundleAction bundleAction) {
51: this.bundleAction = bundleAction;
52: }
53:
54: /**
55: * Gets the {@link DeviceInventoryContainerAction} to perform when {@link #getResource()} is {@code containers}.
56: *
57: * @return The {@link DeviceInventoryContainerAction} to perform.
58: * @since 2.0.0
59: */
60: public DeviceInventoryContainerAction getContainerAction() {
61: return containerAction;
62: }
63:
64: /**
65: * Sets the {@link DeviceInventoryContainerAction} to perform when {@link #getResource()} is {@code containers}
66: *
67: * @param containerAction The {@link DeviceInventoryContainerAction} to perform.
68: * @since 2.0.0
69: */
70: public void setContainerAction(DeviceInventoryContainerAction containerAction) {
71: this.containerAction = containerAction;
72: }
73:
74:
75: }