Ektron.Cms.Framework.Content.ContentManager

Framework API class for managing Content items withing the CMS. This API can be used for retreiving both Content and Assets, but for managing assets and retrieving assets specifically, use Ektron.Cms.Framework.Content.AssetManager.

Properties
ApiMode Gets or sets the current API access mode. If set to Admin, the API runs with the permissions of an administrator.
ContentLanguage Gets or sets the current content language.
ContentService returns an instance of the business objects Content Service.
InPreviewMode Gets or sets the current Preview Mode. Returns true if the site is in site preview mode.
RequestInformation Gets the current Request Information.
SitePath Gets the site path.
UserId Gets or sets the currently logged in user ID.
Method Description
ContentManager Constructor
ContentManager(ApiAccessMode)
Add(ContentData) Adds a new piece of content to the CMS. contentData.Id will be populated with the Id of the new content item.
Update(ContentData) Updates an existing content item in the CMS.
Delete(Int64) Deletes an existing content item from the CMS.
GetItem(Int64,Boolean) Retrieves a single content item by ID.
GetList(ContentCriteria) Retrieves a list of content based on the supplied criteria.
GetList(ContentMetadataCriteria) Retrieves a list of content based on metadata criteria. Use this method to retreive content based upon metadata values.
GetList(ContentCollectionCriteria) Retrieves a list of content based on collection criteria. Use this method to retreive content based upon Collections the content is in.
GetList(ContentTaxonomyCriteria) Retrieves a list of content based on taxonomy criteria. Use this method to retreive content based upon taxonomies the content is in.
CheckOut(Int64) Checks out a content item
CheckIn(Int64) Checks in a content item.
Submit(Int64) Submits a content item for publishing.
AssignTaxonomy(Int64,Int64) Assigns a Content item to a Taxonomy category.
RemoveTaxonomy(Int64,Int64) Removes a Content item from a Taxonomy category.