public interface VoucherConfigurationServiceLocal extends VoucherConfigurationService, CRUDServiceLocal<VoucherConfiguration,VoucherConfigurationDTO,VoucherConfigurationData,CurrencyVO>
VoucherConfigurationService| Modifier and Type | Method and Description |
|---|---|
java.util.List<VoucherConfiguration> |
listAll()
Returns a list with all voucher configurations
|
java.util.List<VoucherConfiguration> |
listEnabled(User user)
Returns the voucher configurations which are enabled for the given user
|
java.util.List<VoucherConfiguration> |
listViewOrRedeem(User user)
Returns the voucher configurations the logged user can view or redeem according to the relationship with the
given user.
|
java.util.List<VoucherConfiguration> |
listVisible(User user)
Returns the voucher configurations visible to the logged according to the relationship with the given user.
|
org.cyclos.impl.utils.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.
|
getListData, listfind, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validategetData, getDataForNew, load, remove, removeAll, savejava.util.List<VoucherConfiguration> listAll()
java.util.List<VoucherConfiguration> listEnabled(User user)
java.util.List<VoucherConfiguration> listViewOrRedeem(User user)
java.util.List<VoucherConfiguration> listVisible(User user)
org.cyclos.impl.utils.BooleanPropertiesHolder<VoucherConfiguration> resolveVoucherConfigurationPermissions(User user)