Package lumis.portal.page.serialization
Class PageDependencyAnalyzer
- java.lang.Object
-
- lumis.portal.serialization.operation.ConfigDependencyAnalyzer<PageConfig>
-
- lumis.portal.page.serialization.PageDependencyAnalyzer
-
public class PageDependencyAnalyzer extends ConfigDependencyAnalyzer<PageConfig>
Responsible for analyze foreign key dependencies of a page, in particular layout dependencies to service interface instances.- Since:
- 4.0.11
- Version:
- $Revision$ $Date$
-
-
Field Summary
-
Fields inherited from class lumis.portal.serialization.operation.ConfigDependencyAnalyzer
canPersist, configForeignKeys, dependencyKeys, deserializationContext, hasViolation, originalConfig, persistableConfig
-
-
Constructor Summary
Constructors Constructor Description PageDependencyAnalyzer(DeserializationContext deserializationContext, java.util.List<ConfigForeignKey> configForeignKeys, PageConfig originalConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
analyzeForeignKeys()
Analyze the original config, generating a persistable config.boolean
foreignKeysExists()
Verify that all foreign key mapped values match persisted objectsPageConfig
getMappedPersistableConfig()
Returns a mapped cloned of the persistable config, which, in turn, represents a clone of original config, with its foreign keys updated to be non-violated.-
Methods inherited from class lumis.portal.serialization.operation.ConfigDependencyAnalyzer
addDependentConfigOperation, analyze, getCanPersist, getConfigPersistence, getDependencyKeys, getHasViolation, getOriginalConfig, getPersistableConfig, persist, setHasViolation
-
-
-
-
Constructor Detail
-
PageDependencyAnalyzer
public PageDependencyAnalyzer(DeserializationContext deserializationContext, java.util.List<ConfigForeignKey> configForeignKeys, PageConfig originalConfig)
-
-
Method Detail
-
analyzeForeignKeys
protected void analyzeForeignKeys()
Description copied from class:ConfigDependencyAnalyzer
Analyze the original config, generating a persistable config. It also determines if the persistable config can be persisted.- Overrides:
analyzeForeignKeys
in classConfigDependencyAnalyzer<PageConfig>
-
foreignKeysExists
public boolean foreignKeysExists()
Description copied from class:ConfigDependencyAnalyzer
Verify that all foreign key mapped values match persisted objects- Overrides:
foreignKeysExists
in classConfigDependencyAnalyzer<PageConfig>
- Returns:
- true, if all foreign key mapped values match persisted objects.
-
getMappedPersistableConfig
public PageConfig getMappedPersistableConfig()
Description copied from class:ConfigDependencyAnalyzer
Returns a mapped cloned of the persistable config, which, in turn, represents a clone of original config, with its foreign keys updated to be non-violated.- Overrides:
getMappedPersistableConfig
in classConfigDependencyAnalyzer<PageConfig>
- Returns:
- mapped cloned of the persistable config
-
-