|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.serialization.operation.ConfigDependencyAnalyzer<T>
T
- object being deserializedpublic class ConfigDependencyAnalyzer<T extends ICloneableConfig<T>>
Responsible for analyze foreign key dependencies of a portal object being deserialized.
Field Summary | |
---|---|
protected boolean |
canPersist
|
protected List<ConfigForeignKey> |
configForeignKeys
|
protected Collection<String> |
dependencyKeys
|
protected DeserializationContext |
deserializationContext
|
protected boolean |
hasViolation
|
protected T |
originalConfig
|
protected T |
persistableConfig
|
Constructor Summary | |
---|---|
ConfigDependencyAnalyzer(DeserializationContext deserializationContext,
List<ConfigForeignKey> configForeignKeys,
T originalConfig)
|
Method Summary | |
---|---|
protected void |
addDependentConfigOperation(IConfigPersister configPersister)
|
void |
analyze(IConfigPersister configPersister)
Analyze the original config, generating a persistable config and scheduling the persistence of original config to be performed after the dependencies were resolved. |
protected void |
analyzeForeignKeys()
Analyze the original config, generating a persistable config. |
boolean |
foreignKeysExists()
Verify that all foreign key mapped values match persisted objects |
boolean |
getCanPersist()
|
protected ConfigPersistence |
getConfigPersistence(IConfigPersister configPersister)
|
Collection<String> |
getDependencyKeys()
|
boolean |
getHasViolation()
|
T |
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. |
T |
getOriginalConfig()
|
T |
getPersistableConfig()
Returns the persistable config, which represents a clone of original config, with its foreign keys updated to be non-violated. |
void |
persist(IConfigPersister configPersister,
boolean firstPersistenceIsRequired)
|
void |
setHasViolation(boolean hasViolation)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final DeserializationContext deserializationContext
protected final List<ConfigForeignKey> configForeignKeys
protected final T extends ICloneableConfig<T> originalConfig
protected T extends ICloneableConfig<T> persistableConfig
protected boolean hasViolation
protected final Collection<String> dependencyKeys
protected boolean canPersist
Constructor Detail |
---|
public ConfigDependencyAnalyzer(DeserializationContext deserializationContext, List<ConfigForeignKey> configForeignKeys, T originalConfig)
Method Detail |
---|
public boolean getHasViolation()
public void setHasViolation(boolean hasViolation)
public T getOriginalConfig()
public T getPersistableConfig()
public T getMappedPersistableConfig()
public Collection<String> getDependencyKeys()
public boolean getCanPersist()
public void persist(IConfigPersister configPersister, boolean firstPersistenceIsRequired) throws PortalException
PortalException
public void analyze(IConfigPersister configPersister)
configPersister
-
PortalException
protected void analyzeForeignKeys()
protected void addDependentConfigOperation(IConfigPersister configPersister)
protected ConfigPersistence getConfigPersistence(IConfigPersister configPersister)
public boolean foreignKeysExists()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |