Package org.cyclos.impl.banking
Interface TransferTypeServiceLocal
-
- All Superinterfaces:
CRUDService<TransferTypeDTO,TransferTypeData,TransferTypeDataParams>,CRUDServiceLocal<TransferType,TransferTypeDTO,TransferTypeData,TransferTypeDataParams>,Service,TransferTypeService
public interface TransferTypeServiceLocal extends TransferTypeService, CRUDServiceLocal<TransferType,TransferTypeDTO,TransferTypeData,TransferTypeDataParams>
Local interface forTransferTypeService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisPaymentTypePossible(InternalAccountOwner from, AccountOwner to, PaymentTransferType paymentType)Returns whether the given payment type can be used for payments between the given account ownersvoidresetAllMaturityPolicy(Currency currency)resets the maturity Policy to MaturityPolicy.ALWAYS for all TT's attached to the given currency.TransferTypeDirectionresolveDirection(AccountType from, AccountType to)Determines the payment direction for the given from and to account types.TransferTypeDirectionresolveDirection(InternalAccountOwner from, AccountOwner to)Determines the payment direction for the given from and to owner<T> Page<T>search(Class<T> resultType, TransferTypeQuery query)Searches for transfer types, according to the specified query parametersPage<PaymentTransferType>searchExternalPayment(PaymentTransferTypeQuery query)Searches payment types for external payment requestsPage<PaymentTransferType>searchPayment(PaymentTransferTypeQuery paymentTransferTypeQuery)Searches payment types for direct paymentsPage<PaymentTransferType>searchPaymentRequest(PaymentTransferTypeQuery paymentTransferTypeQuery)Searches payment types for payment requestsPage<PaymentTransferType>searchTicket(PaymentTransferTypeQuery query)Searches payment types for tickets-
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.TransferTypeService
search
-
-
-
-
Method Detail
-
isPaymentTypePossible
boolean isPaymentTypePossible(InternalAccountOwner from, AccountOwner to, PaymentTransferType paymentType)
Returns whether the given payment type can be used for payments between the given account owners
-
resetAllMaturityPolicy
void resetAllMaturityPolicy(Currency currency)
resets the maturity Policy to MaturityPolicy.ALWAYS for all TT's attached to the given currency.
-
resolveDirection
TransferTypeDirection resolveDirection(AccountType from, AccountType to)
Determines the payment direction for the given from and to account types. If there is ambiguity, in the case that both accounts are user account types, and different from each other, this method returns null, as it could either beTransferTypeDirection.USER_TO_USERorTransferTypeDirection.USER_TO_SELF
-
resolveDirection
TransferTypeDirection resolveDirection(InternalAccountOwner from, AccountOwner to)
Determines the payment direction for the given from and to owner
-
search
<T> Page<T> search(Class<T> resultType, TransferTypeQuery query)
Searches for transfer types, according to the specified query parameters
-
searchExternalPayment
Page<PaymentTransferType> searchExternalPayment(PaymentTransferTypeQuery query)
Searches payment types for external payment requests
-
searchPayment
Page<PaymentTransferType> searchPayment(PaymentTransferTypeQuery paymentTransferTypeQuery)
Searches payment types for direct payments
-
searchPaymentRequest
Page<PaymentTransferType> searchPaymentRequest(PaymentTransferTypeQuery paymentTransferTypeQuery)
Searches payment types for payment requests
-
searchTicket
Page<PaymentTransferType> searchTicket(PaymentTransferTypeQuery query)
Searches payment types for tickets
-
-