@Security public class AccountServiceSecurity extends BaseServiceSecurity implements AccountService
AccountService| Constructor and Description |
|---|
AccountServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAccountBalanceLimitsOverviewQuery(AccountBalanceLimitsOverviewQuery params) |
protected void |
checkAccountHistoriesOverviewQuery(AccountHistoriesOverviewQuery params) |
protected void |
checkAccountHistoryQuery(AccountHistoryQuery params) |
void |
checkTransQuery(AbstractTransQuery query) |
void |
checkViewAccounts(InternalAccountOwner owner) |
SerializableInputStream |
exportAccountHistoryToCSV(AccountHistoryQuery params)
Generates a CSV with the query result listing account history entries
|
SerializableInputStream |
exportAccountLimitsToCSV(AccountBalanceLimitsOverviewQuery params)
Generates a CSV with the query result listing account balance limits
|
SerializableInputStream |
exportHistoriesOverviewToCSV(AccountHistoriesOverviewQuery params)
Generates a CSV with the query result listing an overview of payments
|
SerializableInputStream |
exportUserBalanceToCSV(UserWithBalanceQuery params)
Generates a CSV with the query result listing the user balances
|
AccountBalanceLimitsOverviewData |
getAccountBalanceLimitsOverviewData()
Account balance limits overview data for performing searches.
|
AccountHistoriesOverviewData |
getAccountHistoriesOverviewData()
Gets the details for viewing an account histories overview
|
AccountHistoryData |
getAccountHistoryData(AccountVO account,
RateVisibility rateVisibility)
Gets the details for viewing an account history
|
AccountHistoryStatusVO |
getAccountHistoryStatus(AccountHistoryQuery params)
Returns historic status for the account
|
java.util.List<AccountWithStatusVO> |
getAccountsSummary(InternalAccountOwner owner,
DateTime dateTime)
Lists the accounts summary for the given account owner, with balances relative to the given date
|
AccountStatusVO |
getAccountStatus(AccountVO account,
DateTime date,
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(AccountVO account)
Returns permissions of what the logged user can do over the given account
|
UserAccountLimitData |
getUserAccountLimitData(AccountVO account)
Get an account limit data
|
java.util.List<AccountLimitVO> |
getUserAccountsLimits(UserLocatorVO userLocator)
Returns the user accounts with their upper and lower balance limits
|
UserWithBalanceSearchData |
getUserWithBalanceSearchData()
Returns data to search for users with balances
|
boolean |
hasAccessibleAccounts()
Returns true if the logged user has at least one account.
|
boolean |
isVisible(Account account) |
boolean |
isVisible(AccountLocator locator) |
boolean |
isVisible(InternalAccountOwner owner,
AccountType type) |
AccountWithCurrencyVO |
load(java.lang.Long id)
Loads an account by id
|
SerializableInputStream |
printAccountHistory(AccountHistoryQuery params)
Genertes a PDF with the account history entries for the given query parameters.
|
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<AccountLimitVO> |
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 account history entries for the given query parameters.
|
UsersWithBalancesResult |
searchUsersWithBalances(UserWithBalanceQuery params)
Searches for users together with their respective account balances, returning not only the users, but also an
overview
|
void |
setBalanceLimit(AccountLimitDTO data)
Change limits of an account
|
checkGuest, 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, updatepublic void checkTransQuery(AbstractTransQuery query)
public void checkViewAccounts(InternalAccountOwner owner)
public SerializableInputStream exportAccountHistoryToCSV(AccountHistoryQuery params)
AccountServiceexportAccountHistoryToCSV in interface AccountServicepublic SerializableInputStream exportAccountLimitsToCSV(AccountBalanceLimitsOverviewQuery params) throws FrameworkException
AccountServiceexportAccountLimitsToCSV in interface AccountServiceFrameworkExceptionpublic SerializableInputStream exportHistoriesOverviewToCSV(AccountHistoriesOverviewQuery params)
AccountServiceexportHistoriesOverviewToCSV in interface AccountServicepublic SerializableInputStream exportUserBalanceToCSV(UserWithBalanceQuery params)
AccountServiceexportUserBalanceToCSV in interface AccountServicepublic AccountBalanceLimitsOverviewData getAccountBalanceLimitsOverviewData() throws FrameworkException
AccountServicegetAccountBalanceLimitsOverviewData in interface AccountServiceFrameworkExceptionpublic AccountHistoriesOverviewData getAccountHistoriesOverviewData()
AccountServicegetAccountHistoriesOverviewData 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 java.util.List<AccountWithStatusVO> getAccountsSummary(InternalAccountOwner owner, DateTime dateTime) throws FrameworkException
AccountServicegetAccountsSummary in interface AccountServiceFrameworkExceptionpublic AccountStatusVO getAccountStatus(AccountVO account, DateTime date, 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(AccountVO account) throws FrameworkException
AccountServicegetPermissions in interface AccountServicePermissionDeniedException - if the given account is not managed by the authenticated userFrameworkExceptionpublic UserAccountLimitData getUserAccountLimitData(AccountVO account)
AccountServicegetUserAccountLimitData in interface AccountServicepublic java.util.List<AccountLimitVO> getUserAccountsLimits(UserLocatorVO userLocator) throws FrameworkException
AccountServicegetUserAccountsLimits in interface AccountServiceFrameworkExceptionpublic UserWithBalanceSearchData getUserWithBalanceSearchData() throws FrameworkException
AccountServicegetUserWithBalanceSearchData in interface AccountServiceFrameworkExceptionpublic boolean hasAccessibleAccounts()
throws FrameworkException
AccountServicehasAccessibleAccounts in interface AccountServiceFrameworkExceptionpublic boolean isVisible(Account account)
public boolean isVisible(AccountLocator locator)
public boolean isVisible(InternalAccountOwner owner, AccountType type)
public AccountWithCurrencyVO load(java.lang.Long id) throws EntityNotFoundException
AccountServiceload in interface AccountServiceEntityNotFoundExceptionpublic SerializableInputStream printAccountHistory(AccountHistoryQuery params)
AccountServiceprintAccountHistory in interface AccountServicepublic Page<AccountLimitVO> searchAccountBalanceLimitsOverview(AccountBalanceLimitsOverviewQuery params)
AccountServicesearchAccountBalanceLimitsOverview in interface AccountServicepublic Page<AccountHistoryOverviewEntryVO> searchAccountHistoriesOverview(AccountHistoriesOverviewQuery params)
AccountServicesearchAccountHistoriesOverview in interface AccountServicepublic Page<AccountHistoryEntryVO> searchAccountHistory(AccountHistoryQuery params)
AccountServicesearchAccountHistory in interface AccountServicepublic UsersWithBalancesResult searchUsersWithBalances(UserWithBalanceQuery params) throws FrameworkException
AccountServicesearchUsersWithBalances in interface AccountServiceFrameworkExceptionpublic void setBalanceLimit(AccountLimitDTO data)
AccountServicesetBalanceLimit in interface AccountServiceprotected void checkAccountBalanceLimitsOverviewQuery(AccountBalanceLimitsOverviewQuery params)
protected void checkAccountHistoriesOverviewQuery(AccountHistoriesOverviewQuery params)
protected void checkAccountHistoryQuery(AccountHistoryQuery params)
protected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity