Class ComponentRegistry
java.lang.Object
ru.cg.webbpm.studio.subsystems.page_designer.serialization.impl.component.ComponentRegistry
TODO WEBBPMNEXT-5089 improve caching
- Author:
- Tim Urmancheev
-
Constructor Summary
ConstructorsConstructorDescriptionComponentRegistry
(ProjectManager projectManager, DependencyManager dependencyManager, FileBasedIndex fileBasedIndex, ComponentAdapterBean componentAdapterBean) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
void
void
getComponent
(String objectId) Returns component containing specified object, or a component with specified idgetComponentObject
(String objectId) getComponentPackagePath
(String componentObjectId) Returns an absolute path to the package that contains an object with specified idgetComponentPath
(String objectId) Returns path to a component file containing object with specified id.getDependantComponentOverrides
(String overrideRootObjectId) getDependantComponents
(String componentObjectId) getPackage
(String objectId) Returns a package containing an object with specified id, if anygetPrototype
(String prototypeId) void
void
saveOverride
(Component component)
-
Constructor Details
-
ComponentRegistry
@Autowired public ComponentRegistry(ProjectManager projectManager, DependencyManager dependencyManager, FileBasedIndex fileBasedIndex, ComponentAdapterBean componentAdapterBean)
-
-
Method Details
-
componentsLoaded
public boolean componentsLoaded() -
getDependantComponents
-
getDependantComponentOverrides
-
getAllComponentIdByPages
-
getComponentPath
Returns path to a component file containing object with specified id.- Parameters:
objectId
- id of an object of component- Returns:
- optional wrapping path to component
-
getComponent
Returns component containing specified object, or a component with specified id- Parameters:
objectId
- id of an object / component- Returns:
- optional wrapping component
-
getComponentObject
-
getPrototype
-
getAllComponents
-
read
-
getComponentPackagePath
Returns an absolute path to the package that contains an object with specified id- Parameters:
componentObjectId
- id of an object of component- Returns:
- path to the package, if the component is inside a package
-
getPackage
Returns a package containing an object with specified id, if any- Parameters:
objectId
- object id or component id- Returns:
- the package if it exists
-
evictPath
-
clearCache
public void clearCache() -
save
-
saveOverride
-
evict
-