Interface RtCollectionContext
public interface RtCollectionContext
Contains all the information and methods needed for the repository file's collection processing.
- Since:
- 3.17.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sends a file for further processing (parsing) after it was collected.create()
getRememberedState
(String branchId) void
locationRemoved
(String branchId, ILocation location) Notifies the collector engine that the file or folder identified by specified location was removed and its related information should also be removed from persistent storage.void
setRememberedState
(String branchId, String state) Setsstate
as the last processed revision under specifiedbranchId
.boolean
shouldBeCollected
(RtFileProperties fileInfo) Checks if the current file should be collected according to the current collector configuration.
-
Method Details
-
getProjectId
- Returns:
- the current project id.
-
getConfiguration
- Returns:
- the current repository configuration.
-
shouldBeCollected
Checks if the current file should be collected according to the current collector configuration.- Parameters:
fileInfo
- repository file information.- Returns:
true
if this file is suitable for the current collector settings, false otherwise.
-
collect
Sends a file for further processing (parsing) after it was collected.- Parameters:
sourceFile
- repository file info.
-
getRememberedState
- Parameters:
branchId
- of the current repository branch.- Returns:
- the last revision for
branchId
that was already processed ornull
if the process is run for the first time.
-
setRememberedState
Setsstate
as the last processed revision under specifiedbranchId
.- Parameters:
branchId
- repository branch.state
- opaque string used to mark last processed revision.
-
create
- Returns:
- the factory for creating collection model entities.
-
locationRemoved
Notifies the collector engine that the file or folder identified by specified location was removed and its related information should also be removed from persistent storage. This method must be called each time a file or folder is removed from the repository.- Parameters:
branchId
- the id of branch where the file or folder was located.location
- location of file or folder that was removed. Location is absolute and starts from repository root.
-