public class ResponsibilityInfo extends java.lang.Object implements ResponsibilityEntry, jetbrains.buildServer.log.Loggable
ResponsibilityEntry 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.
ResponsibilityEntry.RemoveMethod, ResponsibilityEntry.State| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
myComment |
protected ResponsibilityEntry.RemoveMethod |
myRemoveMethod |
protected User |
myReporterUser |
protected User |
myResponsibleUser |
protected ResponsibilityEntry.State |
myState |
protected java.util.Date |
myTimestamp |
| Modifier | Constructor and Description |
|---|---|
protected |
ResponsibilityInfo(ResponsibilityEntry.State state,
User responsibleUser,
User reporterUser,
java.util.Date timestamp,
java.lang.String comment,
ResponsibilityEntry.RemoveMethod removeMethod) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
describe(boolean verbose) |
java.lang.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.
|
java.util.Date |
getTimestamp()
Returns the time of last change of state.
|
protected ResponsibilityEntry.State myState
protected User myResponsibleUser
protected User myReporterUser
protected java.lang.String myComment
protected java.util.Date myTimestamp
protected ResponsibilityEntry.RemoveMethod myRemoveMethod
protected ResponsibilityInfo(@NotNull
ResponsibilityEntry.State state,
@Nullable
User responsibleUser,
@Nullable
User reporterUser,
@Nullable
java.util.Date timestamp,
@Nullable
java.lang.String comment,
@NotNull
ResponsibilityEntry.RemoveMethod removeMethod)
@NotNull public ResponsibilityEntry.State getState()
ResponsibilityEntrygetState in interface ResponsibilityEntry@NotNull public User getResponsibleUser()
ResponsibilityEntry
Before calling the client is expected to check the state is not NONE,
otherwise an IllegalStateException is thrown.
getResponsibleUser in interface ResponsibilityEntrypublic User getReporterUser()
ResponsibilityEntrygetReporterUser in interface ResponsibilityEntry@NotNull public java.util.Date getTimestamp()
ResponsibilityEntrygetTimestamp in interface ResponsibilityEntry@NotNull public java.lang.String getComment()
ResponsibilityEntrygetComment in interface ResponsibilityEntry@NotNull public ResponsibilityEntry.RemoveMethod getRemoveMethod()
ResponsibilityEntrygetRemoveMethod in interface ResponsibilityEntry@NotNull public java.lang.String describe(boolean verbose)
describe in interface jetbrains.buildServer.log.Loggable