Package org.cyclos.security.mobile
Class InternalMobileServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.mobile.InternalMobileServiceSecurity
-
- All Implemented Interfaces:
InternalMobileService,Service
@Security public class InternalMobileServiceSecurity extends BaseServiceSecurity implements InternalMobileService
Security layer forInternalMobileService
-
-
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 InternalMobileServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgenerateLinkForMobile(String urlFilePart)Generates a link to be opened by the Mobile Application for the given Url file part.
E.g cyclos://forgotPassword?key=ZBCXYZMobileGuestDatagetGuestData(Long deviceId, PinLocatorVO pinLocator, GetVersionedDataParams params)Returns data for mobile when in guest mode (before logging in).StringgetRecaptchaKey()Returns the Recaptcha key for the current configurationMobileUserDatagetUserData(GetMobileUserDataParams params)Returns data for mobile when in user mode (either logged in or connected via POS).protected 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, 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
-
generateLinkForMobile
public String generateLinkForMobile(String urlFilePart)
Description copied from interface:InternalMobileServiceGenerates a link to be opened by the Mobile Application for the given Url file part.
E.g cyclos://forgotPassword?key=ZBCXYZ- Specified by:
generateLinkForMobilein interfaceInternalMobileService
-
getGuestData
public MobileGuestData getGuestData(Long deviceId, PinLocatorVO pinLocator, GetVersionedDataParams params) throws FrameworkException
Description copied from interface:InternalMobileServiceReturns data for mobile when in guest mode (before logging in). The theme will be returned by its components: base definitions, advanced definitions and custom style.- Specified by:
getGuestDatain interfaceInternalMobileService- Parameters:
deviceId- (Optional) the trusted device id to query if it's still exists.pinLocator- (Optional) the device pin locator to query if it's still exists and has not expired.- Throws:
FrameworkException
-
getRecaptchaKey
public String getRecaptchaKey()
Description copied from interface:InternalMobileServiceReturns the Recaptcha key for the current configuration- Specified by:
getRecaptchaKeyin interfaceInternalMobileService
-
getUserData
public MobileUserData getUserData(GetMobileUserDataParams params) throws FrameworkException
Description copied from interface:InternalMobileServiceReturns data for mobile when in user mode (either logged in or connected via POS). The theme will be returned by its components: base definitions, advanced definitions and custom style.- Specified by:
getUserDatain interfaceInternalMobileService- 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
-
-