public RevisionInfoConfigurationResult(IRevisionInfoGenerator revisionInfoGenerator, XmlDocument revisionInfoXmlMapping, RevisionInfoQueryCreator revisionInfoQueryCreator, XmlElement revisionInfoRelationMapping, RevisionInfoNumberReader revisionInfoNumberReader, String revisionInfoEntityName) { this.RevisionInfoGenerator = revisionInfoGenerator; this.RevisionInfoXmlMapping = revisionInfoXmlMapping; this.RevisionInfoQueryCreator = revisionInfoQueryCreator; this.RevisionInfoRelationMapping = revisionInfoRelationMapping; this.RevisionInfoNumberReader = revisionInfoNumberReader; this.RevisionInfoEntityName = revisionInfoEntityName; }
//public AuditEntitiesConfiguration getAuditEntCfg() { // return auditEntCfg; //} //public AuditSyncManager getSyncManager() { // return auditSyncManager; //} //public GlobalConfiguration getGlobalCfg() { // return globalCfg; //} //public EntitiesConfigurations getEntCfg() { // return entCfg; //} //public RevisionInfoQueryCreator getRevisionInfoQueryCreator() { // return revisionInfoQueryCreator; //} //public RevisionInfoNumberReader getRevisionInfoNumberReader() { // return revisionInfoNumberReader; //} //TODO Simon @SuppressWarnings({"unchecked"}) public AuditConfiguration(NHibernate.Cfg.Configuration cfg) { IDictionary <string, string> properties = cfg.Properties; //ReflectionManager reflectionManager = ((AnnotationConfiguration) cfg).getReflectionManager(); RevisionInfoConfiguration revInfoCfg = new RevisionInfoConfiguration(); RevisionInfoConfigurationResult revInfoCfgResult = revInfoCfg.configure(cfg); AuditEntCfg = new AuditEntitiesConfiguration(properties, revInfoCfgResult.RevisionInfoEntityName); GlobalCfg = new GlobalConfiguration(properties); AuditSyncManager = new AuditSyncManager(revInfoCfgResult.RevisionInfoGenerator); RevisionInfoQueryCreator = revInfoCfgResult.RevisionInfoQueryCreator; RevisionInfoNumberReader = revInfoCfgResult.RevisionInfoNumberReader; EntCfg = new EntitiesConfigurator().Configure(cfg, GlobalCfg, AuditEntCfg, revInfoCfgResult.RevisionInfoXmlMapping, revInfoCfgResult.RevisionInfoRelationMapping); }
public RevisionInfoConfigurationResult(IRevisionInfoGenerator revisionInfoGenerator, XDocument revisionInfoXmlMapping, RevisionInfoQueryCreator revisionInfoQueryCreator, XElement revisionInfoRelationMapping, RevisionInfoNumberReader revisionInfoNumberReader, ModifiedEntityNamesReader modifiedEntityNamesReader, string revisionInfoEntityName, System.Type revisionInfoClass, PropertyData revisionInfoTimestampData) { RevisionInfoGenerator = revisionInfoGenerator; RevisionInfoXmlMapping = revisionInfoXmlMapping; RevisionInfoQueryCreator = revisionInfoQueryCreator; RevisionInfoRelationMapping = revisionInfoRelationMapping; RevisionInfoNumberReader = revisionInfoNumberReader; ModifiedEntityNamesReader = modifiedEntityNamesReader; RevisionInfoEntityName = revisionInfoEntityName; RevisionInfoClass = revisionInfoClass; RevisionInfoTimestampData = revisionInfoTimestampData; }