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 simpleResponsibilityEntry
implementation.Note: do not use this class directly, use
ResponsibilityEntry
interface, 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 String
myComment
protected ResponsibilityEntry.RemoveMethod
myRemoveMethod
protected User
myReporterUser
protected User
myResponsibleUser
protected ResponsibilityEntry.State
myState
protected Date
myTimestamp
-
Constructor Summary
Constructors Modifier Constructor Description protected
ResponsibilityInfo(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 String
describe(boolean verbose)
String
getComment()
A user comment of the last state change.ResponsibilityEntry.RemoveMethod
getRemoveMethod()
Returns the remove method.User
getReporterUser()
Returns the user who did the action (assigned the responsibility, or marked as fixed on behalf of another person, etc).User
getResponsibleUser()
Returns the user who is assigned responsible.ResponsibilityEntry.State
getState()
Returns the current state.Date
getTimestamp()
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:ResponsibilityEntry
Returns the current state.- Specified by:
getState
in interfaceResponsibilityEntry
- Returns:
- current state
-
getResponsibleUser
@NotNull public User getResponsibleUser()
Description copied from interface:ResponsibilityEntry
Returns the user who is assigned responsible.Before calling the client is expected to check the state is not
NONE
, otherwise anIllegalStateException
is thrown.- Specified by:
getResponsibleUser
in interfaceResponsibilityEntry
- Returns:
- responsible user
-
getReporterUser
public User getReporterUser()
Description copied from interface:ResponsibilityEntry
Returns the user who did the action (assigned the responsibility, or marked as fixed on behalf of another person, etc).- Specified by:
getReporterUser
in interfaceResponsibilityEntry
- Returns:
- the reporter (or null, if unknown)
-
getTimestamp
@NotNull public Date getTimestamp()
Description copied from interface:ResponsibilityEntry
Returns the time of last change of state.- Specified by:
getTimestamp
in interfaceResponsibilityEntry
- Returns:
- the timestamp
-
getComment
@NotNull public String getComment()
Description copied from interface:ResponsibilityEntry
A user comment of the last state change.- Specified by:
getComment
in interfaceResponsibilityEntry
- Returns:
- the comment
-
getRemoveMethod
@NotNull public ResponsibilityEntry.RemoveMethod getRemoveMethod()
Description copied from interface:ResponsibilityEntry
Returns the remove method.- Specified by:
getRemoveMethod
in interfaceResponsibilityEntry
- Returns:
- remove method
-
-