Record Class RequestSummary
java.lang.Object
java.lang.Record
io.jenkins.plugins.batchcontrol.store.RequestSummary
- Record Components:
id- request id (sortable by creation time)jobFullName- target jobrequester- requesting user idstatus- current statuscreatedAt- creation instantdecidedAt- decision instant, ornullwhile undecided
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public record RequestSummary(String id, String jobFullName, String requester, RequestStatus status, Instant createdAt, Instant decidedAt)
extends Record
The few fields of a run request that listings filter and sort on, kept in memory by the
store so a listing reads only the XML files of the rows it renders. Derived data: rebuilt from
requests/run/*.xml once per Jenkins session and updated on every save.-
Constructor Summary
ConstructorsConstructorDescriptionRequestSummary(String id, String jobFullName, String requester, RequestStatus status, Instant createdAt, Instant decidedAt) Creates an instance of aRequestSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.Returns the value of thedecidedAtrecord 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.booleanisOpen()PENDING or APPROVED: the only statuses the expiry, recovery and invalidation work acts on.Returns the value of thejobFullNamerecord component.Returns the value of therequesterrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RequestSummary
public RequestSummary(String id, String jobFullName, String requester, RequestStatus status, Instant createdAt, @CheckForNull Instant decidedAt) Creates an instance of aRequestSummaryrecord class.- Parameters:
id- the value for theidrecord componentjobFullName- the value for thejobFullNamerecord componentrequester- the value for therequesterrecord componentstatus- the value for thestatusrecord componentcreatedAt- the value for thecreatedAtrecord componentdecidedAt- the value for thedecidedAtrecord component
-
-
Method Details
-
isOpen
public boolean isOpen()PENDING or APPROVED: the only statuses the expiry, recovery and invalidation work acts on. -
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
jobFullName
Returns the value of thejobFullNamerecord component.- Returns:
- the value of the
jobFullNamerecord component
-
requester
Returns the value of therequesterrecord component.- Returns:
- the value of the
requesterrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
decidedAt
Returns the value of thedecidedAtrecord component.- Returns:
- the value of the
decidedAtrecord component
-