Package org.cyclos.security.banking
Class UserAccountVisibilitySettingsServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.banking.UserAccountVisibilitySettingsServiceSecurity
-
- All Implemented Interfaces:
UserAccountVisibilitySettingsService,Service
@Security public class UserAccountVisibilitySettingsServiceSecurity extends BaseServiceSecurity implements UserAccountVisibilitySettingsService
-
-
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 UserAccountVisibilitySettingsServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserAccountVisibilitySettingsDatagetData(UserLocatorVO locator)Returns data for the given user or the logged if locator is null.protected EntityCheck<?>resolveEntityCheck()Must be implemented in order to return theEntityCheckmanaged by this security component, or null if nonevoidsave(UserLocatorVO locator, Set<UserAccountTypeVO> visibleAccountTypes)voidsetAsVisible(UserLocatorVO locator, UserAccountTypeVO accountType, boolean visible)Sets a list of account types as visible/hidden for a user.-
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
-
getData
public UserAccountVisibilitySettingsData getData(UserLocatorVO locator) throws FrameworkException
Description copied from interface:UserAccountVisibilitySettingsServiceReturns data for the given user or the logged if locator is null.- Specified by:
getDatain interfaceUserAccountVisibilitySettingsService- Throws:
FrameworkException
-
save
public void save(UserLocatorVO locator, Set<UserAccountTypeVO> visibleAccountTypes) throws FrameworkException
- Specified by:
savein interfaceUserAccountVisibilitySettingsService- Throws:
FrameworkException
-
setAsVisible
public void setAsVisible(UserLocatorVO locator, UserAccountTypeVO accountType, boolean visible) throws FrameworkException
Description copied from interface:UserAccountVisibilitySettingsServiceSets a list of account types as visible/hidden for a user. If the locator is null then it sets the account types for the logged user.- Specified by:
setAsVisiblein interfaceUserAccountVisibilitySettingsService- 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
-
-