Package jetbrains.buildServer.serverSide
Class ResponsibilityInfo
- java.lang.Object
-
- jetbrains.buildServer.serverSide.ResponsibilityInfo
-
- All Implemented Interfaces:
Loggable,ResponsibilityEntry
- Direct Known Subclasses:
BuildProblemInvestigationImpl,BuildTypeResponsibilityEntryImpl,ResponsibilityEntryEx,TestNameResponsibilityEntryImpl
public class ResponsibilityInfo extends Object implements ResponsibilityEntry, Loggable
A simpleResponsibilityEntryimplementation.Note: do not use this class directly, use
ResponsibilityEntryinterface, as it is possible that implementation will be moved out of open API in future versions.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.responsibility.ResponsibilityEntry
ResponsibilityEntry.RemoveMethod, ResponsibilityEntry.State
-
-
Field Summary
Fields Modifier and Type Field Description protected StringmyCommentprotected ResponsibilityEntry.RemoveMethodmyRemoveMethodprotected UsermyReporterUserprotected UsermyResponsibleUserprotected ResponsibilityEntry.StatemyStateprotected DatemyTimestamp
-
Constructor Summary
Constructors Modifier Constructor Description protectedResponsibilityInfo(ResponsibilityEntry.State state, User responsibleUser, User reporterUser, Date timestamp, String comment, ResponsibilityEntry.RemoveMethod removeMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescribe(boolean verbose)StringgetComment()A user comment of the last state change.ResponsibilityEntry.RemoveMethodgetRemoveMethod()Returns the remove method.UsergetReporterUser()Returns the user who did the action (assigned the responsibility, or marked as fixed on behalf of another person, etc).UsergetResponsibleUser()Returns the user who is assigned responsible.ResponsibilityEntry.StategetState()Returns the current state.DategetTimestamp()Returns the time of last change of state.
-
-
-
Field Detail
-
myState
protected ResponsibilityEntry.State myState
-
myResponsibleUser
protected User myResponsibleUser
-
myReporterUser
protected User myReporterUser
-
myComment
protected String myComment
-
myTimestamp
protected Date myTimestamp
-
myRemoveMethod
protected ResponsibilityEntry.RemoveMethod myRemoveMethod
-
-
Constructor Detail
-
ResponsibilityInfo
protected ResponsibilityInfo(@NotNull ResponsibilityEntry.State state, @Nullable User responsibleUser, @Nullable User reporterUser, @Nullable Date timestamp, @Nullable String comment, @NotNull ResponsibilityEntry.RemoveMethod removeMethod)
-
-
Method Detail
-
getState
@NotNull public ResponsibilityEntry.State getState()
Description copied from interface:ResponsibilityEntryReturns the current state.- Specified by:
getStatein interfaceResponsibilityEntry- Returns:
- current state
-
getResponsibleUser
@NotNull public User getResponsibleUser()
Description copied from interface:ResponsibilityEntryReturns the user who is assigned responsible.Before calling the client is expected to check the state is not
NONE, otherwise anIllegalStateExceptionis thrown.- Specified by:
getResponsibleUserin interfaceResponsibilityEntry- Returns:
- responsible user
-
getReporterUser
public User getReporterUser()
Description copied from interface:ResponsibilityEntryReturns the user who did the action (assigned the responsibility, or marked as fixed on behalf of another person, etc).- Specified by:
getReporterUserin interfaceResponsibilityEntry- Returns:
- the reporter (or null, if unknown)
-
getTimestamp
@NotNull public Date getTimestamp()
Description copied from interface:ResponsibilityEntryReturns the time of last change of state.- Specified by:
getTimestampin interfaceResponsibilityEntry- Returns:
- the timestamp
-
getComment
@NotNull public String getComment()
Description copied from interface:ResponsibilityEntryA user comment of the last state change.- Specified by:
getCommentin interfaceResponsibilityEntry- Returns:
- the comment
-
getRemoveMethod
@NotNull public ResponsibilityEntry.RemoveMethod getRemoveMethod()
Description copied from interface:ResponsibilityEntryReturns the remove method.- Specified by:
getRemoveMethodin interfaceResponsibilityEntry- Returns:
- remove method
-
-