Beispiel #1
0
 public EpiFormDataImport(Stream input)
 {
     _fileStream                = input;
     _contentRepository         = ServiceLocator.Current.GetInstance <IContentRepository>();
     _permanentStorate          = ServiceLocator.Current.GetInstance <IPermanentStorage>();
     _submissionStorageFactoryy = ServiceLocator.Current.GetInstance <SubmissionStorageFactory>();
 }
Beispiel #2
0
 public EpiFormDataExport(Guid formTypeId, int homePageId)
 {
     _formTypeId            = formTypeId;
     _homePage              = new ContentReference(homePageId);
     _contentTypeRepository = ServiceLocator.Current.GetInstance <IContentTypeRepository>();
     _contentModelUsage     = ServiceLocator.Current.GetInstance <IContentModelUsage>();
     _permanentStorate      = ServiceLocator.Current.GetInstance <IPermanentStorage>();
     _contentLoader         = ServiceLocator.Current.GetInstance <IContentLoader>();
     _contentRepository     = ServiceLocator.Current.GetInstance <IContentRepository>();
     _formContentType       = _contentTypeRepository.Load(_formTypeId);
 }