Skip to content

Package: JobDomain

JobDomain

nameinstructionbranchcomplexitylinemethod
JobDomain()
M: 30 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
getActions()
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%
getGroupable()
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%
getName()
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%

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.job;
14:
15: import org.eclipse.kapua.model.domain.AbstractDomain;
16: import org.eclipse.kapua.model.domain.Actions;
17: import org.eclipse.kapua.model.domain.Domain;
18:
19: import java.util.Arrays;
20: import java.util.HashSet;
21: import java.util.Set;
22:
23: /**
24: * {@link Job} {@link Domain}.<br>
25: * Used to describe the {@link Job} {@link Domain} in the {@link JobService}.
26: *
27: * @since 1.0.0
28: */
29: public class JobDomain extends AbstractDomain implements Domain {
30:
31: private final String name = "job";
32: private final Set<Actions> actions = new HashSet<>(Arrays.asList(Actions.read, Actions.delete, Actions.write, Actions.execute));
33:
34: @Override
35: public String getName() {
36: return name;
37: }
38:
39: @Override
40: public Set<Actions> getActions() {
41: return actions;
42: }
43:
44: @Override
45: public boolean getGroupable() {
46: return false;
47: }
48: }