Interface ResponsibilityEntry
-
- All Known Subinterfaces:
BuildProblemResponsibilityEntry
,BuildTypeResponsibilityEntry
,TestNameResponsibilityEntry
- All Known Implementing Classes:
BuildProblemInvestigationImpl
,BuildTypeResponsibilityEntryImpl
,ResponsibilityEntryEx
,ResponsibilityInfo
,TestNameResponsibilityEntryImpl
public interface ResponsibilityEntry
Represents a single entry of responsibility, holds all the data associated with it.- Since:
- 5.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ResponsibilityEntry.RemoveMethod
Represents the method how to remove responsibility.static class
ResponsibilityEntry.State
Represents the state of responsibility.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
getState
@NotNull ResponsibilityEntry.State getState()
Returns the current state.- Returns:
- current state
-
getResponsibleUser
@NotNull User getResponsibleUser()
Returns the user who is assigned responsible.Before calling the client is expected to check the state is not
NONE
, otherwise anIllegalStateException
is thrown.- Returns:
- responsible user
-
getReporterUser
@Nullable User getReporterUser()
Returns the user who did the action (assigned the responsibility, or marked as fixed on behalf of another person, etc).- Returns:
- the reporter (or null, if unknown)
-
getTimestamp
@NotNull Date getTimestamp()
Returns the time of last change of state.- Returns:
- the timestamp
-
getComment
@NotNull String getComment()
A user comment of the last state change.- Returns:
- the comment
-
getRemoveMethod
@NotNull ResponsibilityEntry.RemoveMethod getRemoveMethod()
Returns the remove method.- Returns:
- remove method
- Since:
- 7.1
-
-