Package jetbrains.buildServer.serverSide
Class ResponsibilityInfo
- java.lang.Object
-
- jetbrains.buildServer.serverSide.ResponsibilityInfo
-
- All Implemented Interfaces:
jetbrains.buildServer.log.Loggable
,ResponsibilityEntry
- Direct Known Subclasses:
BuildTypeResponsibilityEntryImpl
,TestNameResponsibilityEntryImpl
public class ResponsibilityInfo extends java.lang.Object implements ResponsibilityEntry, jetbrains.buildServer.log.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 java.lang.String
myComment
protected ResponsibilityEntry.RemoveMethod
myRemoveMethod
protected User
myReporterUser
protected User
myResponsibleUser
protected ResponsibilityEntry.State
myState
protected java.util.Date
myTimestamp
-
Constructor Summary
Constructors Modifier Constructor Description protected
ResponsibilityInfo(ResponsibilityEntry.State state, User responsibleUser, User reporterUser, java.util.Date timestamp, java.lang.String comment, ResponsibilityEntry.RemoveMethod removeMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
myState
protected ResponsibilityEntry.State myState
-
myResponsibleUser
protected User myResponsibleUser
-
myReporterUser
protected User myReporterUser
-
myComment
protected java.lang.String myComment
-
myTimestamp
protected java.util.Date myTimestamp
-
myRemoveMethod
protected ResponsibilityEntry.RemoveMethod myRemoveMethod
-
-
Constructor Detail
-
ResponsibilityInfo
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)
-
-
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 java.util.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 java.lang.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
-
describe
@NotNull public java.lang.String describe(boolean verbose)
- Specified by:
describe
in interfacejetbrains.buildServer.log.Loggable
-
-