Class WebbpmProcessFileAdapter
java.lang.Object
ru.cg.webbpm.studio.subsystems.bpmn.webbpm_process.impl.WebbpmProcessFileAdapter
- All Implemented Interfaces:
ObjectFileReader<WebbpmProcess>
,FileReader<WebbpmProcess>
,FileWriter<WebbpmProcess>
,FileWithVersionsIO<WebbpmProcess>
@Component
public class WebbpmProcessFileAdapter
extends Object
implements FileWithVersionsIO<WebbpmProcess>, FileReader<WebbpmProcess>, FileWriter<WebbpmProcess>
Component for working with .wb.process files
-
Constructor Summary
ConstructorsConstructorDescriptionWebbpmProcessFileAdapter
(ScriptAdapterBean scriptAdapterBean, MetadataManager metadataManager) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this component can work with the fileReturns the class of objects being read by this componentgetUsedPackages
(WebbpmProcess object) Returns a set of packages the object depends on.Reads the specified filereadIfValid
(Path path) void
write
(WebbpmProcess obj, Path file) Writes the object to specified file
-
Constructor Details
-
WebbpmProcessFileAdapter
@Autowired public WebbpmProcessFileAdapter(ScriptAdapterBean scriptAdapterBean, MetadataManager metadataManager)
-
-
Method Details
-
read
Description copied from interface:FileWithVersionsIO
Reads the specified file- Specified by:
read
in interfaceFileReader<WebbpmProcess>
- Specified by:
read
in interfaceFileWithVersionsIO<WebbpmProcess>
- Specified by:
read
in interfaceObjectFileReader<WebbpmProcess>
- Parameters:
file
- the file path- Returns:
- the object
-
readIfValid
- Specified by:
readIfValid
in interfaceFileReader<WebbpmProcess>
- Specified by:
readIfValid
in interfaceObjectFileReader<WebbpmProcess>
-
write
Description copied from interface:FileWithVersionsIO
Writes the object to specified file- Specified by:
write
in interfaceFileWithVersionsIO<WebbpmProcess>
- Specified by:
write
in interfaceFileWriter<WebbpmProcess>
- Parameters:
obj
- the objectfile
- the file
-
accept
Description copied from interface:FileWithVersionsIO
Checks if this component can work with the file- Specified by:
accept
in interfaceFileReader<WebbpmProcess>
- Specified by:
accept
in interfaceFileWithVersionsIO<WebbpmProcess>
- Specified by:
accept
in interfaceObjectFileReader<WebbpmProcess>
- Parameters:
file
- the file- Returns:
- if this component can read/write the file
-
getObjectClass
Description copied from interface:FileWithVersionsIO
Returns the class of objects being read by this component- Specified by:
getObjectClass
in interfaceFileWithVersionsIO<WebbpmProcess>
- Returns:
- object class
-
getUsedPackages
Description copied from interface:FileWithVersionsIO
Returns a set of packages the object depends on. "depends on package" means that the object contains scripts or components provided by said package- Specified by:
getUsedPackages
in interfaceFileWithVersionsIO<WebbpmProcess>
- Parameters:
object
- the object- Returns:
- set of packages in the project the object depends on
-