ECommerceContext Methods |
The ECommerceContext type exposes the following members.
Name | Description | |
---|---|---|
ClearCurrent |
Clears the current context value
(Inherited from ContextContainerTParent.) | |
CloneForNewThread |
Clones the object for new thread
(Inherited from AbstractContextTContext.) | |
CombineWith |
Combines current instance with other properties (modifies current instace!).
List properties are merged from all the participating typeinfos, other properties are taken as first non-null value (non-null is determined by nullValues collection).
(Inherited from AbstractHierarchicalObjectTObject.) | |
ContainsColumn |
Returns true if specified column is available in current structure.
(Inherited from AbstractDataContainerParentObjectType.) | |
GetProperty |
Gets the context property.
(Inherited from AbstractHierarchicalObjectTObject.) | |
GetPropertyType |
Gets the type of the given property
(Inherited from AbstractHierarchicalObjectTObject.) | |
GetValue |
Gets the object value.
(Inherited from AbstractSimpleDataContainerTObject.) | |
HasSetter |
Returns true if given property has a setter
(Inherited from AbstractHierarchicalObjectTObject.) | |
CheckCustomerSiteID |
Returns true if customer is anonymous on current site or has login on current site.
Returns true also for anonymous customers with no CustomerSiteID set when current user has global admin privilege level.
| |
IsUserAuthorizedForDepartment |
Checks whether current user is authorized to access products from the specified department.
| |
IsUserAuthorizedForPermission |
Checks the specified ecommerce permission for current user.
| |
IsUserAuthorizedToModifyCustomer |
Indicates if user is authorized to modify specific customer.
'EcommerceModify' OR 'ModifyCustomers' permission is checked.
| |
IsUserAuthorizedToModifyDiscount |
Indicates if user is authorized to modify discounts.
| |
IsUserAuthorizedToModifyDiscountCoupon(Boolean) |
Indicates if user is authorized to modify discount coupons.
| |
IsUserAuthorizedToModifyDiscountCoupon(DiscountCouponInfo) |
Indicates if user is authorized to modify specific discount coupon.
For global discount coupon: 'EcommerceGlobalModify' permission is checked.
For site-specific discount coupon: 'EcommerceModify' OR 'ModifyDiscounts' permission is checked.
| |
IsUserAuthorizedToModifyManufacturer(Boolean) |
Indicates if user is authorized to modify manufacturers.
| |
IsUserAuthorizedToModifyManufacturer(ManufacturerInfo) |
Indicates if current user is authorized to modify specific manufacturer.
For global manufacturer: 'EcommerceGlobalModify' permission is checked.
For site-specific manufacturer: 'EcommerceModify' OR 'ModifyManufacturers' permission is checked.
| |
IsUserAuthorizedToModifyOptionCategory(Boolean) |
Indicates if user is authorized to modify option categories.
| |
IsUserAuthorizedToModifyOptionCategory(OptionCategoryInfo) |
Indicates if user is authorized to modify specific option category.
For global option category: 'EcommerceGlobalModify' permission is checked.
For site-specific manufacturer: 'EcommerceModify' OR 'ModifyProducts' permission is checked.
| |
IsUserAuthorizedToModifySKU(Boolean) |
Indicates if user is authorized to modify SKUs.
| |
IsUserAuthorizedToModifySKU(SKUInfo) |
Indicates if user is authorized to modify specific SKU.
For global SKU: 'EcommerceGlobalModify' permission is checked.
For site-specific SKU: 'EcommerceModify' OR 'ModifyProducts' permission is checked.
| |
IsUserAuthorizedToModifySupplier(Boolean) |
Indicates if user is authorized to modify suppliers.
| |
IsUserAuthorizedToModifySupplier(SupplierInfo) |
Indicates if user is authorized to modify specific supplier.
For global supplier: 'EcommerceGlobalModify' permission is checked.
For site-specific supplier: 'EcommerceModify' OR 'ModifySuppliers' permission is checked.
| |
RegisterColumn(String, FuncTObject, Object) |
Registers the given Column to the object
(Inherited from AbstractSimpleDataContainerTObject.) | |
RegisterColumn(String, FuncTObject, Object, FuncTObject, Object, Object) |
Registers the given Column to the object
(Inherited from AbstractSimpleDataContainerTObject.) | |
RegisterColumns |
Registers the Columns of this object
(Inherited from AbstractSimpleDataContainerTObject.) | |
RegisterProperties |
Registers the properties of this object
(Inherited from AbstractHierarchicalObjectTObject.) | |
RegisterProperty(String, FuncTObject, Object) |
Registers the given property to the object
(Inherited from AbstractHierarchicalObjectTObject.) | |
RegisterProperty(String, Object, FuncTObject, Object, Object) |
Registers the given parameterized property to the object.
(Inherited from AbstractHierarchicalObjectTObject.) | |
SetAsCurrent |
Sets the current instance as the current thread item
(Inherited from ContextContainerTParent.) | |
SetProperty |
Gets the context property.
(Inherited from AbstractHierarchicalObjectTObject.) | |
SetValue |
Sets the object value.
(Inherited from AbstractSimpleDataContainerTObject.) | |
TryGetProperty(String, Object) |
Gets the context property.
(Inherited from AbstractHierarchicalObjectTObject.) | |
TryGetProperty(String, Object, Boolean) |
Returns value of property.
(Inherited from AbstractHierarchicalObjectTObject.) | |
TryGetValue |
Returns value of column.
(Inherited from AbstractSimpleDataContainerTObject.) |
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |