Class CanceledInfo
- java.lang.Object
-
- jetbrains.buildServer.serverSide.userChanges.CanceledInfo
-
public class CanceledInfo extends Object
Contains information about canceled build
-
-
Constructor Summary
Constructors Constructor Description CanceledInfo(long userId, String comment)
Constructor for builds cancelled by a userCanceledInfo(String comment)
Constructor for builds cancelled by the system
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getComment()
Returns cancellation commentlong
getCreatedAt()
Long
getUserId()
Returns id of the user who cancelled the build or null if build was not cancelled by a userint
hashCode()
boolean
isCanceledByUser()
Returns true if build was cancelled by a userboolean
isOutdated()
String
toString()
-
-
-
Constructor Detail
-
CanceledInfo
public CanceledInfo(long userId, @Nullable String comment)
Constructor for builds cancelled by a user- Parameters:
userId
- id of the user who cancelled the buildcomment
- comment
-
CanceledInfo
public CanceledInfo(@Nullable String comment)
Constructor for builds cancelled by the system- Parameters:
comment
- comment
-
-
Method Detail
-
getComment
@Nullable public String getComment()
Returns cancellation comment- Returns:
- cancellation comment
-
getUserId
@Nullable public Long getUserId()
Returns id of the user who cancelled the build or null if build was not cancelled by a user- Returns:
- user id who canceled the build
-
isCanceledByUser
public boolean isCanceledByUser()
Returns true if build was cancelled by a user- Returns:
- true if the build was canceled by user
-
getCreatedAt
public long getCreatedAt()
- Returns:
- the timestamp when this object was created
-
isOutdated
public boolean isOutdated()
- Returns:
- true if this object was created (build was canceled) more than 5 minutes ago
-
-