Class UserRestrictionModel

  • All Implemented Interfaces:
    java.io.Serializable

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

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • USERS

        public static final java.lang.String USERS
        Generated constant - Attribute key of UserRestriction.users attribute defined at extension voucher.
        See Also:
        Constant Field Values
    • Constructor Detail

      • UserRestrictionModel

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

        public UserRestrictionModel​(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​(java.util.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,
                                    java.util.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 Detail

      • getUsers

        @Accessor(qualifier="users",
                  type=GETTER)
        public java.util.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​(java.util.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.