Class Assortment
- Namespace
- Dynamicweb.Ecommerce.Assortments
- Assembly
- Dynamicweb.Ecommerce.dll
Assortment class.
[Serializable]
[PermissionEntity("Assortment")]
public class Assortment : IPermissionEntity, IPermissionEntityLookup
- Inheritance
-
Assortment
- Implements
- Inherited Members
- Extension Methods
Constructors
Assortment()
Creates an Assortment object with default property values.
public Assortment()
Properties
Active
Gets or sets a value indicating whether the Assortment is active.
public bool Active { get; set; }
Property Value
- bool
trueif active; otherwise,false.
AllowAnonymousUsers
Gets or sets a value indicating whether the Assortment is available to anonymous uses.
public bool AllowAnonymousUsers { get; set; }
Property Value
- bool
trueif assortment is available to anonymous users; otherwise,false.
AutoId
Gets or sets the autoId of the Assortment.
public int AutoId { get; }
Property Value
- int
The auto assigned value from the assortment database table
GroupHierarchy
Gets the group hierarchy of assortment
public HashSet<string> GroupHierarchy { get; }
Property Value
GroupRelations
Gets the group relations of assortment
public Dictionary<string, AssortmentGroupRelation> GroupRelations { get; }
Property Value
HasRelations
Shows that assortment has any type of relation (product, group or shop relations)
public bool HasRelations { get; }
Property Value
ID
Gets or sets the id of the Assortment.
public string ID { get; set; }
Property Value
- string
The identifier.
IncludeSubgroups
Gets or sets a value indicating whether the Assortment should include subgroups of selected groups when building the Assortment.
public bool IncludeSubgroups { get; set; }
Property Value
- bool
trueif subgroups are included; otherwise,false.
Items
Gets the assortment items
public Dictionary<ProductKey, AssortmentItem> Items { get; }
Property Value
LastBuildDate
Gets the date and time when the Assortment was last built.
public DateTime? LastBuildDate { get; }
Property Value
- DateTime?
The last build date.
PermissionName
The permission entity identifier name supported by this implementation of IPermissionEntityLookup.
public string PermissionName { get; }
Property Value
- See Also
Permissions
Gets the assortment permissions
public Dictionary<int, AssortmentPermission> Permissions { get; }
Property Value
ProductRelations
Gets the product relations of assortment
public Dictionary<string, AssortmentProductRelation> ProductRelations { get; }
Property Value
RebuildRequired
Gets or sets a value indicating whether a rebuild of the Assortment is required.
public bool RebuildRequired { get; set; }
Property Value
- bool
trueif rebuild is required; otherwise,false.
ShopRelations
Gets the shop relations of assortment
public Dictionary<string, AssortmentShopRelation> ShopRelations { get; }
Property Value
Translations
Gets the translations of assortment
public TranslationCollection<AssortmentTranslation> Translations { get; }
Property Value
Methods
GetName(string)
Gets the name of the assortment for the given language.
public string GetName(string languageId)
Parameters
languageIdstringLanguage id
Returns
GetNumber(string)
Gets the number of the assortment for the given language.
public string GetNumber(string languageId)
Parameters
languageIdstringLanguage id
Returns
GetPermissionEntityByKey(string)
Attempts to resolve a concrete instance of IPermissionEntity based on a key.
public IPermissionEntity? GetPermissionEntityByKey(string key)
Parameters
keystringThe key used for looking up an instance of IPermissionEntity
Returns
- IPermissionEntity
An instance of IPermissionEntity, if found; otherwise,
null.
- See Also
GetPermissionKey()
Gets the unique key for this permission entity.
public string GetPermissionKey()
Returns
- string
Permission key
GetPermissionParents()
Gets the parents of this permission entity, for the purposes of inherited permissions.
public IEnumerable<IPermissionEntity> GetPermissionParents()
Returns
- IEnumerable<IPermissionEntity>
A sequence of direct parents to this entity
SetName(string, string)
Sets the name of the assortment for the given language.
public void SetName(string languageId, string name)
Parameters
SetNumber(string, string)
Sets the number of the assortment for the given language.
public void SetNumber(string languageId, string number)