Record Class UserList
java.lang.Object
java.lang.Record
com.bonitasoft.processbuilder.records.UserList
- Record Components:
persistenceId- The unique identifier for this user list entry.canLaunchProcess- A flag indicating if the user/membership can launch the process.refMemberShip- The reference name of the membership (e.g., a role or group name).memberShipKey- The unique key identifying the type of membership (e.g., "ROLE", "GROUP", "USER").groupId- The persistence ID of the associated group, if applicable.roleId- The persistence ID of the associated role, if applicable.userId- The persistence ID of the associated user, if applicable.pBProcessPersistenceId- The persistence ID of the process definition this list belongs to.
public record UserList(Long persistenceId, Boolean canLaunchProcess, String refMemberShip, String memberShipKey, Long groupId, Long roleId, Long userId, Long pBProcessPersistenceId)
extends Record
Record representing a minimal set of user and membership data
defined for a **process definition**.
This record is used to store the specific users and memberships associated with a process to facilitate efficient passing of actor filter data without including the complete process user list (`PBUserList`) object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanLaunchProcessrecord component.final booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thememberShipKeyrecord component.Returns the value of thepBProcessPersistenceIdrecord component.Returns the value of thepersistenceIdrecord component.Returns the value of therefMemberShiprecord component.roleId()Returns the value of theroleIdrecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
UserList
public UserList(Long persistenceId, Boolean canLaunchProcess, String refMemberShip, String memberShipKey, Long groupId, Long roleId, Long userId, Long pBProcessPersistenceId) Compact constructor to perform validation or canonicalization, if needed. Currently, it serves as the default constructor provided by the record.- Parameters:
persistenceId- The unique identifier for this user list entry.canLaunchProcess- A flag indicating if the user/membership can launch the process.refMemberShip- The reference name of the membership (e.g., a role or group name).memberShipKey- The unique key identifying the type of membership (e.g., "ROLE", "GROUP", "USER").groupId- The persistence ID of the associated group, if applicable.roleId- The persistence ID of the associated role, if applicable.userId- The persistence ID of the associated user, if applicable.pBProcessPersistenceId- The persistence ID of the process definition this list belongs to.
-
-
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). -
persistenceId
Returns the value of thepersistenceIdrecord component.- Returns:
- the value of the
persistenceIdrecord component
-
canLaunchProcess
Returns the value of thecanLaunchProcessrecord component.- Returns:
- the value of the
canLaunchProcessrecord component
-
refMemberShip
Returns the value of therefMemberShiprecord component.- Returns:
- the value of the
refMemberShiprecord component
-
memberShipKey
Returns the value of thememberShipKeyrecord component.- Returns:
- the value of the
memberShipKeyrecord component
-
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
roleId
Returns the value of theroleIdrecord component.- Returns:
- the value of the
roleIdrecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
pBProcessPersistenceId
Returns the value of thepBProcessPersistenceIdrecord component.- Returns:
- the value of the
pBProcessPersistenceIdrecord component
-