Class PatchImporter
Object
PatchImporter
- All Implemented Interfaces:
ArtifactImporter<String>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the artifact type name this importer handles (e.g.getEntries(GitManifest manifest) Extracts the typed entry list from the manifest.intgetOrder()Returns the execution order.importEntry(String patchesDir, FileResolver resolver, String user) Imports a single entry.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArtifactImporter
deleteOrphan
-
Constructor Details
-
PatchImporter
-
-
Method Details
-
getArtifactType
Description copied from interface:ArtifactImporterReturns the artifact type name this importer handles (e.g. "panels", "scripts"). Used for logging and result tracking.- Specified by:
getArtifactTypein interfaceArtifactImporter<String>
-
getOrder
public int getOrder()Description copied from interface:ArtifactImporterReturns the execution order. Lower values run first. This ensures dependencies are imported before dependents (e.g. groups before permissions, queries before reports).- Specified by:
getOrderin interfaceArtifactImporter<String>
-
getEntries
Description copied from interface:ArtifactImporterExtracts the typed entry list from the manifest.- Specified by:
getEntriesin interfaceArtifactImporter<String>- Parameters:
manifest- the parsed manifest- Returns:
- list of entries to import, may be empty
-
importEntry
Description copied from interface:ArtifactImporterImports a single entry. Handles create-or-update semantics: looks up by key/sigla, creates if missing, updates if exists.- Specified by:
importEntryin interfaceArtifactImporter<String>- Parameters:
patchesDir- the manifest entry to importresolver- resolves relative file paths to input streamsuser- the login of the user performing the import- Returns:
- result indicating what happened (CREATED, UPDATED, SKIPPED, ERROR)
-