Interface FileWithVersionsIO<T extends HasVersions>
- All Superinterfaces:
ObjectFileReader<T>
- All Known Implementing Classes:
ComponentIOComponent,ComponentOverrideIOComponent,PageIOComponent,WebbpmProcessFileAdapter
Used by
MigrationManager to read/write files with versions. Should not be used by other components for
reading files, since this component may not perform some required version checks.
This interface does not extend FileReader and FileWriter because these component should only be
used for migration operations, not for indexing etc- Author:
- krylov
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this component can work with the fileReturns the class of objects being read by this componentgetUsedPackages(T object) Returns a set of packages the object depends on.Reads the specified filevoidWrites the object to specified fileMethods inherited from interface ru.cg.webbpm.studio.core.api.indexing.ObjectFileReader
readIfValid
-
Method Details
-
accept
Checks if this component can work with the file- Specified by:
acceptin interfaceObjectFileReader<T extends HasVersions>- Parameters:
file- the file- Returns:
- if this component can read/write the file
-
read
Reads the specified file- Specified by:
readin interfaceObjectFileReader<T extends HasVersions>- Parameters:
file- the file path- Returns:
- the object
-
getObjectClass
Returns the class of objects being read by this component- Returns:
- object class
-
write
Writes the object to specified file- Parameters:
obj- the objectfile- the file
-
getUsedPackages
Returns a set of packages the object depends on. "depends on package" means that the object contains scripts or components provided by said package- Parameters:
object- the object- Returns:
- set of packages in the project the object depends on
-