Table of Contents

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 int

User or group id

ClearGroupUsersFavoriteCache(UserGroup, int)

Clears the cache for all users in the group

public static void ClearGroupUsersFavoriteCache(UserGroup group, int favoriteListId)

Parameters

group UserGroup

The group

favoriteListId int

Favorite list id

ClearUserDefaultFavoritesCache(User)

Clears the cache for default favorite list for user.

public static void ClearUserDefaultFavoritesCache(User user)

Parameters

user User

The user

ClearUserFavoritesCache(User, int)

Clears the cache for user

public static void ClearUserFavoritesCache(User user, int favoriteListId)

Parameters

user User

The user

favoriteListId int

Favorite list id

ClearUserFavoritesCache(int, int)

Clears the cache for user or group

public static void ClearUserFavoritesCache(int userOrGroupId, int favoriteListId)

Parameters

userOrGroupId int

User or group id

favoriteListId int

Favorite list id

Evaluate(MacroAction)

Evaluates the specified action.

public override object Evaluate(MacroAction action)

Parameters

action MacroAction

The action.

Returns

object

The value of the action that was evaluated; null if the action did not evaluate to a specific value.

See Also

To top