Package org.cyclos.impl.users
Class UserRegionalSettingsServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.users.UserRegionalSettingsServiceImpl
-
- All Implemented Interfaces:
UserRegionalSettingsServiceLocal,Service,UserRegionalSettingsService
@Service public class UserRegionalSettingsServiceImpl extends BaseServiceImpl implements UserRegionalSettingsServiceLocal
Implementation forUserRegionalSettingsService
-
-
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 UserRegionalSettingsServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegionalSettingsDTOget()Returns the regional settings for the current userLocalesDatagetLocalesData()Returns the currently selected locale, as well as the allowed onesprotected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkvoidsave(RegionalSettingsDTO settings)Saves the regional settings for the current user-
Methods inherited from class org.cyclos.impl.BaseServiceImpl
initializeNetworkMappings
-
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
-
get
public RegionalSettingsDTO get() throws FrameworkException
Description copied from interface:UserRegionalSettingsServiceReturns the regional settings for the current user- Specified by:
getin interfaceUserRegionalSettingsService- Throws:
FrameworkException
-
getLocalesData
public LocalesData getLocalesData() throws FrameworkException
Description copied from interface:UserRegionalSettingsServiceReturns the currently selected locale, as well as the allowed ones- Specified by:
getLocalesDatain interfaceUserRegionalSettingsService- Throws:
FrameworkException
-
save
public void save(RegionalSettingsDTO settings) throws FrameworkException
Description copied from interface:UserRegionalSettingsServiceSaves the regional settings for the current user- Specified by:
savein interfaceUserRegionalSettingsService- Throws:
FrameworkException
-
registerNetworkMappings
protected void registerNetworkMappings(NetworkPathRegistry networkPathRegistry)
Description copied from class:BaseServiceImplNeeds to be overridden by subclasses to register the path up to the network- Specified by:
registerNetworkMappingsin classBaseServiceImpl
-
-