Class PersonalChangeDescriptor
- java.lang.Object
-
- jetbrains.buildServer.serverSide.userChanges.PersonalChangeDescriptor
-
- Direct Known Subclasses:
PersonalChangeInfo
public class PersonalChangeDescriptor extends Object
Contains minimal information about personal change. Used to normalize data transferred between the server and their clients
-
-
Constructor Summary
Constructors Constructor Description PersonalChangeDescriptor(long id, long userId, PreTestedCommitType commitType, Status status, PersonalChangeCommitDecision commitDecision)
Creates new personal change descriptor objectPersonalChangeDescriptor(long id, long userId, PreTestedCommitType commitType, Status status, PersonalChangeCommitDecision commitDecision, List<Long> showNotificationsFor)
Deprecated.usePersonalChangeDescriptor(long, long, PreTestedCommitType, jetbrains.buildServer.messages.Status, PersonalChangeCommitDecision)
Creates new personal change descriptor objectPersonalChangeDescriptor(PersonalChangeDescriptor descriptor)
Copying constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getCommitStatusText()
PreTestedCommitType
getCommitType()
long
getId()
PersonalChangeCommitDecision
getPersonalChangeStatus()
Status
getStatus()
long
getUserId()
int
hashCode()
-
-
-
Constructor Detail
-
PersonalChangeDescriptor
public PersonalChangeDescriptor(long id, long userId, PreTestedCommitType commitType, Status status, PersonalChangeCommitDecision commitDecision)
Creates new personal change descriptor object- Parameters:
id
- personal change iduserId
- personal change owner idcommitType
- type of commit (seePreTestedCommitType
for more info)status
- current personal change statuscommitDecision
- commit decision for the personal change- Since:
- 6.5
-
PersonalChangeDescriptor
@Deprecated public PersonalChangeDescriptor(long id, long userId, PreTestedCommitType commitType, Status status, PersonalChangeCommitDecision commitDecision, List<Long> showNotificationsFor)
Deprecated.usePersonalChangeDescriptor(long, long, PreTestedCommitType, jetbrains.buildServer.messages.Status, PersonalChangeCommitDecision)
Creates new personal change descriptor object- Parameters:
id
- personal change iduserId
- personal change owner idcommitType
- type of commit (seePreTestedCommitType
for more info)status
- current personal change statuscommitDecision
- commit decision for the personal changeshowNotificationsFor
- list of buildId which relate to this change and which should be notified in case of failure
-
PersonalChangeDescriptor
public PersonalChangeDescriptor(PersonalChangeDescriptor descriptor)
Copying constructor.- Parameters:
descriptor
- descriptor to copy
-
-
Method Detail
-
getId
public long getId()
- Returns:
- personal change id
-
getUserId
public long getUserId()
- Returns:
- personal change owner id
-
getCommitType
public PreTestedCommitType getCommitType()
- Returns:
- commit type (see
PreTestedCommitType
for more info)
-
getStatus
public Status getStatus()
- Returns:
- current change commit status (unknown, successfully committed or failed to commit. Status.WARNING means commit was canceled from confirmation window)
-
getPersonalChangeStatus
public PersonalChangeCommitDecision getPersonalChangeStatus()
-
getCommitStatusText
public String getCommitStatusText()
-
-