Class ModificationDataWrapper
- java.lang.Object
-
- jetbrains.buildServer.buildTriggers.vcs.ModificationDataWrapper
-
- All Implemented Interfaces:
Comparable<VcsModification>,Modification,VcsModification
public class ModificationDataWrapper extends Object implements VcsModification
-
-
Constructor Summary
Constructors Constructor Description ModificationDataWrapper(ChangeData modificationData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(VcsModification o)VcsFileModificationfindChangeByPath(String fileName)Find file modification corresponding to given fileName, may be null.intgetChangeCount()Return number of files changed in this modificationList<VcsFileModification>getChanges()Returns list of file modifications related to the changeStringgetDescription()Returns user comment made for the changeStringgetDisplayVersion()longgetId()Unique identifier for the modificationStringgetUserName()Returns name of the user who did this commit (according information from VCS system)DategetVcsDate()Returns when this modification was madeStringgetVersion()StringgetVersionControlName()Return version control name as returned byVcsSupportConfig.getDisplayName(); for personal builds "Remote Run" string is returned.booleanisPersonal()Return true if this modification corresponds to personal change of personal build or pre-tested commit
-
-
-
Constructor Detail
-
ModificationDataWrapper
public ModificationDataWrapper(ChangeData modificationData)
-
-
Method Detail
-
getUserName
@Nullable public String getUserName()
Description copied from interface:ModificationReturns name of the user who did this commit (according information from VCS system)- Specified by:
getUserNamein interfaceModification- Returns:
- name of the user who did this commit (according information from VCS system)
-
getDescription
@NotNull public String getDescription()
Description copied from interface:ModificationReturns user comment made for the change- Specified by:
getDescriptionin interfaceModification- Returns:
- user comment made for the change
-
getVcsDate
@NotNull public Date getVcsDate()
Description copied from interface:ModificationReturns when this modification was made- Specified by:
getVcsDatein interfaceModification- Returns:
- when this modification was made
-
getChanges
@NotNull public List<VcsFileModification> getChanges()
Description copied from interface:VcsModificationReturns list of file modifications related to the change- Specified by:
getChangesin interfaceVcsModification- Returns:
- list of file modifications related to the change
-
findChangeByPath
public VcsFileModification findChangeByPath(String fileName)
Description copied from interface:VcsModificationFind file modification corresponding to given fileName, may be null. The fileName should exactly match the value fromVcsChangeInfo.getFileName()- Specified by:
findChangeByPathin interfaceVcsModification- Parameters:
fileName- name a file to search for- Returns:
- see above
-
getId
public long getId()
Description copied from interface:VcsModificationUnique identifier for the modification- Specified by:
getIdin interfaceVcsModification- Returns:
- unique identifier of the modification
-
getVersion
@NotNull public String getVersion()
- Specified by:
getVersionin interfaceVcsModification
-
getDisplayVersion
public String getDisplayVersion()
- Specified by:
getDisplayVersionin interfaceVcsModification
-
getVersionControlName
public String getVersionControlName()
Description copied from interface:VcsModificationReturn version control name as returned byVcsSupportConfig.getDisplayName(); for personal builds "Remote Run" string is returned.- Specified by:
getVersionControlNamein interfaceVcsModification- Returns:
- version control name
-
isPersonal
public boolean isPersonal()
Description copied from interface:VcsModificationReturn true if this modification corresponds to personal change of personal build or pre-tested commit- Specified by:
isPersonalin interfaceVcsModification- Returns:
- true if this modification corresponds to personal change of personal build or pre-tested commit
-
getChangeCount
public int getChangeCount()
Description copied from interface:VcsModificationReturn number of files changed in this modification- Specified by:
getChangeCountin interfaceVcsModification- Returns:
- see above
-
compareTo
public int compareTo(VcsModification o)
- Specified by:
compareToin interfaceComparable<VcsModification>
-
-