lumis.portal.page.serialization
Class PageDependencyAnalyzer

Package class diagram package PageDependencyAnalyzer
java.lang.Object
  extended by lumis.portal.serialization.operation.ConfigDependencyAnalyzer<PageConfig>
      extended by 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

Field Summary
 
Fields inherited from class lumis.portal.serialization.operation.ConfigDependencyAnalyzer
canPersist, configForeignKeys, dependencyKeys, deserializationContext, hasViolation, originalConfig, persistableConfig
 
Constructor Summary
PageDependencyAnalyzer(DeserializationContext deserializationContext, List<ConfigForeignKey> configForeignKeys, PageConfig originalConfig)
           
 
Method Summary
protected  void analyzeForeignKeys()
          Analyze the original config, generating a persistable config.
 boolean foreignKeysExists()
          Verify that all foreign key mapped values match persisted objects
 PageConfig 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageDependencyAnalyzer

public PageDependencyAnalyzer(DeserializationContext deserializationContext,
                              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 class ConfigDependencyAnalyzer<PageConfig>

foreignKeysExists

public boolean foreignKeysExists()
Description copied from class: ConfigDependencyAnalyzer
Verify that all foreign key mapped values match persisted objects

Overrides:
foreignKeysExists in class ConfigDependencyAnalyzer<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 class ConfigDependencyAnalyzer<PageConfig>
Returns:
mapped cloned of the persistable config


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.