Click or drag to resize

Repository Class

The Repository class defines all the default values, configurations and security of the application and contains the current MetaSource and OutputDevice objects .
Inheritance Hierarchy
SystemObject
  Seal.ModelRepository

Namespace: Seal.Model
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntax
C#
public class Repository

The Repository type exposes the following members.

Constructors
 NameDescription
Public methodRepositoryInitializes a new instance of the Repository class
Top
Properties
 NameDescription
Public propertyAIConfiguration Current AI configuration (providers, tools, agents). Automatically reloaded if the configuration file is modified (no web server recycle required).
Public propertyAIConfigurationPath AI Configuration file path
Public propertyAIPromptsFolder Folder for AI system prompt files (Settings\AI\Prompts).
Public propertyAISamplePromptsFolder Folder for AI sample prompts files (Settings\AI\Prompts\Samples).
Public propertyAIScriptsFolder Folder for AI tool execution script files (Settings\AI\Scripts).
Public propertyAISkillsFolder Folder for AI skill instruction files (Settings\AI\Skills).
Public propertyAssembliesFolder Assemblies folder
Public propertyConfiguration Current configuration
Public propertyConfigurationPath Configuration file path
Public propertyCultureInfo Default CultureInfo
Public propertyStatic memberDefaultRepository Name of the default relative repository directory, used as a fallback when no repository path is configured (e.g. under wwwroot for Azure deployments)
Public propertyDevices List of OutputDevice in the repository
Public propertyDevicesEmailFolder Devices Email folder
Public propertyDevicesFileServerFolder Devices File Server folder
Public propertyDevicesFolder Devices folder
Public propertyDevicesSharePointFolder Devices SharePoint folder
Public propertyDynamicsFolder Dynamic assemblies folder: holds the source .cs files (shared by all runtimes). Compiled assemblies go to the Net/Win sub-folders.
Public propertyDynamicsNetFolder Dynamic assemblies folder for the .NET (non-Windows) runtime: holds the compiled assemblies.
Public propertyDynamicsWinFolder Dynamic assemblies folder for Windows applications: holds the compiled assemblies.
Public propertyFlatpickrShortDateFormat Short Date format for the Flatpickr date/time picker
Public propertyFlatpickrShortDateTimeFormat Short Date Time format for the Flatpickr date/time picker
Public propertyStatic memberInstance A general static instance of the repository
Public propertyStatic memberIsInstanceCreated True if the static repository Instance has been created
Public propertyJSTranslations Current JavaScript translations
Public propertyLicenseText License text
Public propertyLogsFolder Logs folder
Public propertyMomentJSShortDateFormat Short Date format for MomentJS
Public propertyMomentJSShortDateTimeFormat Short Date Time format for MomentJS
Public propertyNotificationEmailDevice Get the first email device used for notification
Public propertyPersonalFolder SpecialsFolder Personal folder
Public propertyStatic memberProductVersion Product version
Public propertyRazorCacheFolder Razor cache parent folder. Compiled assemblies are stored in the Net/Win sub-folders.
Public propertyRazorCacheNetFolder Razor cache folder for compiled assemblies for the .NET (non-Windows) runtime.
Public propertyRazorCacheWinFolder Razor cache folder for compiled assemblies for Windows applications.
Public propertyReportsFolder Reports folder
Public propertyRepositoryPath Current path
Public propertyRepositoryTranslations Current repository translations
Public propertyRepositoryTranslationsPath Repository translations file name
Public propertyResultAllFormats All report formats available
Public propertyResultAllowedFormats Result report formats allowed by the configuration
Public propertySchedulesFolder SpecialsFolder Schedules folder
Public propertySealConverterPath SealConverter assembly path
Public propertySealTaskSchedulerPath The SealTaskScheduler executable full path
Public propertySecurity Current security
Public propertySecurityFolder Security folder
Public propertySecurityPath Security file path
Public propertySecurityProvidersFolder Security Providers folder
Public propertySettingsFolder Settings folder
Public propertySources List of MetaSource in the repository
Public propertySourcesFolder Sources folder
Public propertySpecialsFolder SpecialFolders folder
Public propertySubReportsFolder SubReports folder
Public propertyTableTemplatesFolder Table templates folder
Public propertyTaskTemplatesFolder Task templates folder
Public propertyTranslations Current translations
Public propertyTranslationsExcelPattern Translations file name pattern
Public propertyTranslationsPattern Translations file name pattern
Public propertyUseSealScheduler True if the Seal Scheduler is used instead of the Windows Tasks Scheduler
Public propertyViewContentFolder View Content folder (first-party application style sheets; third-party libraries live under the 'lib' folder)
Public propertyViewImagesFolder View Images folder
Public propertyViewScriptsFolder View Scripts folder (first-party application scripts; third-party libraries live under the 'lib' folder)
Public propertyViewsFolder Views folder
Top
Methods
 NameDescription
