Record Class RoleTemplateCatalog.Template
java.lang.Object
java.lang.Record
zeroecho.pki.server.RoleTemplateCatalog.Template
- Record Components:
templateId- stable template identifierversion- positive template versionactions- finite permission actions supplied by the template
- Enclosing class:
RoleTemplateCatalog
public static record RoleTemplateCatalog.Template(String templateId, int version, Set<Permission.Action> actions)
extends Record
Immutable role template that has no authority until scoped assignment.
-
Constructor Summary
ConstructorsConstructorDescriptionTemplate(String templateId, int version, Set<Permission.Action> actions) Validates the stable template. -
Method Summary
Modifier and TypeMethodDescriptionactions()Returns the value of theactionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetemplateIdrecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.
-
Constructor Details
-
Template
Validates the stable template.
-
-
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. -
templateId
Returns the value of thetemplateIdrecord component.- Returns:
- the value of the
templateIdrecord component
-
version
-
actions
-