Class PageIOComponent
java.lang.Object
ru.cg.webbpm.studio.subsystems.page_designer.serialization.impl.io.PageIOComponent
- All Implemented Interfaces:
ObjectFileReader<Page>,FileWithVersionsIO<Page>
- Author:
- krylov
-
Constructor Summary
ConstructorsConstructorDescriptionPageIOComponent(XmlPageFileAdapter xmlAdapter, ComponentRegistry registry, MetadataManager metadataManager, PageObjectAdapterBean pageObjectAdapter) -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this component can work with the fileReturns the class of objects being read by this componentgetUsedPackages(Page object) Returns a set of packages the object depends on.Reads the specified filevoidWrites the object to specified fileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ru.cg.webbpm.studio.core.api.indexing.ObjectFileReader
readIfValid
-
Constructor Details
-
PageIOComponent
@Autowired public PageIOComponent(XmlPageFileAdapter xmlAdapter, ComponentRegistry registry, MetadataManager metadataManager, PageObjectAdapterBean pageObjectAdapter)
-
-
Method Details
-
getObjectClass
Description copied from interface:FileWithVersionsIOReturns the class of objects being read by this component- Specified by:
getObjectClassin interfaceFileWithVersionsIO<Page>- 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<Page>- Parameters:
object- the object- Returns:
- set of packages in the project the object depends on
-
read
Description copied from interface:FileWithVersionsIOReads the specified file- Specified by:
readin interfaceFileWithVersionsIO<Page>- Specified by:
readin interfaceObjectFileReader<Page>- Parameters:
file- the file path- Returns:
- the object
-
readXml
-
accept
Description copied from interface:FileWithVersionsIOChecks if this component can work with the file- Specified by:
acceptin interfaceFileWithVersionsIO<Page>- Specified by:
acceptin interfaceObjectFileReader<Page>- Parameters:
file- the file- Returns:
- if this component can read/write the file
-
write
Description copied from interface:FileWithVersionsIOWrites the object to specified file- Specified by:
writein interfaceFileWithVersionsIO<Page>- Parameters:
page- the objectfile- the file
-