jetbrains.buildServer.serverSide.userChanges
Class PersonalChangeDescriptor

java.lang.Object
  extended by jetbrains.buildServer.serverSide.userChanges.PersonalChangeDescriptor
Direct Known Subclasses:
PersonalChangeInfo

public class PersonalChangeDescriptor
extends java.lang.Object

Contains minimal information about personal change. Used to normilize data transferred between the server and their clients


Constructor Summary
PersonalChangeDescriptor(long id, long userId, PreTestedCommitType commitType, Status status, PersonalChangeCommitDecision commitDecision)
          Creates new personal change descriptor object
PersonalChangeDescriptor(long id, long userId, PreTestedCommitType commitType, Status status, PersonalChangeCommitDecision commitDecision, java.util.List<java.lang.Long> showNotificationsFor)
          Deprecated. use PersonalChangeDescriptor(long, long, PreTestedCommitType, jetbrains.buildServer.messages.Status, PersonalChangeCommitDecision) Creates new personal change descriptor object
PersonalChangeDescriptor(PersonalChangeDescriptor descriptor)
          Copying constructor.
 
Method Summary
 java.lang.String getCommitStatusText()
           
 PreTestedCommitType getCommitType()
           
 long getId()
           
 PersonalChangeCommitDecision getPersonalChangeStatus()
           
 Status getStatus()
           
 long getUserId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 id
userId - personal change owner id
commitType - type of commit (see PreTestedCommitType for more info)
status - current personal change status
commitDecision - commit decision for the personal change
Since:
6.5

PersonalChangeDescriptor

@Deprecated
public PersonalChangeDescriptor(long id,
                                           long userId,
                                           PreTestedCommitType commitType,
                                           Status status,
                                           PersonalChangeCommitDecision commitDecision,
                                           java.util.List<java.lang.Long> showNotificationsFor)
Deprecated. use PersonalChangeDescriptor(long, long, PreTestedCommitType, jetbrains.buildServer.messages.Status, PersonalChangeCommitDecision) Creates new personal change descriptor object

Parameters:
id - personal change id
userId - personal change owner id
commitType - type of commit (see PreTestedCommitType for more info)
status - current personal change status
commitDecision - commit decision for the personal change
showNotificationsFor - 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 -
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 java.lang.String getCommitStatusText()