lumis.util.security.acl.serialization
Class AclDependencyAnalyzer

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

Field Summary
protected  List<ConfigForeignKey> entryForeignKeys
           
 
Fields inherited from class lumis.portal.serialization.operation.ConfigDependencyAnalyzer
canPersist, configForeignKeys, dependencyKeys, deserializationContext, hasViolation, originalConfig, persistableConfig
 
Constructor Summary
AclDependencyAnalyzer(DeserializationContext deserializationContext, List<ConfigForeignKey> aclForeignKeys, List<ConfigForeignKey> aclEntryForeignKeys, AccessControlList originalConfig)
           
 
Method Summary
 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 objects
 AccessControlList 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entryForeignKeys

protected final List<ConfigForeignKey> entryForeignKeys
Constructor Detail

AclDependencyAnalyzer

public AclDependencyAnalyzer(DeserializationContext deserializationContext,
                             List<ConfigForeignKey> aclForeignKeys,
                             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 class ConfigDependencyAnalyzer<AccessControlList>

foreignKeysExists

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

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


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.