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 TypeMethodDescriptionbooleanChecks 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) voidwrite(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:FileWithVersionsIOReads the specified file- Specified by:
readin interfaceFileReader<WebbpmProcess>- Specified by:
readin interfaceFileWithVersionsIO<WebbpmProcess>- Specified by:
readin interfaceObjectFileReader<WebbpmProcess>- Parameters:
file- the file path- Returns:
- the object
-
readIfValid
- Specified by:
readIfValidin interfaceFileReader<WebbpmProcess>- Specified by:
readIfValidin interfaceObjectFileReader<WebbpmProcess>
-
write
Description copied from interface:FileWithVersionsIOWrites the object to specified file- Specified by:
writein interfaceFileWithVersionsIO<WebbpmProcess>- Specified by:
writein interfaceFileWriter<WebbpmProcess>- Parameters:
obj- the objectfile- the file
-
accept
Description copied from interface:FileWithVersionsIOChecks if this component can work with the file- Specified by:
acceptin interfaceFileReader<WebbpmProcess>- Specified by:
acceptin interfaceFileWithVersionsIO<WebbpmProcess>- Specified by:
acceptin interfaceObjectFileReader<WebbpmProcess>- Parameters:
file- the file- Returns:
- if this component can read/write the file
-
getObjectClass
Description copied from interface:FileWithVersionsIOReturns the class of objects being read by this component- Specified by:
getObjectClassin interfaceFileWithVersionsIO<WebbpmProcess>- Returns:
- object class
-
getUsedPackages
Description copied from interface:FileWithVersionsIOReturns 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:
getUsedPackagesin interfaceFileWithVersionsIO<WebbpmProcess>- Parameters:
object- the object- Returns:
- set of packages in the project the object depends on
-