Package org.cyclos.impl.mobile
Class InternalMobileServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.mobile.InternalMobileServiceImpl
-
- All Implemented Interfaces:
InternalMobileServiceLocal,InternalMobileService,Service
@Component public class InternalMobileServiceImpl extends BaseServiceImpl implements InternalMobileServiceLocal
Implementation forInternalMobileServiceImpl
-
-
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, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description InternalMobileServiceImpl()
-
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=ZBCXYZContentHelpergetContentHandler(BaseGetVersionedDataParams params)MobileGuestDatagetGuestData(Long deviceId, PinLocatorVO pinLocator, GetVersionedDataParams params)Returns data for mobile when in guest mode (before logging in).MobileUserDatagetUserData(GetMobileUserDataParams params)Returns data for mobile when in user mode (either logged in or connected via POS).protected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the network-
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, 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
-
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
-
getContentHandler
public ContentHelper getContentHandler(BaseGetVersionedDataParams params)
- Specified by:
getContentHandlerin interfaceInternalMobileServiceLocal
-
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.- Throws:
FrameworkException
-
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
-
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
-
-