Record Class SkillRecord
java.lang.Object
java.lang.Record
com.suncode.pwfl.ai.skill.SkillRecord
- All Implemented Interfaces:
Skill
-
Constructor Summary
ConstructorsConstructorDescriptionSkillRecord(Long id, String name, String slug, String content, SkillOwnerKind ownerKind, String ownerId, boolean enabled, String description, List<String> tags, SkillAccessMode accessMode, List<String> authorizedGroupNames) Creates an instance of aSkillRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessModerecord component.Returns the value of theauthorizedGroupNamesrecord component.content()Returns the value of thecontentrecord component.Returns the value of thedescriptionrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.ownerId()Returns the value of theownerIdrecord component.Returns the value of theownerKindrecord component.slug()Returns the value of theslugrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SkillRecord
public SkillRecord(Long id, String name, String slug, String content, SkillOwnerKind ownerKind, String ownerId, boolean enabled, String description, List<String> tags, SkillAccessMode accessMode, List<String> authorizedGroupNames) Creates an instance of aSkillRecordrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentslug- the value for theslugrecord componentcontent- the value for thecontentrecord componentownerKind- the value for theownerKindrecord componentownerId- the value for theownerIdrecord componentenabled- the value for theenabledrecord componentdescription- the value for thedescriptionrecord componenttags- the value for thetagsrecord componentaccessMode- the value for theaccessModerecord componentauthorizedGroupNames- the value for theauthorizedGroupNamesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
name
-
slug
-
content
-
ownerKind
Returns the value of theownerKindrecord component. -
ownerId
-
enabled
-
description
Returns the value of thedescriptionrecord component.- Specified by:
descriptionin interfaceSkill- Returns:
- the value of the
descriptionrecord component
-
tags
-
accessMode
Returns the value of theaccessModerecord component.- Returns:
- the value of the
accessModerecord component
-
authorizedGroupNames
-