| DocumentRepository Class |
Namespace: CMS.DocumentEngine
public class DocumentRepository : ObjectRepository<TreeNodeCollection, TreeNode, TreeNodeCollectionSettings>, ICMSStorage
The DocumentRepository type exposes the following members.
| Name | Description | |
|---|---|---|
| DocumentRepository |
Constructor.
| |
| DocumentRepository(String) |
Constructor.
| |
| DocumentRepository(TreeNode) |
Constructor.
|
| Name | Description | |
|---|---|---|
| AddCollection |
Registers the given collection of objects within the repository.
| |
| Disconnect |
Disconnects the collections from the database
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| GetCollection |
Returns the collection of objects indexed by object type, e.g. "cms.user".
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| GetEnumerator |
Gets the enumerator for the collection.
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| GetNicePropertyName |
Gets the property name for the original name of the collection
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| GetObjectName |
Returns the name of the given object
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| GetProperty |
Gets the property value.
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| GetRootDocument |
Gets the root document from the database.
| |
| LoadCollection |
Loads the given collection.
(Overrides ObjectRepositoryTCollection, TObject, TSettingsLoadCollection(TSettings).) | |
| NewCollection |
Creates new collection for the data.
(Overrides ObjectRepositoryTCollection, TObject, TSettingsNewCollection(String).) | |
| NewCombinedCollection |
Creates new combined collection for the data.
(Overrides ObjectRepositoryTCollection, TObject, TSettingsNewCombinedCollection.) | |
| Reconnect |
Reconnects the collection to the database
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| RegisterNiceName |
Registers the nice name of the collection
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| TryGetProperty |
Returns value of property.
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) |
| Name | Description | |
|---|---|---|
| AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
| GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
| GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
| ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
| Name | Description | |
|---|---|---|
| mAll |
Collection of all underlying objects.
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| mCollections |
Table of collections [name -> CollectionType]
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| mCollectionSettings |
Table of collection settings [name -> InfoCollectionSettings]
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| mCollectionSettingsByIndex |
Table of collection settings by index [index -> InfoCollectionSettings]
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| mCollectionsList |
List of all collections (sorted by the order in which the collections were added).
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| mCount |
Number of the inner collections.
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| mDisconnectedCount |
Number of disconnected references for this collection
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| mDynamicNames |
List of dynamic names of the collections
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| mIsLastVersion |
If true, the document is the last version (retrieved using DocumentHelper.GetDocument).
| |
| mLoadBinaryData |
Indicates whether to load binary data into the collections of the repository.
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| mNiceNames |
Translation of collection nice names to a normal names [niceName -> name]
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| mProperties |
Properties of the object available through GetProperty.
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| mRootDocument |
Root document.
| |
| mSiteName |
Site name.
| |
| mTreeProvider |
Tree provider object to use for the database access.
|
| Name | Description | |
|---|---|---|
| All |
All items from all underlying collections.
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| AllowNiceNames |
If true, the repository allows nice names of the collections, e.g. for "CMS.User" uses "Users"
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| CollectionNames |
Returns list of collection names in the repository.
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| Count |
Returns the number of items.
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| DynamicNames |
List of the dynamic names of the collections
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| GetDynamicNames |
Function that provides the dynamic names of collections to the repository
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| IsCachedObject |
If true, the object is cached within the system for later use
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| IsDisconnected |
Returns true if the repository is disconnected from the data source
(Overrides ObjectRepositoryTCollection, TObject, TSettingsIsDisconnected.) | |
| IsLastVersion |
If true, the document is the last version (retrieved using DocumentHelper.GetDocument).
| |
| ItemInt32 |
Returns the collection of objects.
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| ItemString |
Returns the collection of objects indexed by object type, e.g. "cms.user".
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| ItemsHaveNames |
Returns true if the items in the collection have names
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| LoadBinaryData |
Gets or sets the value which indicates whether to load binary data into the collections.
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| ParentDocument |
Parent document.
| |
| ParentStorage |
Parent storage
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| Properties |
Properties of the object available through GetProperty.
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| RootDocument |
Root document.
| |
| SiteName |
Site name.
| |
| SortNames |
If true, the names in enumeration are sorted
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) | |
| TreeProvider |
Tree provider instance used to access data. If no TreeProvider is assigned, a new TreeProvider instance is created.
|
| Name | Description | |
|---|---|---|
| OnLoadCollection |
Fires when the collection with specified name is requested.
(Inherited from ObjectRepositoryTCollection, TObject, TSettings.) |