Class UserProductsMacro
- Namespace
- Dynamicweb.Ecommerce.Indexing
- Assembly
- Dynamicweb.Ecommerce.dll
Represents user macro
public class UserProductsMacro : Macro
- Inheritance
-
UserProductsMacro
- Inherited Members
Properties
Name
Gets the name.
public override string Name { get; }
Property Value
- string
The name.
SupportedActions
Gets the supported actions.
public override IEnumerable<MacroAction> SupportedActions { get; }
Property Value
- IEnumerable<MacroAction>
The supported actions.
Methods
ClearDefaultFavoritesCache(int)
Clears the cache for default favorite list for user or group.
public static void ClearDefaultFavoritesCache(int userOrGroupId)
Parameters
userOrGroupId
intUser or group id
ClearGroupUsersFavoriteCache(UserGroup, int)
Clears the cache for all users in the group
public static void ClearGroupUsersFavoriteCache(UserGroup group, int favoriteListId)
Parameters
ClearUserDefaultFavoritesCache(User)
Clears the cache for default favorite list for user.
public static void ClearUserDefaultFavoritesCache(User user)
Parameters
user
UserThe user
ClearUserFavoritesCache(User, int)
Clears the cache for user
public static void ClearUserFavoritesCache(User user, int favoriteListId)
Parameters
ClearUserFavoritesCache(int, int)
Clears the cache for user or group
public static void ClearUserFavoritesCache(int userOrGroupId, int favoriteListId)
Parameters
Evaluate(MacroAction)
Evaluates the specified action.
public override object Evaluate(MacroAction action)
Parameters
action
MacroActionThe action.
Returns
- object
The value of the action that was evaluated;
null
if the action did not evaluate to a specific value.