Record Class AccessCertificationWorkItemId

java.lang.Object
java.lang.Record
com.evolveum.midpoint.schema.util.AccessCertificationWorkItemId
All Implemented Interfaces:
Serializable

public record AccessCertificationWorkItemId(@NotNull AccessCertificationCaseId caseId, long workItemId) extends Record implements Serializable
See Also:
  • Constructor Details

    • AccessCertificationWorkItemId

      public AccessCertificationWorkItemId(@NotNull @NotNull AccessCertificationCaseId caseId, long workItemId)
      Creates an instance of a AccessCertificationWorkItemId record class.
      Parameters:
      caseId - the value for the caseId record component
      workItemId - the value for the workItemId record component
  • Method Details

    • of

      public static AccessCertificationWorkItemId of(@NotNull @NotNull String campaignOid, long caseId, long workItemId)
    • of

      public static AccessCertificationWorkItemId of(@NotNull @NotNull AccessCertificationWorkItemType workItem)
    • of

      public static Set<AccessCertificationWorkItemId> of(@NotNull @NotNull Collection<AccessCertificationWorkItemType> workItems)
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • campaignOid

      @NotNull public @NotNull String campaignOid()
    • asItemPath

      @NotNull public @NotNull ItemPath asItemPath()
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • caseId

      @NotNull public @NotNull AccessCertificationCaseId caseId()
      Returns the value of the caseId record component.
      Returns:
      the value of the caseId record component
    • workItemId

      public long workItemId()
      Returns the value of the workItemId record component.
      Returns:
      the value of the workItemId record component