Skip to content

Package: DeviceInventoryPackages

DeviceInventoryPackages

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.model.packages;
14:
15: import org.eclipse.kapua.KapuaSerializable;
16:
17: import javax.xml.bind.annotation.XmlAccessType;
18: import javax.xml.bind.annotation.XmlAccessorType;
19: import javax.xml.bind.annotation.XmlElement;
20: import javax.xml.bind.annotation.XmlRootElement;
21: import javax.xml.bind.annotation.XmlType;
22: import java.util.List;
23:
24: /**
25: * {@link DeviceInventoryPackages} definition.
26: *
27: * @since 1.5.0
28: */
29: @XmlRootElement(name = "deviceInventoryDeploymentPackages")
30: @XmlAccessorType(XmlAccessType.PROPERTY)
31: @XmlType(factoryClass = DeviceInventoryPackagesXmlRegistry.class, factoryMethod = "newDeviceInventoryPackages")
32: public interface DeviceInventoryPackages extends KapuaSerializable {
33:
34: /**
35: * Gets the {@link List} of {@link DeviceInventoryPackage}s.
36: *
37: * @return The {@link List} of {@link DeviceInventoryPackage}s.
38: * @since 1.5.0
39: */
40: @XmlElement(name = "deploymentPackages")
41: List<DeviceInventoryPackage> getPackages();
42:
43: /**
44: * Adds a {@link DeviceInventoryPackage} to the {@link List}.
45: *
46: * @param aPackage The {@link DeviceInventoryPackage} to add.
47: * @since 1.5.0
48: */
49: void addPackage(DeviceInventoryPackage aPackage);
50:
51: /**
52: * Sets the {@link List} of {@link DeviceInventoryPackage}s.
53: *
54: * @param inventoryPackages The {@link List} of {@link DeviceInventoryPackage}s.
55: * @since 1.5.0
56: */
57: void setPackages(List<DeviceInventoryPackage> inventoryPackages);
58: }