Package org.cyclos.services.access
Interface InitializationService
-
- All Superinterfaces:
Service
- All Known Subinterfaces:
InitializationServiceLocal
public interface InitializationService extends Service
Used to retrieve data used by Cyclos client application
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BasicInitializationDatagetBasicInitializationData()Returns basic data to bootstrap the client applicationBasicInitializationWithContentDatagetBasicInitializationWithContentData()Returns basic data to bootstrap the client application, together with some additional contentHomeDatagetHomeData()Returns data for the home pageInitializationDatagetInitializationData(Long deviceId, PinLocatorVO pinLocator)Returns all data which is used when the application is loaded.StringgetResourceCacheKey()Returns a string which can be used by browsers to correctly handle cached resourcesvoidping()May be invoked just to make sure the server is up
-
-
-
Method Detail
-
getBasicInitializationData
BasicInitializationData getBasicInitializationData() throws FrameworkException
Returns basic data to bootstrap the client application- Throws:
FrameworkException
-
getBasicInitializationWithContentData
BasicInitializationWithContentData getBasicInitializationWithContentData() throws FrameworkException
Returns basic data to bootstrap the client application, together with some additional content- Throws:
FrameworkException
-
getHomeData
HomeData getHomeData() throws FrameworkException
Returns data for the home page- Throws:
FrameworkException
-
getInitializationData
InitializationData getInitializationData(Long deviceId, PinLocatorVO pinLocator) throws FrameworkException
Returns all data which is used when the application is loaded. If a trusted device id is given then a pending device confirmation will be created in a new (read-write) transaction and will be validated at login to create a trusted session. If a device pin locator is given then information about if it's still exists will be returned.- Throws:
FrameworkException
-
getResourceCacheKey
String getResourceCacheKey() throws FrameworkException
Returns a string which can be used by browsers to correctly handle cached resources- Throws:
FrameworkException
-
ping
void ping() throws FrameworkException
May be invoked just to make sure the server is up- Throws:
FrameworkException
-
-