Package org.cyclos.security.banking
Class AccountFeeLogServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.banking.AccountFeeLogServiceSecurity
-
- All Implemented Interfaces:
AccountFeeLogService,Service
@Security public class AccountFeeLogServiceSecurity extends BaseServiceSecurity implements AccountFeeLogService
Security layer forAccountFeeLogService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description AccountFeeLogServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountFeeLogcheckVisible(Long id)voidcheckVisible(AccountFee fee)AccountFeeLogDatagetData(Long id)Returns data about an account fee executionAccountFeeExecutionSearchDatagetFeeExecutionsSearchData()Returns data for searching account fee executionsAccountFeeLogsSearchDatagetSearchData(AccountFeeVO accountFeeVO)Returns data to search account fee logs of the given account feebooleanisVisible(AccountFeeLog entity)voidrechargeFailed(Long id)Starts recharging a fee which has finished and some failed usersprotected EntityCheck<?>resolveEntityCheck()Must be implemented in order to return theEntityCheckmanaged by this security component, or null if noneLongrunNow(AccountFeeVO accountFeeVO)Starts charging a manual fee, returning the resulting account fee log idPage<AccountFeeLogVO>search(AccountFeeLogQuery query)Searches for account fee logs according to the given criteriaPage<AccountFeeExecutionVO>searchFeeExecutions(AccountFeeQuery query)Search for visible account fees, together with the previous and next execution data-
Methods inherited from class org.cyclos.security.BaseServiceSecurity
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initialize
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, 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, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
checkVisible
public void checkVisible(AccountFee fee)
-
checkVisible
public AccountFeeLog checkVisible(Long id)
-
getData
public AccountFeeLogData getData(Long id) throws FrameworkException
Description copied from interface:AccountFeeLogServiceReturns data about an account fee execution- Specified by:
getDatain interfaceAccountFeeLogService- Throws:
FrameworkException
-
getFeeExecutionsSearchData
public AccountFeeExecutionSearchData getFeeExecutionsSearchData() throws FrameworkException
Description copied from interface:AccountFeeLogServiceReturns data for searching account fee executions- Specified by:
getFeeExecutionsSearchDatain interfaceAccountFeeLogService- Throws:
FrameworkException
-
getSearchData
public AccountFeeLogsSearchData getSearchData(AccountFeeVO accountFeeVO) throws FrameworkException
Description copied from interface:AccountFeeLogServiceReturns data to search account fee logs of the given account fee- Specified by:
getSearchDatain interfaceAccountFeeLogService- Throws:
FrameworkException
-
isVisible
public boolean isVisible(AccountFeeLog entity)
-
rechargeFailed
public void rechargeFailed(Long id) throws FrameworkException
Description copied from interface:AccountFeeLogServiceStarts recharging a fee which has finished and some failed users- Specified by:
rechargeFailedin interfaceAccountFeeLogService- Throws:
IllegalActionException- If the given account fee log is not finished or doesn't have any failed usersFrameworkException
-
runNow
public Long runNow(AccountFeeVO accountFeeVO) throws FrameworkException
Description copied from interface:AccountFeeLogServiceStarts charging a manual fee, returning the resulting account fee log id- Specified by:
runNowin interfaceAccountFeeLogService- Throws:
IllegalActionException- If the given fee is disabled or not manualFrameworkException
-
search
public Page<AccountFeeLogVO> search(AccountFeeLogQuery query) throws FrameworkException
Description copied from interface:AccountFeeLogServiceSearches for account fee logs according to the given criteria- Specified by:
searchin interfaceAccountFeeLogService- Throws:
FrameworkException
-
searchFeeExecutions
public Page<AccountFeeExecutionVO> searchFeeExecutions(AccountFeeQuery query) throws FrameworkException
Description copied from interface:AccountFeeLogServiceSearch for visible account fees, together with the previous and next execution data- Specified by:
searchFeeExecutionsin interfaceAccountFeeLogService- Throws:
FrameworkException
-
resolveEntityCheck
protected EntityCheck<?> resolveEntityCheck()
Description copied from class:BaseServiceSecurityMust be implemented in order to return theEntityCheckmanaged by this security component, or null if none- Specified by:
resolveEntityCheckin classBaseServiceSecurity
-
-