Table of Contents

Class AssortmentPermission

Namespace
Dynamicweb.Ecommerce.Assortments
Assembly
Dynamicweb.Ecommerce.dll
AssortmentPermission class
[Serializable]
public class AssortmentPermission
Inheritance
AssortmentPermission
Inherited Members

Constructors

AssortmentPermission()

Initializes a new instance of the AssortmentPermission class.
public AssortmentPermission()

AssortmentPermission(Assortment, Group)

Initializes a new instance of the AssortmentPermission class.
public AssortmentPermission(Assortment assortment, Group group)

Parameters

assortment Assortment
The assortment.
group Group
The group.

AssortmentPermission(Assortment, User)

Initializes a new instance of the AssortmentPermission class.
public AssortmentPermission(Assortment assortment, User user)

Parameters

assortment Assortment
The assortment.
user User
The user.

AssortmentPermission(IDataReader)

Initializes a new instance of the AssortmentPermission class.
[Obsolete("This method is no longer used.")]
public AssortmentPermission(IDataReader dataReader)

Parameters

dataReader IDataReader
The data reader.

AssortmentPermission(string, int)

Initializes a new instance of the AssortmentPermission class.
public AssortmentPermission(string assortmentID, int userID)

Parameters

assortmentID string
The assortment identifier.
userID int
The user identifier.

Properties

Assortment

Gets the assortment.
[Obsolete("Use Services.Assortments.GetAssortmentById(string) instead.")]
public Assortment Assortment { get; }

Property Value

Assortment
The assortment.

AssortmentID

Gets or sets the id of the associated Assortment.
public string AssortmentID { get; set; }

Property Value

string
The assortment ID.

AutoID

Gets the auto ID of the AssortmentPermission.
public int AutoID { get; }

Property Value

int
The automatic identifier.

UserID

Gets or sets the user/group ID.
public int UserID { get; set; }

Property Value

int
The user/group ID.

Methods

ClearCache()

Clears the cache.
[Obsolete("Use Services.Assortments.ClearCache instead")]
public static void ClearCache()

Delete()

Deletes this instance.
[Obsolete("Use Services.Assortments.DeleteAssortmentPermission instead.")]
public void Delete()

Fill(IDataReader)

Fills the specified data reader.
[Obsolete("This method is no longer used.")]
public void Fill(IDataReader dataReader)

Parameters

dataReader IDataReader
The data reader.

GetAllAssortmentPermissions()

Gets all assortment permissions.
[Obsolete("Use Services.Assortments.GetAllAssortmentPermissions instead.")]
public static IEnumerable<AssortmentPermission> GetAllAssortmentPermissions()

Returns

IEnumerable<AssortmentPermission>
IEnumerable(Of AssortmentPermission).

GetAssortmentIDsByUser(User)

Gets the assortment IDs by user.
[Obsolete("Use Services.Assortments.GetAssortmentIdsByUser(User, bool) instead.")]
public static IEnumerable<string> GetAssortmentIDsByUser(User user)

Parameters

user User
The user.

Returns

IEnumerable<string>
IEnumerable(Of System.String).

GetAssortmentIDsByUserID(int)

Gets the assortment IDs by user.
[Obsolete("Use Services.Assortments.GetAssortmentIdsByUser(User, bool) instead.")]
public static IEnumerable<string> GetAssortmentIDsByUserID(int userID)

Parameters

userID int
The user ID.

Returns

IEnumerable<string>
IEnumerable(Of System.String).

GetAssortmentIDsForCurrentUser()

Gets the assortment IDs for current user. If not user is logged in, the anonymous assortments is assumed.
[Obsolete("Use Services.Assortments.GetAssortmentIdsByUser(User, bool) instead.")]
public static IEnumerable<string> GetAssortmentIDsForCurrentUser()

Returns

IEnumerable<string>
A list of assortment ids for the current user.

GetAssortmentPermissionsByAssortment(Assortment)

Gets the assortment permissions by assortment.
[Obsolete("Use Services.Assortments.GetAssortmentPermissionsByAssortmentId instead.")]
public static IEnumerable<AssortmentPermission> GetAssortmentPermissionsByAssortment(Assortment assortment)

Parameters

assortment Assortment
The assortment.

Returns

IEnumerable<AssortmentPermission>
IEnumerable(Of AssortmentPermission).

GetAssortmentPermissionsByAssortmentID(string)

Gets the assortment permissions by assortment ID.
[Obsolete("Use Services.Assortments.GetAssortmentPermissionsByAssortmentId instead.")]
public static IEnumerable<AssortmentPermission> GetAssortmentPermissionsByAssortmentID(string assortmentID)

Parameters

assortmentID string
The assortment ID.

Returns

IEnumerable<AssortmentPermission>
IEnumerable(Of AssortmentPermission).

GetAssortmentPermissionsByUser(User)

Gets the assortment permissions by user.
[Obsolete("Use Services.Assortments.GetAssortmentPermissionsByUser instead.")]
public static IEnumerable<AssortmentPermission> GetAssortmentPermissionsByUser(User user)

Parameters

user User
The user.

Returns

IEnumerable<AssortmentPermission>
IEnumerable(Of AssortmentPermission).

GetAssortmentPermissionsByUser(User, bool)

Gets the assortment permissions by user.
[Obsolete("Use Services.Assortments.GetAssortmentPermissionsByUser instead.")]
public static IEnumerable<AssortmentPermission> GetAssortmentPermissionsByUser(User user, bool includeGroups)

Parameters

user User
The user.
includeGroups bool
If set to true include the user's groups as well.

Returns

IEnumerable<AssortmentPermission>
IEnumerable(Of AssortmentPermission).

GetAssortmentPermissionsByUserID(int)

Gets the assortment permissions by user ID.
[Obsolete("Use Services.Assortments.GetAssortmentPermissionsByUser(User, bool) instead.")]
public static IEnumerable<AssortmentPermission> GetAssortmentPermissionsByUserID(int userID)

Parameters

userID int
The user ID.

Returns

IEnumerable<AssortmentPermission>
IEnumerable(Of AssortmentPermission).

Save()

Saves this instance.
[Obsolete("Use Services.Assortments.SaveAssortmentPermission instead.")]
public void Save()
To top