public interface SVcsModification extends VcsModification
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Returns modification's attributes or empty map if modification
doesn't have any.
|
java.util.Map<SBuildType,RelationType> |
getBuildTypeRelations() |
java.util.List<java.lang.Long> |
getCommitterIds()
Returns ids of TeamCity users mapped to this VCS modification by VCS username.
|
java.util.Collection<SUser> |
getCommitters() |
java.util.Collection<SVcsModification> |
getDuplicates()
Returns duplicates of this VCS modification, (the given modification is not included)
|
java.util.List<FilteredVcsChange> |
getFilteredChanges(BuildPromotion buildPromotion)
Returns list of changed files filtered according to checkout rules of the specified build promotion
|
java.util.List<FilteredVcsChange> |
getFilteredChanges(SBuild build)
Returns list of changed files filtered according to checkout rules of the specified build
|
java.util.List<FilteredVcsChange> |
getFilteredChanges(SBuildType buildType)
Returns list of changed files filtered according to checkout rules of the specified build configuration
|
java.util.Map<SBuildType,SBuild> |
getFirstBuilds()
For non-personal builds, returns map of build configuration -> build where this modification was
included for the first time.
|
int |
getNumberOfRelatedConfigurations()
Returns number of build configurations where this modification appeared.
|
java.util.Collection<SVcsModification> |
getParentModifications()
Returns parent modifications of this VCS modification.
|
java.util.Collection<java.lang.String> |
getParentRevisions()
Returns parent revisions for modifications from dag-based VCSes
as they were reported by a VCS plugin.
|
PersonalChangeDescriptor |
getPersonalChangeInfo()
For personal changes, returns personal change information details.
|
java.util.Date |
getRegistrationDate()
Returns date of this VCS modification registration in the TeamCity server database.
|
java.util.Collection<SBuildType> |
getRelatedConfigurations()
Returns collection of build configurations where this modification appeared.
|
java.util.Collection<Issue> |
getRelatedIssues()
Returns the collection of issues related to this modification (fixed bugs, introduced features, etc).
|
java.util.Collection<SProject> |
getRelatedProjects() |
VcsRootInstance |
getVcsRoot()
For non-personal modifications returns VCS root where this modification occurred.
|
boolean |
hasRelation(SBuildType buildType,
RelationType relation)
Returns true if the given buildType has relation of the specified type
|
boolean |
isCommitter(User user)
Returns if the specified user is committer for the modification.
|
boolean |
isHasRelatedIssues()
Returns whether the modification has related issues (fixed bugs, introduced features, etc).
|
boolean |
relatedToBuildConfigurationsAccessibleTo(AuthorityHolder authorityHolder)
Returns true if the specified authority holder has read access to at least one build configuration where this VCS modification was detected.
|
void |
setDescription(java.lang.String newDescription)
Set and store new description for the modification in the database.
|
findChangeByPath, getChangeCount, getChanges, getDisplayVersion, getId, getVersion, getVersionControlName, isPersonal
getDescription, getUserName, getVcsDate
@NotNull VcsRootInstance getVcsRoot() throws VcsRootNotFoundException
VcsRootNotFoundException
boolean isCommitter(@NotNull User user)
user
- specified user.@NotNull java.util.List<java.lang.Long> getCommitterIds()
@NotNull java.util.Collection<SUser> getCommitters()
@NotNull java.util.Collection<SBuildType> getRelatedConfigurations()
@NotNull java.util.Map<SBuildType,RelationType> getBuildTypeRelations()
boolean hasRelation(@NotNull SBuildType buildType, @NotNull RelationType relation)
buildType
- buildType of interestrelation
- relation of interest@NotNull java.util.Collection<SProject> getRelatedProjects()
int getNumberOfRelatedConfigurations()
@NotNull java.util.List<FilteredVcsChange> getFilteredChanges(@NotNull SBuildType buildType)
buildType
- build configuration@NotNull java.util.List<FilteredVcsChange> getFilteredChanges(@NotNull SBuild build)
build
- build@NotNull java.util.List<FilteredVcsChange> getFilteredChanges(@NotNull BuildPromotion buildPromotion)
buildPromotion
- build promotion@NotNull java.util.Map<SBuildType,SBuild> getFirstBuilds()
@NotNull java.util.Collection<Issue> getRelatedIssues()
isHasRelatedIssues()
boolean isHasRelatedIssues()
getRelatedIssues()
@NotNull PersonalChangeDescriptor getPersonalChangeInfo()
java.lang.UnsupportedOperationException
- when modification is not personalVcsModification.isPersonal()
@NotNull java.util.Date getRegistrationDate()
@NotNull java.util.Collection<SVcsModification> getDuplicates()
@NotNull java.util.Collection<SVcsModification> getParentModifications()
@NotNull java.util.Collection<java.lang.String> getParentRevisions()
@NotNull java.util.Map<java.lang.String,java.lang.String> getAttributes()
void setDescription(@NotNull java.lang.String newDescription) throws AccessDeniedException
newDescription
- new description for the modificationAccessDeniedException
- when the current authority holder is not committer of the change and has no explicit permission to set the change description,
see Permission.EDIT_VCS_MODIFICATION
boolean relatedToBuildConfigurationsAccessibleTo(@NotNull AuthorityHolder authorityHolder)