class RolePermissionTypes extends Enum

Class RolePermissionTypes holds all possible permissions for access control (what a user can see for product on the frontend)

Constants

CAN_SEE_PRICE

Label which defines that the user can see the price

CAN_SEE_PRICE_UNDERSCORE

CAN_SEE_PRICE_WITH_RABAT

Label which defines that the user can see the price with rabat of product

CAN_SEE_PRICE_WITH_RABAT_UNDERSCORE

CAN_SEE_QUANTITY

Label which defines that the user can see the quantity of product

CAN_SEE_QUANTITY_UNDERSCORE

CAN_SEE_PARTIAL_QUANTITY

Label which defines that the user can see partial quantity. This field is usually used with third parts integrations.

CAN_SEE_PARTIAL_QUANTITY_UNDERSCORE

CAN_SEE_QUANTITY_LIGHT

Label which defines that the user can see quantity light

CAN_SEE_QUANTITY_LIGHT_UNDERSCORE

CAN_ADD_TO_CART

Defines that the user can add the product to cart

CAN_ADD_TO_CART_UNDERSCORE

Methods

static array
getPossibleValues()

Gets an array of the possible values.

static array
getReadables()

Gets an array of the human representations indexed by possible values.

static array
getProductPermissionReadables()

Gets an array of the human representations indexed by possible values.

Details

at line 61
static array getPossibleValues()

Gets an array of the possible values.

Return Value

array

at line 71
static array getReadables()

Gets an array of the human representations indexed by possible values.

Return Value

array

at line 88
static array getProductPermissionReadables()

Gets an array of the human representations indexed by possible values.

Return Value

array