IUserWriteSession Methods Ingeniux CMS Content Store API

The IUserWriteSession type exposes the following members.

Methods

  Name Description
Public method AddT
Adds a new object to the content store. Objects are saved to the content store upon session closure.
Public method CancelSaving
Prevents session from saving any changes.
Public method Commit
Manually saves changes to the content store.
Public method CompositeGetT, TManager
Retrieves an entity with given ID and objects related to the entity. The includeExpression defines what to include.
(Inherited from IUserSession.)
Public method CompositeListT
Retrieves the collection of all objects of a given type as well as all objects related to the object type. The includeExpression defines what to include.
(Inherited from IUserSession.)
Public method CountT
Gets the count of query results
(Inherited from IUserSession.)
Public method DeleteT
Deletes an existing object from the content store. Deletion occurs upon session closure.
Public method DeleteByIds
Deletes existing objects by their object IDs.
Public method Exists
Checks whether an object with given unique ids exists or not
(Inherited from IUserSession.)
Public method GetT
Retrieves an object that implements the IObjectWithId interface by its unique ID, from the content store.
(Inherited from IUserSession.)
Public method GetEntitiesT, TManager (Inherited from IUserSession.)
Public method GetEntityT, TManager (Inherited from IUserSession.)
Public method GetManagerT (Inherited from IUserSession.)
Public method ListT
Retrieves the collection of all objects of a given type.
(Inherited from IUserSession.)
Public method Code example LuceneQueryAllT, TIndex

Queries the content store using Lucene query syntax, returning a collection of objects of the given type.

The CSAPI creates indexes in the content store to expedite object lookup. The CSAPI comes with a set of indexes for its basic functionality. All strong-typed queries go through this method. Additional custom indexes can be created to provide further flexibility on fast lookup. Please refer to the Indexing topic for more information on indexes and custom indexes.

(Inherited from IUserSession.)
Public method QueryT, TIndex

Queries the content store and returns a collection of objects of a given type. The query is based on the type of index provided.

THe CSAPI creates indexes in the content store to expedite object lookup. CSAPI comes with a set of indexes for its basic functionality. All strong-typed queries go through this method. Additional custom indexes can be created to provide even further flexibilities on fast lookup. Please refer to the Indexing topic for more information on indexes and custom indexes.

(Inherited from IUserSession.)
Top
See Also

Reference