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 TypeMethodDescriptionboolean
Checks 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 filevoid
Writes the object to specified fileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:FileWithVersionsIO
Returns the class of objects being read by this component- Specified by:
getObjectClass
in interfaceFileWithVersionsIO<Page>
- 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<Page>
- Parameters:
object
- the object- Returns:
- set of packages in the project the object depends on
-
read
Description copied from interface:FileWithVersionsIO
Reads the specified file- Specified by:
read
in interfaceFileWithVersionsIO<Page>
- Specified by:
read
in interfaceObjectFileReader<Page>
- Parameters:
file
- the file path- Returns:
- the object
-
readXml
-
accept
Description copied from interface:FileWithVersionsIO
Checks if this component can work with the file- Specified by:
accept
in interfaceFileWithVersionsIO<Page>
- Specified by:
accept
in interfaceObjectFileReader<Page>
- Parameters:
file
- the file- Returns:
- if this component can read/write the file
-
write
Description copied from interface:FileWithVersionsIO
Writes the object to specified file- Specified by:
write
in interfaceFileWithVersionsIO<Page>
- Parameters:
page
- the objectfile
- the file
-