jetbrains.buildServer.serverSide.mute
Interface MuteInfo


public interface MuteInfo

Brief information about problem muting.

The major contract of this entity is invariance of all data returned by getters of this interface. So, if a client got a value from one of getters they can assume that the next call of this getter even from another instance (but with the same key) will return an equivalent value.

The key is Id - see getId(). So all implementations MUST implement Object.equals(Object) and Object.hashCode() that consider Id only.

Since:
6.5
Author:
Leonid Bushuev from JetBrains
See Also:
MuteScope

Method Summary
 UnmuteOptions getAutoUnmuteOptions()
          Options how the system should unmute the problem automatically.
 java.lang.Integer getId()
          The key if the mute fact.
 java.lang.String getMutingComment()
          Muting note.
 java.util.Date getMutingTime()
          Date and time of the muting fact.
 User getMutingUser()
          Returns user who muted test.
 long getMutingUserId()
          User that has muted something.
 java.lang.String getProjectId()
          The project where something was muted.
 MuteScope getScope()
          Scope, where problems were muted..
 java.util.Collection<java.lang.Long> getTestNameIds()
          Set of tests that were muted.
 java.util.Collection<STest> getTests()
          Retrieves tests that were muted.
 

Method Detail

getId

@NotNull
java.lang.Integer getId()
The key if the mute fact.

Returns:
muting identifier.

getProjectId

@NotNull
java.lang.String getProjectId()
The project where something was muted.

Returns:

getMutingUserId

long getMutingUserId()
User that has muted something.

Returns:
user id.

getMutingUser

@Nullable
User getMutingUser()
Returns user who muted test. Can return null if such user does not exist anymore.

Returns:
see above

getMutingTime

@NotNull
java.util.Date getMutingTime()
Date and time of the muting fact.

Returns:
time stamp when the test has been muted.

getMutingComment

@Nullable
java.lang.String getMutingComment()
Muting note.

Returns:
a comment user left when he/she muted the test. This note is always not null to around a problem in JSP. May be null but never empty.

getScope

@NotNull
MuteScope getScope()
Scope, where problems were muted..

Returns:
scope.

getTestNameIds

@NotNull
java.util.Collection<java.lang.Long> getTestNameIds()
Set of tests that were muted.

Returns:
immutable set of test name identifiers. These identifiers are without run-count incrementing even when the scope is MuteScope.ScopeType.IN_ONE_BUILD.

getTests

@NotNull
java.util.Collection<STest> getTests()
Retrieves tests that were muted.

Returns:
collection of tests.

getAutoUnmuteOptions

@NotNull
UnmuteOptions getAutoUnmuteOptions()
Options how the system should unmute the problem automatically.

Returns:
how the system should unmute the problem automatically.