]> git.mxchange.org Git - jjobs-war.git/blob - src/java/org/mxchange/jjobs/beans/jobs/skill/list/JobsSkillListWebViewController.java
Updated copyright year
[jjobs-war.git] / src / java / org / mxchange / jjobs / beans / jobs / skill / list / JobsSkillListWebViewController.java
1 /*
2  * Copyright (C) 2024 Free Software Foundation
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Affero General Public License as
6  * published by the Free Software Foundation, either version 3 of the
7  * License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU Affero General Public License for more details.
13  *
14  * You should have received a copy of the GNU Affero General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17 package org.mxchange.jjobs.beans.jobs.skill.list;
18
19 import java.io.Serializable;
20 import org.mxchange.jjobs.model.exceptions.SkillNotFoundException;
21 import org.mxchange.jjobs.model.skill.Skillable;
22
23 /**
24  * An interface of basic data list backing beans
25  * <p>
26  * @author Roland Häder<roland@mxchange.org>
27  */
28 public interface JobsSkillListWebViewController extends Serializable {
29
30         /**
31          * Checks if given skill is already found
32          * <p>
33          * @param skillable An instance of a Skillable class
34          * <p>
35          * @return Whether it has been found
36          */
37         boolean isSkillAlreadyAdded (final Skillable skillable);
38
39         /**
40          * Checks if given skill name is already there.
41          * <p>
42          * @param skillName Skill name
43          * <p>
44          * @return Whether it has been found
45          */
46         Boolean isSkillNameUsed (final String skillName);
47
48         /**
49          * Retrieves a single skill entity for given id number or throws a proper
50          * exception if not found.
51          * <p>
52          * @param skillId Company basic data id to lookup
53          * <p>
54          * @return Skillinstance
55          * <p>
56          * @throws SkillNotFoundException If the id number could not be looked up
57          * and solved into an entity
58          */
59         Skillable findSkillById (final Long skillId) throws SkillNotFoundException;
60
61 }