InfoObjectRepositoryTCollection, TObject, TSettings Class |
Namespace: CMS.DataEngine
public abstract class InfoObjectRepository<TCollection, TObject, TSettings> : IInfoObjectRepository<TCollection>, INamedEnumerable<TCollection>, INamedEnumerable, IEnumerable, IEnumerable<TCollection>, IHierarchicalObject, INameIndexable where TCollection : class, Object, IInfoObjectCollection, IEnumerable<TObject> where TObject : BaseInfo where TSettings : BaseCollectionSettings
The InfoObjectRepositoryTCollection, TObject, TSettings type exposes the following members.
Name | Description | |
---|---|---|
InfoObjectRepositoryTCollection, TObject, TSettings |
Constructor
|
Name | Description | |
---|---|---|
All |
All items from all underlying collections.
| |
AllowNiceNames |
If true, the repository allows nice names of the collections, e.g. for "CMS.User" uses "Users"
| |
CollectionNames |
Returns list of collection names in the repository.
| |
Collections |
Table of collections [name -> CollectionType]
| |
CollectionSettings |
Table of collection settings [name -> InfoCollectionSettings]
| |
CollectionSettingsByIndex |
Table of collection settings by index [index -> InfoCollectionSettings]
| |
CollectionSettingsLock |
Gets lock object for synchronization of modification of CollectionSettings and CollectionSettingsByIndex.
| |
CollectionsList |
List of all collections (sorted by the order in which the collections were added).
| |
Count |
Returns the number of items.
| |
DynamicNames |
List of the dynamic names of the collections
| |
GetDynamicNames |
Function that provides the dynamic names of collections to the repository
| |
IsCachedObject |
If true, the object is cached within the system for later use
| |
IsDisconnected |
Returns true if this collection is disconnected from the database
| |
ItemInt32 |
Returns the collection of objects.
| |
ItemString |
Returns the collection of objects indexed by object type, e.g. "cms.user".
| |
ItemsHaveNames |
Returns true if the items in the collection have names
| |
LoadBinaryData |
Gets or sets the value which indicates whether to load binary data into the collections.
| |
ParentStorage |
Parent storage
| |
Properties |
Properties of the object available through GetProperty.
| |
SortNames |
If true, the names in enumeration are sorted
|
Name | Description | |
---|---|---|
Add |
Adds new object to the collection.
| |
AddCollection |
Registers the given collection of objects within the repository.
| |
Disconnect |
Disconnects the collections from the database
| |
GetCollection |
Returns the collection of objects indexed by object type, e.g. "cms.user".
| |
GetEnumerator |
Gets the enumerator for the collection.
| |
GetNicePropertyName |
Gets the property name for the original name of the collection
| |
GetObjectName |
Returns the name of the given object
| |
GetProperty |
Gets the property value.
| |
LoadCollection |
Loads the given collection.
| |
NewCollection |
Creates new collection for the data.
| |
NewCombinedCollection |
Creates new combined collection for the data.
| |
Reconnect |
Reconnects the collection to the database
| |
RegisterNiceName |
Registers the nice name of the collection
| |
ReplaceCollection |
Registers the given collection of objects within the repository.
| |
SetupCollection |
Sets up the collection using the given settings
| |
StoreCollection |
Stores the collection into inner lists
| |
SubmitChanges |
Submits the changes to the database.
| |
TryGetProperty |
Returns value of property.
|
Name | Description | |
---|---|---|
BatchTCollection |
Returns input in batches of batchSize size.
(Defined by BaseExtensions.) | |
GetNamedEnumeratorT |
Name enumerator over a collection
(Defined by DataExtensions.) | |
ToHashSetTCollection |
Converts the list of objects to a hash set of distinct values
(Defined by DataExtensions.) | |
ToJSON |
Returns JSON representation of current instance of IEnumerable.
(Defined by DataExtensions.) | |
ToXML |
Returns XML representation of current instance of IEnumerable.
(Defined by DataExtensions.) |
Name | Description | |
---|---|---|
OnLoadCollection |
Fires when the collection with specified name is requested.
|