@Security public class AccountServiceSecurity extends BaseServiceSecurity implements AccountService
AccountServiceauthHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandleraccountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandlerMAX_BALANCE_HISTORY_DATAPOINTS| Constructor and Description |
|---|
AccountServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAccessibleAccounts(InternalAccountOwner owner) |
protected void |
checkAccountHistoriesOverviewQuery(AccountHistoriesOverviewQuery params) |
protected void |
checkAccountHistoryQuery(AccountHistoryQuery params) |
protected void |
checkAccountLimitsOverviewQuery(AccountLimitsOverviewQuery params) |
void |
checkTransQuery(AbstractTransQuery query) |
FileInfo |
exportAccountBalanceLimitsOverview(@NotNull ExportFormatVO format,
@NotNull AccountBalanceLimitsOverviewQuery params)
Generates a file with the query result listing the account balance limits
|
FileInfo |
exportAccountHistoriesOverview(@NotNull ExportFormatVO format,
@NotNull AccountHistoriesOverviewQuery params)
Exports the account histories overview result to file
|
FileInfo |
exportAccountHistory(@NotNull ExportFormatVO format,
@NotNull AccountHistoryQuery params)
Exports the account history result to file
|
FileInfo |
exportAccountPaymentAmountLimitsOverview(@NotNull ExportFormatVO format,
@NotNull AccountPaymentAmountLimitsOverviewQuery params)
Generates a file with the query result listing the account balance limits
|
FileInfo |
exportUsersWithBalances(@NotNull ExportFormatVO format,
@NotNull UserWithBalanceQuery params)
Generates a file with the query result listing the user balances
|
AccountBalanceHistoryVO |
getAccountBalanceHistory(@NotNull AccountBalanceHistoryParams params)
Returns the balance at each data point for a given account.
|
AccountLimitsOverviewData |
getAccountBalanceLimitsOverviewData()
Account limits (balance and payment amounts) overview data for performing searches.
|
AccountHistoriesOverviewData |
getAccountHistoriesOverviewData()
Gets the details for viewing an account histories overview
|
AccountHistoriesOverviewStatusVO |
getAccountHistoriesOverviewStatus(AccountHistoriesOverviewQuery params)
Returns the statuses by currency for the result of searching transactions with the given parameters
|
AccountHistoryData |
getAccountHistoryData(AccountVO account,
RateVisibility rateVisibility)
Gets the details for viewing an account history
|
AccountHistoryStatusVO |
getAccountHistoryStatus(AccountHistoryQuery params)
Returns historic status for the account
|
AccountLimitsOverviewData |
getAccountPaymentAmountLimitsOverviewData()
Account limits (balance and payment amounts) overview data for performing searches.
|
java.util.List<AccountWithStatusVO> |
getAccountsSummary(InternalAccountOwner owner,
DateTime dateTime)
Lists the visible accounts summary for the given account owner, with balances relative to the given date
|
AccountStatusVO |
getAccountStatus(AccountVO account,
DateTime dateTime,
RateVisibility rateVisibility)
Gets the status for the given account
|
AccountWithStatusVO |
getAccountWithStatus(AccountVO account,
DateTime dateTime)
Returns the information of an account, with its status, by owner and type
|
AccountPermissionsData |
getPermissions(@NotNull AccountVO account)
Returns permissions of what the logged user can do over the given account
|
UserAccountBalanceLimitData |
getUserAccountBalanceLimitData(AccountVO vo)
Get an account limit data
|
UserAccountPaymentAmountLimitData |
getUserAccountPaymentAmountLimitData(AccountVO vo)
Get an account payment amount limit data
|
java.util.List<AccountBalanceLimitVO> |
getUserAccountsBalanceLimits(UserLocatorVO userLocator)
Returns the user accounts with their upper and lower balance limits
|
java.util.List<AccountPaymentAmountLimitVO> |
getUserAccountsPaymentAmountLimits(UserLocatorVO userLocator)
Returns the user accounts with their upper and lower balance limits
|
UsersWithBalancesOverview |
getUsersWithBalancesOverview(UserWithBalanceQuery params)
Returns the overview of users with balances according to the given query
|
UserWithBalanceSearchData |
getUserWithBalanceSearchData()
Returns data to search for users with balances
|
boolean |
isAccessible(Account account) |
boolean |
isAccessible(AccountLocator locator) |
boolean |
isAccessible(AccountVO account) |
boolean |
isAccessible(InternalAccountOwner owner,
AccountType type) |
AccountWithCurrencyVO |
load(java.lang.Long id)
Loads an account by id
|
protected org.cyclos.impl.access.EntityCheck<?> |
resolveEntityCheck()
Must be implemented in order to return the
EntityCheck managed by this security component, or null if
none |
Page<AccountBalanceLimitVO> |
searchAccountBalanceLimitsOverview(AccountBalanceLimitsOverviewQuery params)
Overview search of account balance limits
|
Page<AccountHistoryOverviewEntryVO> |
searchAccountHistoriesOverview(AccountHistoriesOverviewQuery params)
Account histories overview filtered by the specified query parameters.
|
Page<AccountHistoryEntryVO> |
searchAccountHistory(AccountHistoryQuery params)
Searches the history entries of a required visible account according to the given query parameters.
|
Page<AccountPaymentAmountLimitVO> |
searchAccountPaymentAmountLimitsOverview(AccountPaymentAmountLimitsOverviewQuery params)
Overview search of account balance limits
|
Page<UserWithBalanceVO> |
searchUsersWithBalances(UserWithBalanceQuery params)
Searches for users together with their respective account balances
|
void |
setBalanceLimit(AccountBalanceLimitDTO data)
Change limits of an account
|
void |
setPaymentAmountLimit(AccountPaymentAmountLimitDTO data)
Change limits of an account
|
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, updatepublic void checkAccessibleAccounts(InternalAccountOwner owner)
public void checkTransQuery(AbstractTransQuery query)
public FileInfo exportAccountBalanceLimitsOverview(@NotNull @NotNull ExportFormatVO format, @NotNull @NotNull AccountBalanceLimitsOverviewQuery params) throws FrameworkException
AccountServiceexportAccountBalanceLimitsOverview in interface AccountServiceFrameworkExceptionpublic FileInfo exportAccountHistoriesOverview(@NotNull @NotNull ExportFormatVO format, @NotNull @NotNull AccountHistoriesOverviewQuery params) throws FrameworkException
AccountServiceexportAccountHistoriesOverview in interface AccountServiceFrameworkExceptionpublic FileInfo exportAccountHistory(@NotNull @NotNull ExportFormatVO format, @NotNull @NotNull AccountHistoryQuery params) throws FrameworkException
AccountServiceexportAccountHistory in interface AccountServiceFrameworkExceptionpublic FileInfo exportAccountPaymentAmountLimitsOverview(@NotNull @NotNull ExportFormatVO format, @NotNull @NotNull AccountPaymentAmountLimitsOverviewQuery params) throws FrameworkException
AccountServiceexportAccountPaymentAmountLimitsOverview in interface AccountServiceFrameworkExceptionpublic FileInfo exportUsersWithBalances(@NotNull @NotNull ExportFormatVO format, @NotNull @NotNull UserWithBalanceQuery params) throws FrameworkException
AccountServiceexportUsersWithBalances in interface AccountServiceFrameworkExceptionpublic AccountBalanceHistoryVO getAccountBalanceHistory(@NotNull @NotNull AccountBalanceHistoryParams params) throws FrameworkException
AccountServicegetAccountBalanceHistory in interface AccountServiceFrameworkExceptionpublic AccountLimitsOverviewData getAccountBalanceLimitsOverviewData() throws FrameworkException
AccountServicegetAccountBalanceLimitsOverviewData in interface AccountServiceFrameworkExceptionpublic AccountHistoriesOverviewData getAccountHistoriesOverviewData()
AccountServicegetAccountHistoriesOverviewData in interface AccountServicepublic AccountHistoriesOverviewStatusVO getAccountHistoriesOverviewStatus(AccountHistoriesOverviewQuery params)
AccountServicegetAccountHistoriesOverviewStatus in interface AccountServicepublic AccountHistoryData getAccountHistoryData(AccountVO account, RateVisibility rateVisibility)
AccountServicegetAccountHistoryData in interface AccountServicerateVisibility - if null RateVisibility.NOT is usedpublic AccountHistoryStatusVO getAccountHistoryStatus(AccountHistoryQuery params) throws FrameworkException
AccountServicegetAccountHistoryStatus in interface AccountServiceFrameworkExceptionpublic AccountLimitsOverviewData getAccountPaymentAmountLimitsOverviewData() throws FrameworkException
AccountServicegetAccountPaymentAmountLimitsOverviewData in interface AccountServiceFrameworkExceptionpublic java.util.List<AccountWithStatusVO> getAccountsSummary(InternalAccountOwner owner, DateTime dateTime) throws FrameworkException
AccountServicegetAccountsSummary in interface AccountServiceFrameworkExceptionpublic AccountStatusVO getAccountStatus(AccountVO account, DateTime dateTime, RateVisibility rateVisibility)
AccountServicegetAccountStatus in interface AccountServicerateVisibility - if null RateVisibility.NOT is usedpublic AccountWithStatusVO getAccountWithStatus(AccountVO account, DateTime dateTime) throws FrameworkException
AccountServicegetAccountWithStatus in interface AccountServiceFrameworkExceptionpublic AccountPermissionsData getPermissions(@NotNull @NotNull AccountVO account) throws FrameworkException
AccountServicegetPermissions in interface AccountServicePermissionDeniedException - if the given account is not managed by the authenticated userFrameworkExceptionpublic UserAccountBalanceLimitData getUserAccountBalanceLimitData(AccountVO vo)
AccountServicegetUserAccountBalanceLimitData in interface AccountServicepublic UserAccountPaymentAmountLimitData getUserAccountPaymentAmountLimitData(AccountVO vo)
AccountServicegetUserAccountPaymentAmountLimitData in interface AccountServicepublic java.util.List<AccountBalanceLimitVO> getUserAccountsBalanceLimits(UserLocatorVO userLocator) throws FrameworkException
AccountServicegetUserAccountsBalanceLimits in interface AccountServiceFrameworkExceptionpublic java.util.List<AccountPaymentAmountLimitVO> getUserAccountsPaymentAmountLimits(UserLocatorVO userLocator) throws FrameworkException
AccountServicegetUserAccountsPaymentAmountLimits in interface AccountServiceFrameworkExceptionpublic UsersWithBalancesOverview getUsersWithBalancesOverview(UserWithBalanceQuery params) throws FrameworkException, QueryParseException
AccountServicegetUsersWithBalancesOverview in interface AccountServiceFrameworkExceptionQueryParseExceptionpublic UserWithBalanceSearchData getUserWithBalanceSearchData() throws FrameworkException
AccountServicegetUserWithBalanceSearchData in interface AccountServiceFrameworkExceptionpublic boolean isAccessible(Account account)
public boolean isAccessible(AccountLocator locator)
public boolean isAccessible(AccountVO account)
public boolean isAccessible(InternalAccountOwner owner, AccountType type)
public AccountWithCurrencyVO load(java.lang.Long id) throws EntityNotFoundException
AccountServiceload in interface AccountServiceEntityNotFoundExceptionpublic Page<AccountBalanceLimitVO> searchAccountBalanceLimitsOverview(AccountBalanceLimitsOverviewQuery params)
AccountServicesearchAccountBalanceLimitsOverview in interface AccountServicepublic Page<AccountHistoryOverviewEntryVO> searchAccountHistoriesOverview(AccountHistoriesOverviewQuery params)
AccountServicesearchAccountHistoriesOverview in interface AccountServicepublic Page<AccountHistoryEntryVO> searchAccountHistory(AccountHistoryQuery params)
AccountServiceAccountService.searchAccountHistoriesOverview(AccountHistoriesOverviewQuery)searchAccountHistory in interface AccountServicepublic Page<AccountPaymentAmountLimitVO> searchAccountPaymentAmountLimitsOverview(AccountPaymentAmountLimitsOverviewQuery params)
AccountServicesearchAccountPaymentAmountLimitsOverview in interface AccountServicepublic Page<UserWithBalanceVO> searchUsersWithBalances(UserWithBalanceQuery params) throws FrameworkException
AccountServicesearchUsersWithBalances in interface AccountServiceFrameworkExceptionpublic void setBalanceLimit(AccountBalanceLimitDTO data)
AccountServicesetBalanceLimit in interface AccountServicepublic void setPaymentAmountLimit(AccountPaymentAmountLimitDTO data)
AccountServicesetPaymentAmountLimit in interface AccountServiceprotected void checkAccountHistoriesOverviewQuery(AccountHistoriesOverviewQuery params)
protected void checkAccountHistoryQuery(AccountHistoryQuery params)
protected void checkAccountLimitsOverviewQuery(AccountLimitsOverviewQuery params)
protected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity