Package org.cyclos.impl.system
Class TransWrapper
- java.lang.Object
-
- org.cyclos.impl.system.TransWrapper
-
- All Implemented Interfaces:
HasCurrency,HasCurrencyAmount,Trans,ProcessableForDataTranslation,HasTransactionNumber,IEntity,HasAmount
public class TransWrapper extends Object implements Trans, ProcessableForDataTranslation
Wraps either aTransactionor aTransferfor printing
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTransWrapper()TransWrapper(AccountHandler accountHandler, TransferServiceLocal transferService, ScheduledPaymentServiceLocal scheduledPaymentService, TransactionServiceLocal transactionService, VoucherServiceLocal voucherService, ARateTypeHandler aRateHandler, DRateTypeHandler dRateHandler, Trans trans)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrency
round, withCurrency
-
Methods inherited from interface org.cyclos.entities.banking.Trans
getActualAmount, getFromType, getFromUser, getRelatedAccount, getRelatedOwner, getToOwner, getToType, getToUser, getTransactionNumberOrId, isDebit, isFromSystem, isFromUser, isToSystem, isToUser
-
-
-
-
Constructor Detail
-
TransWrapper
public TransWrapper(AccountHandler accountHandler, TransferServiceLocal transferService, ScheduledPaymentServiceLocal scheduledPaymentService, TransactionServiceLocal transactionService, VoucherServiceLocal voucherService, ARateTypeHandler aRateHandler, DRateTypeHandler dRateHandler, Trans trans)
-
TransWrapper
protected TransWrapper()
-
-
Method Detail
-
getAccessClient
public AccessClient getAccessClient()
- Specified by:
getAccessClientin interfaceTrans
-
getAccountFee
public AccountFee getAccountFee()
-
getAmount
public BigDecimal getAmount()
-
getARate
public FormattableTimeBasedRate getARate()
-
getAwaitingAuthBy
public Collection<Object> getAwaitingAuthBy()
-
getBy
public BasicUser getBy()
-
getChannel
public Channel getChannel()
- Specified by:
getChannelin interfaceTrans
-
getComments
public String getComments()
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrencyin interfaceHasCurrency
-
getCurrencyAmount
public CurrencyAmount getCurrencyAmount()
- Specified by:
getCurrencyAmountin interfaceHasCurrencyAmount
-
getCustomValues
public Set<TransactionCustomFieldValue> getCustomValues()
- Specified by:
getCustomValuesin interfaceTrans
-
getDescription
public String getDescription()
-
getDRate
public FormattableTimeBasedRate getDRate()
-
getDueAmount
public CurrencyAmount getDueAmount()
-
getDueDate
public Date getDueDate()
-
getExpirationDate
public Date getExpirationDate()
For payment request returns null if the status is scheduled or denied, this way, we doesn't print the expiration date, like it is done in the details page. Processed status is not managed because the template show the expiration date if not exists a process date.
-
getFromAccountNumber
public String getFromAccountNumber()
-
getFromName
public String getFromName()
- Specified by:
getFromNamein interfaceTrans
-
getFromOwner
public InternalAccountOwner getFromOwner()
- Specified by:
getFromOwnerin interfaceTrans
-
getFromOwnerOrType
public Object getFromOwnerOrType()
Description copied from interface:TransWhen from a user, returns the user. When from system, returns the system account type.- Specified by:
getFromOwnerOrTypein interfaceTrans
-
getGeneratedPayment
public BasePayment getGeneratedPayment()
-
getInstallment
public Installment getInstallment()
-
getNextOccurrenceDate
public Date getNextOccurrenceDate()
-
getNextOcurrenceDate
public Date getNextOcurrenceDate()
-
getOccurrencesCount
public Object getOccurrencesCount()
-
getOccurrencesInterval
public TimeInterval getOccurrencesInterval()
-
getParentTransfer
public Transfer getParentTransfer()
-
getProcessDate
public Date getProcessDate()
-
getReceivedBy
public BasicUser getReceivedBy()
-
getScheduling
public TranslationMessageSpecification getScheduling()
-
getSchedulingDate
public Date getSchedulingDate()
-
getSingleDate
public Date getSingleDate()
-
getStatus
public Object getStatus()
-
getSubmissionDate
public Date getSubmissionDate()
-
getToAccountNumber
public String getToAccountNumber()
-
getToOwnerOrType
public Object getToOwnerOrType()
Description copied from interface:TransWhen to a user, returns the user. When to system, returns the system account type.- Specified by:
getToOwnerOrTypein interfaceTrans
-
getToPrincipalType
public PrincipalType getToPrincipalType()
-
getToPrincipalValue
public String getToPrincipalValue()
-
getTransactionFromName
public String getTransactionFromName()
-
getTransactionNumber
public String getTransactionNumber()
- Specified by:
getTransactionNumberin interfaceHasTransactionNumber
-
getTransactionToName
public String getTransactionToName()
-
getTransferFee
public TransferFee getTransferFee()
-
getTransferStatuses
public List<TransferStatus> getTransferStatuses()
-
getType
public TransferType getType()
-
getVoucherTransaction
public VoucherTransactionResultVO getVoucherTransaction()
-
isExternalPayment
public boolean isExternalPayment()
-
isPaymentRequest
public boolean isPaymentRequest()
-
isRecurringPayment
public boolean isRecurringPayment()
-
isSent
public boolean isSent()
-
isShowAmountAsTotal
public boolean isShowAmountAsTotal()
-
isShowDueAmount
public boolean isShowDueAmount()
-
isVoucherRedeem
public boolean isVoucherRedeem()
-
isVoucherTopUp
public boolean isVoucherTopUp()
-
resolveLabelForAuthorizer
public Object resolveLabelForAuthorizer(AccountOwner value)
-
-