Skip to content

Package: ManagementOperationNotificationCreatorImpl

ManagementOperationNotificationCreatorImpl

nameinstructionbranchcomplexitylinemethod
ManagementOperationNotificationCreatorImpl(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%
getMessage()
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%
getOperationId()
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%
getProgress()
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%
getResource()
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%
getSentOn()
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%
setMessage(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%
setOperationId(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%
setProgress(Integer)
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%
setResource(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%
setSentOn(Date)
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(DeviceManagementOperationStatus)
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) 2017, 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.registry.operation.notification.internal;
14:
15: import org.eclipse.kapua.commons.model.AbstractKapuaEntityCreator;
16: import org.eclipse.kapua.model.id.KapuaId;
17: import org.eclipse.kapua.service.device.management.registry.operation.DeviceManagementOperationStatus;
18: import org.eclipse.kapua.service.device.management.registry.operation.notification.ManagementOperationNotification;
19: import org.eclipse.kapua.service.device.management.registry.operation.notification.ManagementOperationNotificationCreator;
20:
21: import java.util.Date;
22:
23: public class ManagementOperationNotificationCreatorImpl extends AbstractKapuaEntityCreator<ManagementOperationNotification> implements ManagementOperationNotificationCreator {
24:
25: private KapuaId operationId;
26: private Date sentOn;
27: private DeviceManagementOperationStatus status;
28: private String resource;
29: private Integer progress;
30: private String message;
31:
32: public ManagementOperationNotificationCreatorImpl(KapuaId scopeId) {
33: super(scopeId);
34: }
35:
36: @Override
37: public KapuaId getOperationId() {
38: return operationId;
39: }
40:
41: @Override
42: public void setOperationId(KapuaId operationId) {
43: this.operationId = operationId;
44: }
45:
46: @Override
47: public Date getSentOn() {
48: return sentOn;
49: }
50:
51: @Override
52: public void setSentOn(Date sentOn) {
53: this.sentOn = sentOn;
54: }
55:
56: @Override
57: public DeviceManagementOperationStatus getStatus() {
58: return status;
59: }
60:
61: @Override
62: public void setStatus(DeviceManagementOperationStatus status) {
63: this.status = status;
64: }
65:
66: @Override
67: public String getResource() {
68: return resource;
69: }
70:
71: @Override
72: public void setResource(String resource) {
73: this.resource = resource;
74: }
75:
76: @Override
77: public Integer getProgress() {
78: return progress;
79: }
80:
81: @Override
82: public void setProgress(Integer progress) {
83: this.progress = progress;
84: }
85:
86: @Override
87: public String getMessage() {
88: return message;
89: }
90:
91: @Override
92: public void setMessage(String message) {
93: this.message = message;
94: }
95: }