Package: RolePermissionFactoryImpl
RolePermissionFactoryImpl
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RolePermissionFactoryImpl() |
|
|
|
|
|
||||||||||||||||||||
clone(RolePermission) |
|
|
|
|
|
||||||||||||||||||||
newCreator(KapuaId) |
|
|
|
|
|
||||||||||||||||||||
newEntity(KapuaId) |
|
|
|
|
|
||||||||||||||||||||
newListResult() |
|
|
|
|
|
||||||||||||||||||||
newQuery(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.locator.KapuaProvider;
16: import org.eclipse.kapua.model.id.KapuaId;
17: import org.eclipse.kapua.service.authorization.role.RolePermission;
18: import org.eclipse.kapua.service.authorization.role.RolePermissionCreator;
19: import org.eclipse.kapua.service.authorization.role.RolePermissionFactory;
20: import org.eclipse.kapua.service.authorization.role.RolePermissionListResult;
21: import org.eclipse.kapua.service.authorization.role.RolePermissionQuery;
22:
23: /**
24: * {@link RolePermissionFactory} implementation.
25: *
26: * @since 1.0.0
27: */
28: @KapuaProvider
29: public class RolePermissionFactoryImpl implements RolePermissionFactory {
30:
31: @Override
32: public RolePermission newEntity(KapuaId scopeId) {
33: return new RolePermissionImpl(scopeId);
34: }
35:
36: @Override
37: public RolePermissionCreator newCreator(KapuaId scopeId) {
38: return new RolePermissionCreatorImpl(scopeId);
39: }
40:
41: @Override
42: public RolePermissionQuery newQuery(KapuaId scopeId) {
43: return new RolePermissionQueryImpl(scopeId);
44: }
45:
46: @Override
47: public RolePermissionListResult newListResult() {
48: return new RolePermissionListResultImpl();
49: }
50:
51: @Override
52: public RolePermission clone(RolePermission rolePermission) {
53: return new RolePermissionImpl(rolePermission);
54: }
55: }