Public methodCheckFolders Check repository folders and create them if necessary
Public methodStatic memberCreate Creates a basic repository
Public methodCreateFast Creates a basic repository: properties are shared or cloned for performance reasons
Public methodDecryptValue Decrypt a value using the key name and the encryption mode
Public methodEncryptValue Encrypt a value using the key name and the encryption mode
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodFindReport Find and load report form its identifier
Public methodStatic memberFindRepository Find the current repository path (normally defined in the .config file)
Public methodFindRepositoryTranslation Find a repository translation from a culture, context, instance and reference
Public methodFlushTranslationUsage Debug helper to trace unknown translations and translation usage (Debug builds only)
Public methodGetApplicationKey Get an application key or password
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetInstalledTranslationLanguages Returns the list of two-letter language codes available in the translation files
Public methodGetPersonalFolder Returns the personal folder path of a user
Public methodGetPersonalFolderName Returns the personal folder name of a user
Public methodGetRecycleBinFolder Returns the recycle bin folder path for a user (PersonalFolder/{user}/BIN), creating it if needed
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInit Init the repository from a given path
Public methodLoadRepositoryTranslationsFromDataTable Load repository translations from a data table having columns: Context,Instance,Reference,en,fr,etc.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodMustReload True if the configuration or security file has been modified
Public methodPurgeRecycleBin Deletes recycle bin items older than Configuration.RecycleBinDays. Items are named '{yyyyMMddHHmmss}_{originalName}', so the deletion date is read from the file name prefix. If RecycleBinDays is 0, items are kept forever (no purge).
Public methodReloadAIConfiguration Forces an AI configuration reload
Public methodReloadConfiguration Forces a configuration reload
Public methodStatic memberReloadInstance Force a reload of the repository Instance
Public methodReloadRepositoryTranslations Force reload of repository translations
Public methodReloadSecurity Forces a security reload for Web
Public methodReplaceRepositoryKeyword Replace the repository keywords in a string
Public methodRepositoryTranslate(String, String, String) Translate a reference text in a repository context with the current culture
Public methodRepositoryTranslate(String, String, String, String) Translate a reference text in a repository context
Public methodSendNotificationEmail Send an Email using the first Notification Email Device.
Public methodSetCultureInfo Set culture from a name, returns true if the change is done.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTranslate(String, String) Translate a reference text in a context
Public methodTranslate(String, String, String) Translate a reference text
Public methodTranslateCategory Translate a Category
Public methodTranslateCategoryPath Translate a full category path
Public methodTranslateColumn Translate an Element
Public methodTranslateColumnDescription Translate the description of a Column (semantic layer)
Public methodTranslateConnection Translate a Connection
Public methodTranslateConnectionDescription Translate the description of a Connection (semantic layer)
Public methodTranslateDevice Translate a Device
Public methodTranslateEnumDescription Translate the description of an Enumerated list (semantic layer)
Public methodTranslateFileName Translate a file name
Public methodTranslateFolderName Translate a folder name
Public methodTranslateFolderPath Translate a full Folder Path
Public methodTranslateJoinDescription Translate the description of a Join (semantic layer)
Public methodTranslateReport Translate a reference text in a Report context
Public methodTranslateReportDisplayName Translate a report display name
Public methodTranslateReportToJS Translate a reference text in a Report context for JavaScript use
Public methodTranslateTableDescription Translate the description of a Table (semantic layer)
Public methodTranslateWeb Translate a reference text in a Web context
Public methodTranslateWebJS Translate a reference text in a WebJS context
Top
Fields
 NameDescription
