Class ChangePersister
- java.lang.Object
-
- jetbrains.buildServer.buildTriggers.vcs.ChangePersister
-
- All Implemented Interfaces:
DetectedChangesPersister
public class ChangePersister extends Object implements DetectedChangesPersister
Persists collected changes
-
-
Field Summary
Fields Modifier and Type Field Description static String
TRANSIENT_ATTRIBUTE_PREFIX
-
Constructor Summary
Constructors Constructor Description ChangePersister(BuildServerState serverState, VcsModificationHistoryEx vcsHistory, VcsRootInstancesManager vcsRootInstancesManager, VcsSupportCore vcsSupportCore, VcsRootInstance root, ChangesLoaderContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PersistChangesResult
persist(List<ModificationData> changes, CheckoutRules commonRules)
Persist collected changes according to checkout rules and emit event modificationPersisted.
-
-
-
Field Detail
-
TRANSIENT_ATTRIBUTE_PREFIX
public static final String TRANSIENT_ATTRIBUTE_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ChangePersister
public ChangePersister(@NotNull BuildServerState serverState, @NotNull VcsModificationHistoryEx vcsHistory, @NotNull VcsRootInstancesManager vcsRootInstancesManager, @NotNull VcsSupportCore vcsSupportCore, @NotNull VcsRootInstance root, @NotNull ChangesLoaderContext context)
-
-
Method Detail
-
persist
@NotNull public PersistChangesResult persist(@NotNull List<ModificationData> changes, @NotNull CheckoutRules commonRules) throws VcsException
Persist collected changes according to checkout rules and emit event modificationPersisted.- Specified by:
persist
in interfaceDetectedChangesPersister
- Parameters:
changes
- changes to persistcommonRules
- rule- Throws:
VcsException
- in case of the error
-
-