Skip to content

Package: DeviceConnectionCreatorImpl

DeviceConnectionCreatorImpl

nameinstructionbranchcomplexitylinemethod
DeviceConnectionCreatorImpl(KapuaId)
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%
getAllowUserChange()
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%
getClientId()
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%
getClientIp()
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%
getProtocol()
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%
getReservedUserId()
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%
getServerIp()
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%
getStatus()
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%
getUserCouplingMode()
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%
getUserId()
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%
setAllowUserChange(boolean)
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%
setClientId(String)
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%
setClientIp(String)
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%
setProtocol(String)
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%
setReservedUserId(KapuaId)
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%
setServerIp(String)
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%
setStatus(DeviceConnectionStatus)
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%
setUserCouplingMode(ConnectionUserCouplingMode)
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%
setUserId(KapuaId)
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) 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.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.DeviceConnection;
19: import org.eclipse.kapua.service.device.registry.connection.DeviceConnectionCreator;
20: import org.eclipse.kapua.service.device.registry.connection.DeviceConnectionStatus;
21:
22: /**
23: * Device connection creator service implementation.
24: *
25: * @since 1.0
26: */
27: public class DeviceConnectionCreatorImpl extends AbstractKapuaUpdatableEntityCreator<DeviceConnection> implements DeviceConnectionCreator {
28:
29: private static final long serialVersionUID = 2740394157765904615L;
30:
31: private DeviceConnectionStatus status;
32: private String clientId;
33: private KapuaId userId;
34: private ConnectionUserCouplingMode userCouplingMode;
35: private KapuaId reservedUserId;
36: private boolean allowUserChange;
37: private String protocol;
38: private String clientIp;
39: private String serverIp;
40:
41: /**
42: * Constructor
43: *
44: * @param scopeId
45: */
46: public DeviceConnectionCreatorImpl(KapuaId scopeId) {
47: super(scopeId);
48: }
49:
50: @Override
51: public DeviceConnectionStatus getStatus() {
52: return status;
53: }
54:
55: @Override
56: public void setStatus(DeviceConnectionStatus status) {
57: this.status = status;
58: }
59:
60: @Override
61: public String getClientId() {
62: return clientId;
63: }
64:
65: @Override
66: public void setClientId(String clientId) {
67: this.clientId = clientId;
68: }
69:
70: @Override
71: public KapuaId getUserId() {
72: return userId;
73: }
74:
75: @Override
76: public void setUserId(KapuaId userId) {
77: this.userId = userId;
78: }
79:
80: @Override
81: public ConnectionUserCouplingMode getUserCouplingMode() {
82: return userCouplingMode;
83: }
84:
85: @Override
86: public void setUserCouplingMode(ConnectionUserCouplingMode userCouplingMode) {
87: this.userCouplingMode = userCouplingMode;
88: }
89:
90: @Override
91: public KapuaId getReservedUserId() {
92: return reservedUserId;
93: }
94:
95: @Override
96: public void setReservedUserId(KapuaId reservedUserId) {
97: this.reservedUserId = reservedUserId;
98: }
99:
100: @Override
101: public boolean getAllowUserChange() {
102: return allowUserChange;
103: }
104:
105: @Override
106: public void setAllowUserChange(boolean allowUserChange) {
107: this.allowUserChange = allowUserChange;
108: }
109:
110: @Override
111: public String getProtocol() {
112: return protocol;
113: }
114:
115: @Override
116: public void setProtocol(String protocol) {
117: this.protocol = protocol;
118: }
119:
120: @Override
121: public String getClientIp() {
122: return clientIp;
123: }
124:
125: @Override
126: public void setClientIp(String clientIp) {
127: this.clientIp = clientIp;
128: }
129:
130: @Override
131: public String getServerIp() {
132: return serverIp;
133: }
134:
135: @Override
136: public void setServerIp(String serverIp) {
137: this.serverIp = serverIp;
138: }
139: }