Interface SkillRegistry
public interface SkillRegistry
-
Method Summary
Modifier and TypeMethodDescriptionbooleancreate(SkillDraft draft, String ownerUsername) voiddeleteSystem(Long skillId, String actor) voiddeleteUserSkill(Long skillId, String ownerUsername) findBySlug(String slug) listAll(String query, Pagination pagination) listForManagement(String username, String query, Boolean enabled, Pagination pagination) Skills the user owns, enabled or not, together with enabled system skills the user may use.listUsableBy(String username) saveSystem(Long skillId, SkillDraft draft, SkillAccessMode accessMode, List<String> groupNames, String actor) Creates (skillId == null) or changes a system skill together with its access in one transaction.setEnabled(Long skillId, boolean enabled, String actor) updateUserSkill(Long skillId, SkillUpdate update, String ownerUsername) Changes a skill owned by the user in one operation; a skill of another owner or a system skill is rejected.
-
Method Details
-
create
-
updateUserSkill
Changes a skill owned by the user in one operation; a skill of another owner or a system skill is rejected. -
deleteUserSkill
-
saveSystem
SkillRecord saveSystem(Long skillId, SkillDraft draft, SkillAccessMode accessMode, List<String> groupNames, String actor) Creates (skillId == null) or changes a system skill together with its access in one transaction. -
deleteSystem
-
setEnabled
-
findById
-
findBySlug
-
listAll
-
listUsableBy
-
listForManagement
CountedResult<SkillRecord> listForManagement(String username, String query, Boolean enabled, Pagination pagination) Skills the user owns, enabled or not, together with enabled system skills the user may use.- Parameters:
enabled- when notnull, only skills with this enabled flag
-
canUse
-