Class SettingsCategoryInfoProvider
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Class providing Settings category management.
[ProviderInterface(typeof(ISettingsCategoryInfoProvider))]
public class SettingsCategoryInfoProvider : AbstractInfoProvider<SettingsCategoryInfo, SettingsCategoryInfoProvider>, IInfoProvider, ICustomizableProvider, IBulkOperationProvider, IWebFarmProvider, IInfoValidator<SettingsCategoryInfo>, IInfoByGuidProvider<SettingsCategoryInfo>, IBulkInfoProvider<SettingsCategoryInfo>, IRelatedObjectCountProvider, ISettingsCategoryInfoProvider, IInfoProvider<SettingsCategoryInfo>, IInfoByIdProvider<SettingsCategoryInfo>, IInfoByNameProvider<SettingsCategoryInfo>
- Inheritance
-
objectAbstractInfoProvider<SettingsCategoryInfo, SettingsCategoryInfoProvider, ObjectQuery<SettingsCategoryInfo>>SettingsCategoryInfoProvider
- Implements
- Inherited Members
- Extension Methods
Constructors
SettingsCategoryInfoProvider()
Constructor
public SettingsCategoryInfoProvider()
Fields
mRootCategory
Info object representing Settings root category.
public static SettingsCategoryInfo mRootCategory
Field Value
Properties
RootCategory
Returns root settings category (this property is cached).
[Obsolete("Property was not intended for public use and will be removed.")]
public static SettingsCategoryInfo RootCategory { get; }
Property Value
Methods
DeleteInfo(SettingsCategoryInfo)
Deletes the object to the database.
protected override void DeleteInfo(SettingsCategoryInfo info)
Parameters
infoSettingsCategoryInfoObject to delete
GetCategoriesOnPath(string)
Gets all the categories on the specified category ID path in the corresponding order.
[Obsolete("Method was not intended for public use and will be removed.")]
public static InfoDataSet<SettingsCategoryInfo> GetCategoriesOnPath(string categoryIdPath)
Parameters
categoryIdPathstringCategory ID path
Returns
GetCategoriesOnPathWhereCondition(string)
Gets where condition for all parent categories on path except root category.
[Obsolete("Method was not intended for public use and will be removed.")]
public static string GetCategoriesOnPathWhereCondition(string categoryIdPath)
Parameters
categoryIdPathstringCategory ID path
Returns
- string
GetChildSettingsCategories(int)
Gets DataSet with child setting categories of the specified parent setting category.
[Obsolete("Method was not intended for public use and will be removed.")]
public static InfoDataSet<SettingsCategoryInfo> GetChildSettingsCategories(int parentCategoryId)
Parameters
parentCategoryIdintID of the parent setting category
Returns
GetChildSettingsCategories(string, string)
Gets DataSet with child setting categories of the specified parent setting category, filtered by where condition.
[Obsolete("Method was not intended for public use and will be removed.")]
public static InfoDataSet<SettingsCategoryInfo> GetChildSettingsCategories(string parentCategoryName, string where)
Parameters
parentCategoryNamestringName of the parent setting category
wherestringWhere condition
Returns
GetChildSettingsCategoriesInternal(int)
Gets DataSet with child setting categories of the specified parent category.
[Obsolete("Method was not intended for public use and will be removed.")]
protected virtual InfoDataSet<SettingsCategoryInfo> GetChildSettingsCategoriesInternal(int parentCategoryId)
Parameters
parentCategoryIdintID of the parent setting category
Returns
GetChildSettingsCategoriesInternal(string, string)
Gets DataSet with child setting categories of the specified parent category.
[Obsolete("Method was not intended for public use and will be removed.")]
protected virtual InfoDataSet<SettingsCategoryInfo> GetChildSettingsCategoriesInternal(string parentCategoryName, string where)
Parameters
parentCategoryNamestringCode name of the parent setting category
wherestringWhere condition
Returns
GetLastSettingsCategoryOrder(int)
Returns last SettingsCategory order for specified parent SettingsCategory.
[Obsolete("Method was not intended for public use and will be removed.")]
public static int GetLastSettingsCategoryOrder(int parentCategoryID)
Parameters
parentCategoryIDintParent SettingsCategory ID
Returns
- int
GetLastSettingsCategoryOrderInternal(int)
Returns last order for specified parent SettingsCategory.
[Obsolete("Method was not intended for public use and will be removed.")]
protected virtual int GetLastSettingsCategoryOrderInternal(int parentCategoryID)
Parameters
parentCategoryIDintParent SettingsCategory ID
Returns
- int
GetRootSettingsCategoryInfo()
Gets root of categories. This is distinguished by CategoryLevel = 0. If more found -> use first.
[Obsolete("Method was not intended for public use and will be removed.")]
public static SettingsCategoryInfo GetRootSettingsCategoryInfo()
Returns
GetSettingsCategories(string, string, int, string)
Gets all categories.
[Obsolete("Method was not intended for public use and will be removed.")]
public static InfoDataSet<SettingsCategoryInfo> GetSettingsCategories(string where, string orderBy = null, int topN = -1, string columns = null)
Parameters
wherestringWhere condition to filter data
orderBystringOrder by statement to use
topNintNumber of data rows which should be included in the result
columnsstringTable columns separated by comma which should be included in the result
Returns
GetSettingsCategoriesInternal(string, string, int, string)
Gets all categories.
[Obsolete("Method was not intended for public use and will be removed.")]
protected virtual InfoDataSet<SettingsCategoryInfo> GetSettingsCategoriesInternal(string where, string orderBy, int topN, string columns)
Parameters
wherestringWhere condition to filter data
orderBystringOrder by statement to use
topNintNumber of data rows which should be included in the result
columnsstringTable columns which should be included in the result
Returns
MoveCategoryDown(int)
Moves specified category down.
[Obsolete("Method was not intended for public use and will be removed.")]
public static void MoveCategoryDown(int categoryId)
Parameters
categoryIdintCategory ID
MoveCategoryDownInternal(int)
Moves specified category down.
[Obsolete("Method was not intended for public use and will be removed.")]
protected virtual void MoveCategoryDownInternal(int categoryId)
Parameters
categoryIdintCategory ID
MoveCategoryUp(int)
Moves specified category up.
[Obsolete("Method was not intended for public use and will be removed.")]
public static void MoveCategoryUp(int categoryId)
Parameters
categoryIdintCategory ID
MoveCategoryUpInternal(int)
Moves specified category up.
[Obsolete("Method was not intended for public use and will be removed.")]
protected virtual void MoveCategoryUpInternal(int categoryId)
Parameters
categoryIdintCategory ID
RefreshDataCounts()
Updates all counts for all sub-objects.
[Obsolete("Method was not intended for public use and will be removed.")]
public static void RefreshDataCounts()
RefreshDataCountsInternal()
Updates all counts for all sub-objects.
[Obsolete("Method was not intended for public use and will be removed.")]
protected virtual void RefreshDataCountsInternal()
RefreshObjectsCounts()
Updates all counts for all sub-objects.
[Obsolete("Method was not intended for public use and will be removed.")]
public void RefreshObjectsCounts()
SetInfo(SettingsCategoryInfo)
Inserts or Updates the object to the database.
protected override void SetInfo(SettingsCategoryInfo info)
Parameters
infoSettingsCategoryInfoObject to insert / update
SetSettingsCategoryChildCount(int)
Sets correct SettingsCategoryChildCount to the specified SettingsCategory.
[Obsolete("Method was not intended for public use and will be removed.")]
public static void SetSettingsCategoryChildCount(int settingsCategoryID)
Parameters
settingsCategoryIDintID of the SettingsCategory
SetSettingsCategoryChildCountInternal(int)
Sets correct CategoryChildCount to the specified SettingsCategory.
[Obsolete("Method was not intended for public use and will be removed.")]
protected virtual void SetSettingsCategoryChildCountInternal(int settingsCategoryID)
Parameters
settingsCategoryIDintID of the SettingsCategory