Class AclDependencyAnalyzer
- java.lang.Object
-
- lumis.portal.serialization.operation.ConfigDependencyAnalyzer<AccessControlList>
-
- lumis.util.security.acl.serialization.AclDependencyAnalyzer
-
public class AclDependencyAnalyzer extends ConfigDependencyAnalyzer<AccessControlList>
Responsible for analyze foreign key dependencies of a ACL being deserialized.- Since:
- 4.0.9
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ConfigForeignKey>
entryForeignKeys
-
Fields inherited from class lumis.portal.serialization.operation.ConfigDependencyAnalyzer
canPersist, configForeignKeys, dependencyKeys, deserializationContext, hasViolation, originalConfig, persistableConfig
-
-
Constructor Summary
Constructors Constructor Description AclDependencyAnalyzer(DeserializationContext deserializationContext, java.util.List<ConfigForeignKey> aclForeignKeys, java.util.List<ConfigForeignKey> aclEntryForeignKeys, AccessControlList originalConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.boolean
foreignKeysExists()
Verify that all foreign key mapped values match persisted objectsAccessControlList
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, analyzeForeignKeys, getCanPersist, getConfigPersistence, getDependencyKeys, getHasViolation, getOriginalConfig, getPersistableConfig, persist, setHasViolation
-
-
-
-
Field Detail
-
entryForeignKeys
protected final java.util.List<ConfigForeignKey> entryForeignKeys
-
-
Constructor Detail
-
AclDependencyAnalyzer
public AclDependencyAnalyzer(DeserializationContext deserializationContext, java.util.List<ConfigForeignKey> aclForeignKeys, java.util.List<ConfigForeignKey> aclEntryForeignKeys, AccessControlList originalConfig)
-
-
Method Detail
-
analyze
public void analyze(IConfigPersister configPersister)
Description copied from class:ConfigDependencyAnalyzer
Analyze the original config, generating a persistable config and scheduling the persistence of original config to be performed after the dependencies were resolved. It also determines if the persistable config can be persisted.- Overrides:
analyze
in classConfigDependencyAnalyzer<AccessControlList>
-
foreignKeysExists
public boolean foreignKeysExists()
Description copied from class:ConfigDependencyAnalyzer
Verify that all foreign key mapped values match persisted objects- Overrides:
foreignKeysExists
in classConfigDependencyAnalyzer<AccessControlList>
- Returns:
- true, if all foreign key mapped values match persisted objects.
-
getMappedPersistableConfig
public AccessControlList 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<AccessControlList>
- Returns:
- mapped cloned of the persistable config
-
-