|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.serverSide.ResponsibilityInfo
public class ResponsibilityInfo
Contains information about user responsibility for a build configuration.
Build configuration may have active responsible isActive(), name of current or previous
responsible is returned with getUser(). User comment, entered when he has taken responsibility or gave it up
is returned by getComment().
If user fixed the build and marked it as 'done', method isFixed() will return true.
5.0 UPDATE:
implements ResponsibilityEntry interface, the previous API has been marked as deprecated.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jetbrains.buildServer.responsibility.ResponsibilityEntry |
|---|
ResponsibilityEntry.State |
| Field Summary | |
|---|---|
protected boolean |
myActive
|
protected java.lang.String |
myComment
|
protected boolean |
myDone
|
protected java.util.Date |
myUpdated
|
protected User |
myUser
DEPRECATED SECTION. |
protected User |
myUserWhoPerformsTheAction
|
| Constructor Summary | |
|---|---|
protected |
ResponsibilityInfo(ResponsibilityEntry.State state,
User responsibleUser,
User reporterUser,
java.util.Date timestamp,
java.lang.String comment)
|
| Method Summary | |
|---|---|
static ResponsibilityInfo |
createActive(User responsibleUser,
java.lang.String userComment,
User userWhoPerformsTheAction)
Deprecated. since 5.0 (use ResponsibilityEntryFactory) |
static ResponsibilityInfo |
createInactive()
Deprecated. since 5.0 (use ResponsibilityEntryFactory) |
static ResponsibilityInfo |
createInactive(java.lang.String comment,
boolean buildWasFixed,
User userWhoPerformsTheAction)
Deprecated. since 5.0 (use ResponsibilityEntryFactory) |
java.lang.String |
getComment()
A user comment of the last state change. |
User |
getReporterUser()
Returns the user who assigned the responsibility. |
User |
getResponsibleUser()
Returns the user who is assigned responsible. |
java.util.Date |
getSince()
Deprecated. since 5.0 |
ResponsibilityEntry.State |
getState()
Returns the current state. |
java.util.Date |
getTimestamp()
Returns the time of last change of state. |
User |
getUser()
Deprecated. since 5.0 |
User |
getUserWhoPerformsTheAction()
Deprecated. since 5.0 |
boolean |
isActive()
Deprecated. since 5.0 |
boolean |
isFixed()
Deprecated. since 5.0 |
void |
setUser(User user)
Deprecated. since 5.0 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected User myUser
protected User myUserWhoPerformsTheAction
protected java.lang.String myComment
protected java.util.Date myUpdated
protected boolean myActive
protected boolean myDone
| Constructor Detail |
|---|
protected ResponsibilityInfo(@NotNull
ResponsibilityEntry.State state,
@NotNull
User responsibleUser,
@Nullable
User reporterUser,
@NotNull
java.util.Date timestamp,
@NotNull
java.lang.String comment)
| Method Detail |
|---|
@NotNull public ResponsibilityEntry.State getState()
ResponsibilityEntry
getState in interface ResponsibilityEntry@NotNull public User getResponsibleUser()
ResponsibilityEntry
getResponsibleUser in interface ResponsibilityEntrypublic User getReporterUser()
ResponsibilityEntry
getReporterUser in interface ResponsibilityEntry@NotNull public java.util.Date getTimestamp()
ResponsibilityEntry
getTimestamp in interface ResponsibilityEntry@NotNull public java.lang.String getComment()
ResponsibilityEntry
getComment in interface ResponsibilityEntry
@Deprecated
public static ResponsibilityInfo createActive(User responsibleUser,
java.lang.String userComment,
User userWhoPerformsTheAction)
ResponsibilityEntryFactory)
responsibleUser - responsible useruserComment - responsibility comment about why responsibility set.userWhoPerformsTheAction - user who performs the action
@Deprecated
public static ResponsibilityInfo createInactive(java.lang.String comment,
boolean buildWasFixed,
User userWhoPerformsTheAction)
ResponsibilityEntryFactory)
comment - comment about why responsibility status is changed.buildWasFixed - true if the configuration was fixed.userWhoPerformsTheAction - user who performs the action
public static ResponsibilityInfo createInactive()
ResponsibilityEntryFactory)
@Deprecated public User getUser()
@Deprecated public User getUserWhoPerformsTheAction()
@Deprecated public java.util.Date getSince()
@Deprecated
public void setUser(@Nullable
User user)
user - new responsible person.@Deprecated public boolean isActive()
@Deprecated public boolean isFixed()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||