Class UserRestrictionModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
All Implemented Interfaces:
Serializable

public class UserRestrictionModel extends RestrictionModel
Generated model class for type UserRestriction first defined at extension voucher.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • USERS

      public static final String USERS
      Generated constant - Attribute key of UserRestriction.users attribute defined at extension voucher.
      See Also:
  • Constructor Details

    • UserRestrictionModel

      public UserRestrictionModel()
      Generated constructor - Default constructor for generic creation.
    • UserRestrictionModel

      public UserRestrictionModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • UserRestrictionModel

      @Deprecated(since="4.1.1", forRemoval=true) public UserRestrictionModel(Collection<PrincipalModel> _users, VoucherModel _voucher)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _users - initial attribute declared by type UserRestriction at extension voucher
      _voucher - initial attribute declared by type Restriction at extension voucher
    • UserRestrictionModel

      @Deprecated(since="4.1.1", forRemoval=true) public UserRestrictionModel(ItemModel _owner, Collection<PrincipalModel> _users, VoucherModel _voucher)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _owner - initial attribute declared by type Item at extension core
      _users - initial attribute declared by type UserRestriction at extension voucher
      _voucher - initial attribute declared by type Restriction at extension voucher
  • Method Details

    • getUsers

      @Accessor(qualifier="users", type=GETTER) public Collection<PrincipalModel> getUsers()
      Generated method - Getter of the UserRestriction.users attribute defined at extension voucher. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the users - the principals the given voucher is valid for.
    • setUsers

      @Accessor(qualifier="users", type=SETTER) public void setUsers(Collection<PrincipalModel> value)
      Generated method - Setter of UserRestriction.users attribute defined at extension voucher.
      Parameters:
      value - the users - the principals the given voucher is valid for.