Package org.cyclos.impl.banking
Interface VoucherConfigurationServiceLocal
-
- All Superinterfaces:
CRUDService<VoucherConfigurationDTO,VoucherConfigurationData,CurrencyVO>,CRUDServiceLocal<VoucherConfiguration,VoucherConfigurationDTO,VoucherConfigurationData,CurrencyVO>,Service,VoucherConfigurationService
- All Known Implementing Classes:
VoucherConfigurationServiceImpl
public interface VoucherConfigurationServiceLocal extends VoucherConfigurationService, CRUDServiceLocal<VoucherConfiguration,VoucherConfigurationDTO,VoucherConfigurationData,CurrencyVO>
Local interface forVoucherConfigurationService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<VoucherConfiguration>listAll()Returns a list with all voucher configurationsList<VoucherConfiguration>listEnabled(User user)Returns the voucher configurations which are enabled for the given userList<VoucherConfiguration>listVisible(User user)Returns the voucher configurations the logged user can view or redeem according to the relationship with the given user.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.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.-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, newEntity, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
Methods inherited from interface org.cyclos.services.banking.VoucherConfigurationService
getListData, list
-
-
-
-
Method Detail
-
listAll
List<VoucherConfiguration> listAll()
Returns a list with all voucher configurations
-
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.
-
-