Package: AclPermission
AclPermission
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AclPermission(Domain, Actions, KapuaEid) |
|
|
|
|
|
||||||||||||||||||||
getAction() |
|
|
|
|
|
||||||||||||||||||||
getDomain() |
|
|
|
|
|
||||||||||||||||||||
getTargetScopeId() |
|
|
|
|
|
||||||||||||||||||||
setAction(Actions) |
|
|
|
|
|
||||||||||||||||||||
setDomain(Domain) |
|
|
|
|
|
||||||||||||||||||||
setTargetScopeId(BigInteger) |
|
|
|
|
|
||||||||||||||||||||
setTargetScopeId(KapuaEid) |
|
|
|
|
|
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
12: *******************************************************************************/
13: package org.eclipse.kapua.service.device.registry.steps;
14:
15: import org.eclipse.kapua.commons.model.id.KapuaEid;
16: import org.eclipse.kapua.model.domain.Actions;
17: import org.eclipse.kapua.model.domain.Domain;
18:
19: import java.math.BigInteger;
20:
21: /**
22: * Data object used for PermissionData configuration.
23: */
24: public class AclPermission {
25:
26: private Domain domain;
27:
28: private Actions action;
29:
30: private KapuaEid targetScopeId;
31:
32: public AclPermission(Domain domain, Actions action, KapuaEid targetScopeId) {
33: this.domain = domain;
34: this.action = action;
35: this.targetScopeId = targetScopeId;
36: }
37:
38: public Domain getDomain() {
39: return domain;
40: }
41:
42: public void setDomain(Domain domain) {
43: this.domain = domain;
44: }
45:
46: public Actions getAction() {
47: return action;
48: }
49:
50: public void setAction(Actions action) {
51: this.action = action;
52: }
53:
54: public KapuaEid getTargetScopeId() {
55: return targetScopeId;
56: }
57:
58: public void setTargetScopeId(KapuaEid targetScopeId) {
59: this.targetScopeId = targetScopeId;
60: }
61:
62: public void setTargetScopeId(BigInteger targetScopeId) {
63: this.targetScopeId = new KapuaEid(targetScopeId);
64: }
65: }