2 * Copyright (C) 2024 Free Software Foundation
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.
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.
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/>.
17 package org.mxchange.jjobs.beans.jobs.skill.list;
19 import java.io.Serializable;
20 import org.mxchange.jjobs.model.exceptions.SkillNotFoundException;
21 import org.mxchange.jjobs.model.skill.Skillable;
24 * An interface of basic data list backing beans
26 * @author Roland Häder<roland@mxchange.org>
28 public interface JobsSkillListWebViewController extends Serializable {
31 * Checks if given skill is already found
33 * @param skillable An instance of a Skillable class
35 * @return Whether it has been found
37 boolean isSkillAlreadyAdded (final Skillable skillable);
40 * Checks if given skill name is already there.
42 * @param skillName Skill name
44 * @return Whether it has been found
46 Boolean isSkillNameUsed (final String skillName);
49 * Retrieves a single skill entity for given id number or throws a proper
50 * exception if not found.
52 * @param skillId Company basic data id to lookup
54 * @return Skillinstance
56 * @throws SkillNotFoundException If the id number could not be looked up
57 * and solved into an entity
59 Skillable findSkillById (final Long skillId) throws SkillNotFoundException;