Builds an instance of ResourceType using fluent interface. More...
Public Member Functions | |
ResourceTypeBuilder (string name) | |
Constructs a new instance of ResourceTypeBuilder. More... | |
ResourceTypeBuilder | SetAllowedExtensions (params string[] extensions) |
Adds allowed extensions to the ResourceType. More... | |
ResourceTypeBuilder | SetDeniedExtensions (params string[] extensions) |
Adds denied extensions to the ResourceType. More... | |
ResourceTypeBuilder | SetMaxFileSize (long maxSize) |
Definies maximum file size for this ResourceType. More... | |
ResourceTypeBuilder | SetLabel (string label) |
Defines label for the ResourceType. More... | |
ResourceTypeBuilder | SetLazyLoaded (bool enable) |
Defines that the ResourceType is lazy loaded. More... | |
ResourceTypeBuilder | SetBackend (string backendName, string root) |
Defines backend for the ResourceType. More... | |
ResourceTypeBuilder | SetAllowedHtmlExtensionMatchers (params StringMatcher[] matchers) |
Sets extension matchers for which files may contain HTML code. More... | |
ResourceTypeBuilder | SetHideFilesMatchers (params StringMatcher[] matchers) |
Sets matchers of file names for which files will be hidden in the backend. More... | |
ResourceTypeBuilder | SetHideFoldersMatchers (params StringMatcher[] matchers) |
Sets matchers of folder names for which folders will be hidden in the backend. More... | |
ResourceType | Build (IThumbnailSettings thumbnailSettings, IBackendRepository backendRepository, IImageMetadataCacheRepository imageMetadataCacheRepository) |
Builds instance of the ResourceType. More... | |
Builds an instance of ResourceType using fluent interface.
|
inline |
Constructs a new instance of ResourceTypeBuilder.
name | A name of the ResourceType. Each ResourceType in a connector must have unique name. |
|
inline |
Builds instance of the ResourceType.
thumbnailSettings | An instance of thumbnail settings. |
backendRepository | An instance of backend repository. |
imageMetadataCacheRepository | An instance of image metadata cache repository. |
|
inline |
Adds allowed extensions to the ResourceType.
Allowed and denied extensions cannot be mixed. If at least one allowed extension is provided, this method will clear all denied extensions.
extensions | An array or list of allowed extensions. |
|
inline |
Sets extension matchers for which files may contain HTML
code.
matchers | An array or list of matchers. |
|
inline |
Defines backend for the ResourceType.
backendName | A name of the backend. |
root | A base path in the backend. |
|
inline |
Adds denied extensions to the ResourceType.
Allowed and denied extensions cannot be mixed. If at least one denied extension is provided, this method will clear all allowed extensions.
extensions | An array or list of denied extensions. |
|
inline |
Sets matchers of file names for which files will be hidden in the backend.
matchers | An array or list of matchers. |
|
inline |
Sets matchers of folder names for which folders will be hidden in the backend.
matchers | An array or list of matchers. |
|
inline |
Defines label for the ResourceType.
If label is defined it will be used in a client application.
label | A label text. |
|
inline |
Defines that the ResourceType is lazy loaded.
enable | A boolean whether to enable this option. |
|
inline |
Definies maximum file size for this ResourceType.
maxSize | A maximum file size in bytes. |