Package org.cyclos.security.system
Class LocalizationServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.system.LocalizationServiceSecurity
-
- All Implemented Interfaces:
Service,LocalizationService
@Security public class LocalizationServiceSecurity extends BaseServiceSecurity implements LocalizationService
Security layer forLocalizationService
-
-
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 LocalizationServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CountryVO>listCountries()Returns a list of country codes with their respective namesList<TimeZoneVO>listTimeZones()Returns a list with all time zonesList<TimeZoneVO>listTimeZonesByCountry(String countryCode)Returns a list of which time zones are available for a given countryprotected EntityCheck<?>resolveEntityCheck()Must be implemented in order to return theEntityCheckmanaged by this security component, or null if none-
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, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, delete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
listCountries
public List<CountryVO> listCountries() throws FrameworkException
Description copied from interface:LocalizationServiceReturns a list of country codes with their respective names- Specified by:
listCountriesin interfaceLocalizationService- Throws:
FrameworkException
-
listTimeZones
public List<TimeZoneVO> listTimeZones() throws FrameworkException
Description copied from interface:LocalizationServiceReturns a list with all time zones- Specified by:
listTimeZonesin interfaceLocalizationService- Throws:
FrameworkException
-
listTimeZonesByCountry
public List<TimeZoneVO> listTimeZonesByCountry(String countryCode) throws FrameworkException
Description copied from interface:LocalizationServiceReturns a list of which time zones are available for a given country- Specified by:
listTimeZonesByCountryin interfaceLocalizationService- 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
-
-