Package: RolePermissionCreatorImpl
RolePermissionCreatorImpl
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RolePermissionCreatorImpl(KapuaId) |
|
|
|
|
|
||||||||||||||||||||
getPermission() |
|
|
|
|
|
||||||||||||||||||||
getRoleId() |
|
|
|
|
|
||||||||||||||||||||
setPermission(Permission) |
|
|
|
|
|
||||||||||||||||||||
setRoleId(KapuaId) |
|
|
|
|
|
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.authorization.role.shiro;
14:
15: import org.eclipse.kapua.commons.model.AbstractKapuaEntityCreator;
16: import org.eclipse.kapua.model.id.KapuaId;
17: import org.eclipse.kapua.service.authorization.permission.Permission;
18: import org.eclipse.kapua.service.authorization.role.RolePermission;
19: import org.eclipse.kapua.service.authorization.role.RolePermissionCreator;
20:
21: /**
22: * Role creator service implementation.
23: *
24: * @since 1.0
25: *
26: */
27: public class RolePermissionCreatorImpl extends AbstractKapuaEntityCreator<RolePermission> implements RolePermissionCreator {
28:
29: private static final long serialVersionUID = 972154225756734130L;
30:
31: private KapuaId roleId;
32: private Permission permission;
33:
34: /**
35: * Costructor
36: *
37: * @param scopeId
38: */
39: public RolePermissionCreatorImpl(KapuaId scopeId) {
40: super(scopeId);
41: }
42:
43: public KapuaId getRoleId() {
44: return roleId;
45: }
46:
47: public void setRoleId(KapuaId roleId) {
48: this.roleId = roleId;
49: }
50:
51: @SuppressWarnings("unchecked")
52: public Permission getPermission() {
53: return permission;
54: }
55:
56: public void setPermission(Permission permission) {
57: this.permission = permission;
58: }
59: }