Package org.alfresco.rm.rest.api.model
Record Class RoleModel
java.lang.Object
java.lang.Record
org.alfresco.rm.rest.api.model.RoleModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassignedGroupsrecord component.Returns the value of theassignedUsersrecord component.Returns the value of thecapabilitiesrecord component.Returns the value of thedisplayLabelrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroupShortNamerecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of theroleGroupNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RoleModel
public RoleModel(String name, String displayLabel, List<CapabilityModel> capabilities, String roleGroupName, String groupShortName, List<String> assignedUsers, List<String> assignedGroups) Creates an instance of aRoleModelrecord class.- Parameters:
name- the value for thenamerecord componentdisplayLabel- the value for thedisplayLabelrecord componentcapabilities- the value for thecapabilitiesrecord componentroleGroupName- the value for theroleGroupNamerecord componentgroupShortName- the value for thegroupShortNamerecord componentassignedUsers- the value for theassignedUsersrecord componentassignedGroups- the value for theassignedGroupsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
displayLabel
Returns the value of thedisplayLabelrecord component.- Returns:
- the value of the
displayLabelrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
roleGroupName
Returns the value of theroleGroupNamerecord component.- Returns:
- the value of the
roleGroupNamerecord component
-
groupShortName
Returns the value of thegroupShortNamerecord component.- Returns:
- the value of the
groupShortNamerecord component
-
assignedUsers
Returns the value of theassignedUsersrecord component.- Returns:
- the value of the
assignedUsersrecord component
-
assignedGroups
Returns the value of theassignedGroupsrecord component.- Returns:
- the value of the
assignedGroupsrecord component
-