Skip to content

Package: Group

Group

nameinstructionbranchcomplexitylinemethod
getType()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
static {...}
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%

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.group;
14:
15: import org.eclipse.kapua.model.KapuaNamedEntity;
16: import org.eclipse.kapua.model.id.KapuaId;
17: import org.eclipse.kapua.service.authorization.access.AccessPermission;
18: import org.eclipse.kapua.service.authorization.role.RolePermission;
19:
20: import javax.xml.bind.annotation.XmlAccessType;
21: import javax.xml.bind.annotation.XmlAccessorType;
22: import javax.xml.bind.annotation.XmlRootElement;
23: import javax.xml.bind.annotation.XmlTransient;
24: import javax.xml.bind.annotation.XmlType;
25:
26: /**
27: * {@link Group} {@link org.eclipse.kapua.model.KapuaEntity} definition.<br>
28: * {@link Group}s serve as tag for entities marked as {@link Groupable}.
29: * It is possible to assign a {@link Group} to a {@link org.eclipse.kapua.model.KapuaEntity}.
30: * It is possible to assign {@link AccessPermission} and {@link RolePermission} based on the {@link Group#getId()}.
31: *
32: * @since 1.0.0
33: */
34: @XmlRootElement(name = "group")
35: @XmlAccessorType(XmlAccessType.PROPERTY)
36: @XmlType(factoryClass = GroupXmlRegistry.class, factoryMethod = "newGroup")
37: public interface Group extends KapuaNamedEntity {
38:
39: @XmlTransient
40: KapuaId ANY = KapuaId.ANY;
41:
42: String TYPE = "group";
43:
44: @Override
45: default String getType() {
46: return TYPE;
47: }
48: }