Public fieldStatic memberAssembliesLoaded True is Assemblies have been loaded. Can be set to true at startup to disable Assemblies load.
Public fieldStatic memberCommonRestrictionKeyword Keyword prefix used in the SQL to define a common restriction
Public fieldStatic memberCommonValueKeyword Keyword prefix used in the SQL to define a common value
Public fieldStatic memberCoreInstallationSubDirectory Name of the sub-directory containing the core installation binaries
Public fieldStatic memberDynamicAssembliesLoaded True is Dynamic Assemblies have been loaded. Can be set to true at startup to disable Dynamic Assemblies load.
Public fieldStatic memberEnumFilterKeyword Keyword used in the SQL of a dynamic enumerated list to specify the filter typed by the user
Public fieldStatic memberEnumValuesKeyword Keyword prefix used in the SQL of a dynamic enumerated list to specify the values selected in another enumerated list (dependencies)
Public fieldStatic memberJoinAutoName Name used for a join having an automatic name
Public fieldLicenseInvalid True if a license file is present but invalid
Public fieldStatic memberPathLock Static lock object used to synchronize repository initialization and result file path generation
Public fieldStatic memberProductAdditionalInfo Product2 version
Public fieldStatic memberRecycleBinFolderName Name of the recycle bin sub-folder created in each user's personal folder.
Public fieldStatic memberRepositoryConfigurationPath Repository path got from the configuration file
Public fieldStatic memberSealConfigurationFileExtension File extension of the configuration files (devices, schedules)
Public fieldStatic memberSealConfigurationMaxWorkingSetKeyword Name of the key defining the maximum working set in appsettings.json
Public fieldStatic memberSealConfigurationRepositoryPathKeyword Name of the key defining the repository path in appsettings.json
Public fieldStatic memberSealConfigurationSectionKeyword Name of the Seal configuration section in appsettings.json
Public fieldStatic memberSealDefaultRepository Name of the default repository directory created in the common application data folder
Public fieldStatic memberSealPersonalRepositoryKeyword Keyword replaced by the personal folder path of the user
Public fieldStatic memberSealReportDesigner Name of the Report Designer executable
Public fieldStatic memberSealReportDisplayNameKeyword Keyword replaced by the report display name
Public fieldStatic memberSealReportDisplayNameKeyword2 Alternate keyword replaced by the report display name
Public fieldStatic memberSealReportFileExtension File extension of the report files
Public fieldStatic memberSealReportShortcutFileExtension File extension of the report shortcut files
Public fieldStatic memberSealReportsRepositoryKeyword Keyword replaced by the repository Reports folder path
Public fieldStatic memberSealRepositoryKeyword Keyword replaced by the repository root path
Public fieldStatic memberSealRootProductName Root product name
Public fieldStatic memberSealServerManager Name of the Server Manager executable
Public fieldStatic memberSealTaskScheduler Name of the Task Scheduler executable
Public fieldStatic memberSealWebPublishTemp Name of the temporary directory used for the web publication
Public fieldTag Object that can be used at run-time for any purpose
Public fieldTag2 Object that can be used at run-time for any purpose
Public fieldTag3 Object that can be used at run-time for any purpose
Public fieldStatic memberUnkownTranslations List of translations requested but not found (Debug builds only)
Top
See Also