Class ScreenPresetService
- Namespace
- Dynamicweb.CoreUI.Data.ScreenConfiguration
- Assembly
- Dynamicweb.CoreUI.dll
public static class ScreenPresetService
- Inheritance
-
ScreenPresetService
- Inherited Members
-
Methods
DeleteScreenPresets(IEnumerable<long>)
public static void DeleteScreenPresets(IEnumerable<long> presetIds)
Parameters
presetIds
IEnumerable<long>
GetAllScreenPresets()
public static IEnumerable<ScreenPreset> GetAllScreenPresets()
Returns
- IEnumerable<ScreenPreset>
GetDefaultScreenPresetByUser(string, User)
public static ScreenPreset? GetDefaultScreenPresetByUser(string screenTypeName, User user)
Parameters
screenTypeName
string
user
User
Returns
- ScreenPreset
GetDefaultScreenPresetByUser(string, User, string?)
public static ScreenPreset? GetDefaultScreenPresetByUser(string screenTypeName, User user, string? subscreenId)
Parameters
screenTypeName
string
user
User
subscreenId
string
Returns
- ScreenPreset
GetScreenPreset(long)
public static ScreenPreset? GetScreenPreset(long id)
Parameters
id
long
Returns
- ScreenPreset
GetScreenPresetUserIds()
public static IEnumerable<int> GetScreenPresetUserIds()
Returns
- IEnumerable<int>
GetScreenPresetsByUser(User)
public static IEnumerable<ScreenPreset> GetScreenPresetsByUser(User user)
Parameters
user
User
Returns
- IEnumerable<ScreenPreset>
GetScreenPresetsByUserAndModel(Type, User)
public static IEnumerable<ScreenPreset> GetScreenPresetsByUserAndModel(Type modelType, User user)
Parameters
modelType
Type
user
User
Returns
- IEnumerable<ScreenPreset>
GetScreenPresetsByUserAndModel<TModel>(User)
public static IEnumerable<ScreenPreset> GetScreenPresetsByUserAndModel<TModel>(User user)
Parameters
user
User
Returns
- IEnumerable<ScreenPreset>
Type Parameters
TModel
GetUserSpecifiedScreenPreset(Type, User)
public static ScreenPreset? GetUserSpecifiedScreenPreset(Type screenType, User user)
Parameters
screenType
Type
user
User
Returns
- ScreenPreset
SaveScreenPreset(ScreenPreset, ScreenPresetType?)
public static bool SaveScreenPreset(ScreenPreset screenPreset, ScreenPresetType? type)
Parameters
screenPreset
ScreenPreset
type
ScreenPresetType?
Returns
- bool