Class MockVcsModificationWithId
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.MockVcsModification
-
- jetbrains.buildServer.serverSide.impl.MockVcsModificationWithId
-
- All Implemented Interfaces:
Comparable<VcsModification>
,ChangeDescriptor
,VcsModificationEx
,Modification
,SVcsModification
,VcsModification
public class MockVcsModificationWithId extends MockVcsModification implements VcsModificationEx
Created by Nikita.Skvortsov Date: 3/12/12, 4:40 PM
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.serverSide.impl.MockVcsModification
myChanges, myDate, myDecription, myUser
-
-
Constructor Summary
Constructors Constructor Description MockVcsModificationWithId(String user, String decription, Date date, long id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(VcsModification o)
byte[]
getContentAfter(VcsChangeInfo change)
byte[]
getContentBefore(VcsChangeInfo change)
List<FilteredVcsChange>
getFilteredChanges(CheckoutRules rules)
Returns list of changed files filtered according to given checkout rules.long
getId()
Unique identifier for the modificationList<String>
getRelatedConfigurationIds(boolean ignoreOverridden)
Returns configurations ids this modification is related to.boolean
isRelatedTo(SBuildType buildType)
void
resetRelatedConfigurations()
-
Methods inherited from class jetbrains.buildServer.serverSide.impl.MockVcsModification
addChange, consumeEdgeRelations, consumeRelations, consumeRelations, createWithOneChangedFile, createWithoutFiles, detachedFromConfigurations, findChangeByPath, getAssociatedData, getAttributes, getBuildTypeRelations, getChangeCount, getChanges, getCommitDate, getCommiterName, getCommitterIds, getCommitters, getContext, getDate, getDescription, getDisplayVersion, getDuplicates, getFilteredChanges, getFilteredChanges, getFilteredChanges, getFirstBuilds, getNumberOfRelatedConfigurations, getParentModifications, getParentRevisions, getPersonalChangeInfo, getProject, getReachableVcsBranches, getRegistrationDate, getRelatedBuildTypeIds, getRelatedConfigurations, getRelatedIssues, getRelatedProjects, getRelatedVcsChange, getRelation, getRelationTypes, getType, getUserName, getVcsDate, getVcsRoot, getVersion, getVersionControlName, hasRelation, isCanBeIgnored, isCommitter, isDuplicateOf, isHasRelatedIssues, isPersonal, isRelatedTo, isRelatedTo, isRelatedTo, isRelatedTo, processRelations, relatedConfigurationsLoaded, relatedToBuildConfigurationsAccessibleTo, resetEdgeRelations, setCanBeIgnored, setDescription, setPesonal, setRoot, setVersion
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.ChangeDescriptor
getAssociatedData, getDate, getDescription, getRelatedVcsChange, getType
-
Methods inherited from interface jetbrains.buildServer.vcs.Modification
getDescription, getUserName, getVcsDate
-
Methods inherited from interface jetbrains.buildServer.vcs.SVcsModification
getAttributes, getBuildTypeRelations, getCommitDate, getCommitterIds, getCommitters, getDuplicates, getFilteredChanges, getFilteredChanges, getFilteredChanges, getFirstBuilds, getNumberOfRelatedConfigurations, getParentModifications, getParentRevisions, getPersonalChangeInfo, getRegistrationDate, getRelatedConfigurations, getRelatedIssues, getRelatedProjects, getVcsRoot, hasRelation, isCommitter, isHasRelatedIssues, relatedToBuildConfigurationsAccessibleTo, setDescription
-
Methods inherited from interface jetbrains.buildServer.vcs.VcsModification
findChangeByPath, getChangeCount, getChanges, getDisplayVersion, getVersion, getVersionControlName, isPersonal
-
Methods inherited from interface jetbrains.buildServer.vcs.impl.VcsModificationEx
consumeEdgeRelations, consumeRelations, consumeRelations, detachedFromConfigurations, getCommiterName, getContext, getReachableVcsBranches, getRelatedBuildTypeIds, getRelation, getRelationTypes, isDuplicateOf, isRelatedTo, isRelatedTo, isRelatedTo, isRelatedTo, processRelations, relatedConfigurationsLoaded, resetEdgeRelations
-
-
-
-
Method Detail
-
getId
public long getId()
Description copied from interface:VcsModification
Unique identifier for the modification- Specified by:
getId
in interfaceVcsModification
- Overrides:
getId
in classMockVcsModification
- Returns:
- unique identifier of the modification
-
compareTo
public int compareTo(VcsModification o)
- Specified by:
compareTo
in interfaceComparable<VcsModification>
- Overrides:
compareTo
in classMockVcsModification
-
getContentBefore
@NotNull public byte[] getContentBefore(@NotNull VcsChangeInfo change) throws VcsException
- Specified by:
getContentBefore
in interfaceVcsModificationEx
- Overrides:
getContentBefore
in classMockVcsModification
- Throws:
VcsException
-
getContentAfter
@NotNull public byte[] getContentAfter(@NotNull VcsChangeInfo change) throws VcsException
- Specified by:
getContentAfter
in interfaceVcsModificationEx
- Overrides:
getContentAfter
in classMockVcsModification
- Throws:
VcsException
-
getRelatedConfigurationIds
@NotNull public List<String> getRelatedConfigurationIds(boolean ignoreOverridden)
Description copied from interface:VcsModificationEx
Returns configurations ids this modification is related to.- Specified by:
getRelatedConfigurationIds
in interfaceVcsModificationEx
- Overrides:
getRelatedConfigurationIds
in classMockVcsModification
- Parameters:
ignoreOverridden
- if true does not return configurations where this modification was attached via overridden root- Returns:
- sorted list of build configuration ids
-
isRelatedTo
public boolean isRelatedTo(@NotNull SBuildType buildType)
- Specified by:
isRelatedTo
in interfaceVcsModificationEx
- Overrides:
isRelatedTo
in classMockVcsModification
- Parameters:
buildType
- build configuration- Returns:
- true if this modification is attached to specified build configuration.
-
resetRelatedConfigurations
public void resetRelatedConfigurations()
- Specified by:
resetRelatedConfigurations
in interfaceVcsModificationEx
- Overrides:
resetRelatedConfigurations
in classMockVcsModification
-
getFilteredChanges
@NotNull public List<FilteredVcsChange> getFilteredChanges(@NotNull CheckoutRules rules)
Description copied from interface:VcsModificationEx
Returns list of changed files filtered according to given checkout rules.- Specified by:
getFilteredChanges
in interfaceVcsModificationEx
- Overrides:
getFilteredChanges
in classMockVcsModification
- Parameters:
rules
- checkout rules to filter by.- Returns:
- list of filtered changed files.
-
-