Package: DeviceConnectionOptionCreatorImpl
DeviceConnectionOptionCreatorImpl
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DeviceConnectionOptionCreatorImpl(KapuaId) |
|
|
|
|
|
||||||||||||||||||||
getReservedUserId() |
|
|
|
|
|
||||||||||||||||||||
getUserCouplingMode() |
|
|
|
|
|
||||||||||||||||||||
setReservedUserId(KapuaId) |
|
|
|
|
|
||||||||||||||||||||
setUserCouplingMode(ConnectionUserCouplingMode) |
|
|
|
|
|
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.connection.option.internal;
14:
15: import org.eclipse.kapua.commons.model.AbstractKapuaUpdatableEntityCreator;
16: import org.eclipse.kapua.model.id.KapuaId;
17: import org.eclipse.kapua.service.device.registry.ConnectionUserCouplingMode;
18: import org.eclipse.kapua.service.device.registry.connection.option.DeviceConnectionOption;
19: import org.eclipse.kapua.service.device.registry.connection.option.DeviceConnectionOptionCreator;
20:
21: /**
22: * Device connection creator service implementation.
23: *
24: * @since 1.0
25: */
26: public class DeviceConnectionOptionCreatorImpl extends AbstractKapuaUpdatableEntityCreator<DeviceConnectionOption> implements DeviceConnectionOptionCreator {
27:
28: private static final long serialVersionUID = 2740394157765904615L;
29:
30: private ConnectionUserCouplingMode userCouplingMode;
31: private KapuaId reservedUserId;
32:
33: /**
34: * Constructor
35: *
36: * @param scopeId
37: */
38: public DeviceConnectionOptionCreatorImpl(KapuaId scopeId) {
39: super(scopeId);
40: }
41:
42: public ConnectionUserCouplingMode getUserCouplingMode() {
43: return userCouplingMode;
44: }
45:
46: public void setUserCouplingMode(ConnectionUserCouplingMode userCouplingMode) {
47: this.userCouplingMode = userCouplingMode;
48: }
49:
50: public KapuaId getReservedUserId() {
51: return reservedUserId;
52: }
53:
54: public void setReservedUserId(KapuaId reservedUserId) {
55: this.reservedUserId = reservedUserId;
56: }
57: }