@Security public class TransactionFeedbackServiceSecurity extends CRUDServiceSecurity<TransactionFeedbackDTO,TransactionFeedback,TransactionFeedbackData,java.lang.Long> implements TransactionFeedbackService
TransactionFeedbackServiceentityClass| Constructor and Description |
|---|
TransactionFeedbackServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCreateNew(java.lang.Long transactionId)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
java.lang.Long |
comment(java.lang.Long transactionId,
ReferenceLevel level,
java.lang.String comment)
Creates or edits the comments for the feedback of the given payment (be it a transfer os scheduled payment)
|
protected void |
customizeData(TransactionFeedbackData data)
Can be overridden in order to process the returned data object for the given entity
|
boolean |
doHasManageAccess(TransactionFeedback entity)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(TransactionFeedback entity)
Should be implemented in order to return whether the caller is allowed to view the given entity.
|
protected TransactionFeedbackServiceLocal |
getImplementation()
Should be implemented in order to return the actual implementation of the service
|
TransactionFeedbackSearchData |
getSearchData(TransactionFeedbackQuery query)
Returns data used for search, like results and statistics
|
ReferenceStatisticsVO |
getStatistics(TransactionFeedbackQuery query)
Returns references statistics according to the given query
|
TransactionFeedbackVO |
getTransactionFeedback(java.lang.Long transactionId)
Returns the transaction feedback related to the given payment id
|
boolean |
isAccessible(SessionData sessionData,
TransactionFeedback entity)
Must be implemented in order to determine whether the given entity is accessible for the given session data.
|
java.util.List<UserVO> |
listIgnoredUsers()
Returns all users ignored for feedbacks for the logged user
|
boolean |
markAsIgnored(UserLocatorVO locator,
boolean ignored)
Adds/Removes the given user to/from the logged user's ignore list for feedbacks.
|
java.lang.Long |
reply(java.lang.Long transactionId,
java.lang.String replyComments)
Creates or edits the comments for the feedback of the given payment (be it a transfer os scheduled payment)
|
Page<TransactionFeedbackVO> |
search(TransactionFeedbackQuery query)
Searches for transfers feedbacks according to the given query
|
Page<TransactionVO> |
searchTransactionsAwaitingFeedback(TransactionsAwaitingFeedbackQuery query)
Searches for transactions awaiting feedback by the given user
|
canPerformOperation, canViewHistoryLog, checkManageAccess, checkOperation, checkViewAccess, find, getConfirmationPasswordInputForRemove, getData, getDataForNew, getEntityClass, hasManageAccess, hasViewAccess, load, onBeforeSave, remove, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveEntityCheck, save, saveWithConfirmationPasswordcheckGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getAccountHandler, getAuthHandler, getBaseEntityManagerHandler, getChannelConfiguration, getConfiguration, getConversionHandler, getCustomFieldValueHandler, getEntityManagerHandler, getGroupsHandler, getLoggedBasicUser, getLoggedUser, getProducts, getProductsHandler, getReportHandler, getTranslatedName, getTranslatedValue, getUserLocatorHandler, getValidationResult, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getConfigurationHandler, getDataTranslationHandler, getFormatter, getFormatter, getFormatter, getLogger, getNotificationHandler, getProfileFieldHandler, getRemoteAddress, getSessionData, getTransactionHandler, getTranslationHandler, message, message, persist, processBatch, refresh, remove, subQuery, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getDataForNew, load, remove, removeAll, savepublic java.lang.Long comment(java.lang.Long transactionId,
ReferenceLevel level,
java.lang.String comment)
throws FrameworkException,
IllegalActionException
TransactionFeedbackServicecomment in interface TransactionFeedbackServiceIllegalActionException - When the given payment cannot receive a feedback comment (feedbacks not used,
already replied or timed out)FrameworkExceptionpublic boolean doHasManageAccess(TransactionFeedback entity)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<TransactionFeedbackDTO,TransactionFeedback,TransactionFeedbackData,java.lang.Long>public boolean doHasViewAccess(TransactionFeedback entity)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<TransactionFeedbackDTO,TransactionFeedback,TransactionFeedbackData,java.lang.Long>public TransactionFeedbackSearchData getSearchData(TransactionFeedbackQuery query) throws FrameworkException
TransactionFeedbackServicegetSearchData in interface TransactionFeedbackServiceFrameworkExceptionpublic ReferenceStatisticsVO getStatistics(TransactionFeedbackQuery query)
TransactionFeedbackServicegetStatistics in interface TransactionFeedbackServicepublic TransactionFeedbackVO getTransactionFeedback(java.lang.Long transactionId) throws FrameworkException
TransactionFeedbackServicegetTransactionFeedback in interface TransactionFeedbackServiceFrameworkExceptionpublic boolean isAccessible(SessionData sessionData, TransactionFeedback entity)
CRUDServiceSecurityCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity is
CRUDServiceSecurity.hasViewAccess(BaseEntity), this method
should return false.isAccessible in class CRUDServiceSecurity<TransactionFeedbackDTO,TransactionFeedback,TransactionFeedbackData,java.lang.Long>public java.util.List<UserVO> listIgnoredUsers()
TransactionFeedbackServicelistIgnoredUsers in interface TransactionFeedbackServicepublic boolean markAsIgnored(UserLocatorVO locator, boolean ignored)
TransactionFeedbackServicemarkAsIgnored in interface TransactionFeedbackServicepublic java.lang.Long reply(java.lang.Long transactionId,
java.lang.String replyComments)
throws FrameworkException,
IllegalActionException
TransactionFeedbackServicereply in interface TransactionFeedbackServiceIllegalActionException - When the given payment cannot receive a feedback reply (feedbacks not used or
timed out)FrameworkExceptionpublic Page<TransactionFeedbackVO> search(TransactionFeedbackQuery query)
TransactionFeedbackServicesearch in interface TransactionFeedbackServicepublic Page<TransactionVO> searchTransactionsAwaitingFeedback(TransactionsAwaitingFeedbackQuery query)
TransactionFeedbackServicesearchTransactionsAwaitingFeedback in interface TransactionFeedbackServiceprotected void checkCreateNew(java.lang.Long transactionId)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<TransactionFeedbackDTO,TransactionFeedback,TransactionFeedbackData,java.lang.Long>protected void customizeData(TransactionFeedbackData data)
CRUDServiceSecuritycustomizeData in class CRUDServiceSecurity<TransactionFeedbackDTO,TransactionFeedback,TransactionFeedbackData,java.lang.Long>protected TransactionFeedbackServiceLocal getImplementation()
CRUDServiceSecuritygetImplementation in class CRUDServiceSecurity<TransactionFeedbackDTO,TransactionFeedback,TransactionFeedbackData,java.lang.Long>