Interface VoucherConfigurationServiceLocal

    • Method Detail

      • listEnabled

        List<VoucherConfiguration> listEnabled​(User user)
        Returns the voucher configurations which are enabled for the given user
      • listVisible

        List<VoucherConfiguration> listVisible​(User user)
        Returns the voucher configurations the logged user can view or redeem according to the relationship with the given user. If the given user is null then it returns the configurations as follow: If logged is an administrator then those defined in the admin product. If logged is a member/broker then those defined in the member products.
      • listVisible

        List<VoucherConfiguration> listVisible​(User user,
                                               boolean includeViewTransactions,
                                               boolean includeViewVouchers)
        Returns the voucher configurations visible to the logged according to the relationship with the given user.
      • resolveVoucherConfigurationPermissions

        BooleanPropertiesHolder<VoucherConfiguration> resolveVoucherConfigurationPermissions​(User user)
        Returns the voucher configuration permissions according to the relationship between the logged user and the given user:
        • If the given user is null or the logged user is the same as the given one then it returns the permissions for admin / member (myPermissions) according to the logged user
        • If the logged user is a manager of the given user then it returns the permissions for admin / broker according to the logged user
        • Otherwise it returns an empty permissions.