Skip to content

Package: DeviceFactory

DeviceFactory

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2016, 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.registry;
14:
15: import org.eclipse.kapua.model.KapuaEntityFactory;
16: import org.eclipse.kapua.model.id.KapuaId;
17:
18: /**
19: * {@link Device} {@link KapuaEntityFactory} definition.
20: *
21: * @see org.eclipse.kapua.model.KapuaEntityFactory
22: * @since 1.0.0
23: */
24: public interface DeviceFactory extends KapuaEntityFactory<Device, DeviceCreator, DeviceQuery, DeviceListResult> {
25:
26: /**
27: * Instantiates a new {@link DeviceCreator}
28: *
29: * @param scopeId The scope {@link KapuaId} to set into the {@link DeviceCreator}
30: * @param clientId The client id to set into the {@link DeviceCreator}
31: * @return The newly instantiated {@link DeviceCreator}.
32: * @since 1.0.0
33: * @deprecated Since 1.5.0. Please use {@link #newCreator(KapuaId)}.
34: */
35: @Deprecated
36: DeviceCreator newCreator(KapuaId scopeId, String clientId);
37:
38: /**
39: * Instantiates a new {@link DeviceExtendedProperty}.
40: *
41: * @param groupName The {@link DeviceExtendedProperty#getGroupName()}.
42: * @param name The {@link DeviceExtendedProperty#getName()}.
43: * @param value The {@link DeviceExtendedProperty#getValue()}.
44: * @return The newly instantiated {@link DeviceExtendedProperty}.
45: * @since 1.5.0
46: */
47: DeviceExtendedProperty newExtendedProperty(String groupName, String name, String value);
48: }