Package org.cyclos.impl.access
Class InitializationServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.access.InitializationServiceImpl
-
- All Implemented Interfaces:
InitializationServiceLocal,InitializationService,Service
@Service public class InitializationServiceImpl extends BaseServiceImpl implements InitializationServiceLocal
Implementation forInitializationService
-
-
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 InitializationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T extends RecordType>
voidaddSingleFormRecords(List<RecordVO> records, List<T> types, User user)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 resourcesSortedSet<String>getSvgIconNames()Returns the names of SVG icons used by entities, such as ad categories, records, custom operations, custom wizards, custom pages, etc.booleanisHideUserSearchInMenu()Returns whether the search users menu must be hidden for the current user.voidping()May be invoked just to make sure the server is upprotected 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, 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
-
getBasicInitializationData
public BasicInitializationData getBasicInitializationData() throws FrameworkException
Description copied from interface:InitializationServiceReturns basic data to bootstrap the client application- Specified by:
getBasicInitializationDatain interfaceInitializationService- Throws:
FrameworkException
-
getBasicInitializationWithContentData
public BasicInitializationWithContentData getBasicInitializationWithContentData() throws FrameworkException
Description copied from interface:InitializationServiceReturns basic data to bootstrap the client application, together with some additional content- Specified by:
getBasicInitializationWithContentDatain interfaceInitializationService- Throws:
FrameworkException
-
getHomeData
public HomeData getHomeData()
Description copied from interface:InitializationServiceReturns data for the home page- Specified by:
getHomeDatain interfaceInitializationService
-
getInitializationData
public InitializationData getInitializationData(Long deviceId, PinLocatorVO pinLocator)
Description copied from interface:InitializationServiceReturns 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.- Specified by:
getInitializationDatain interfaceInitializationService
-
getResourceCacheKey
public String getResourceCacheKey()
Description copied from interface:InitializationServiceReturns a string which can be used by browsers to correctly handle cached resources- Specified by:
getResourceCacheKeyin interfaceInitializationService
-
getSvgIconNames
public SortedSet<String> getSvgIconNames()
Description copied from interface:InitializationServiceLocalReturns the names of SVG icons used by entities, such as ad categories, records, custom operations, custom wizards, custom pages, etc.- Specified by:
getSvgIconNamesin interfaceInitializationServiceLocal
-
isHideUserSearchInMenu
public boolean isHideUserSearchInMenu()
Description copied from interface:InitializationServiceLocalReturns whether the search users menu must be hidden for the current user.- Specified by:
isHideUserSearchInMenuin interfaceInitializationServiceLocal
-
ping
public void ping() throws FrameworkExceptionDescription copied from interface:InitializationServiceMay be invoked just to make sure the server is up- Specified by:
pingin interfaceInitializationService- Throws:
FrameworkException
-
addSingleFormRecords
protected <T extends RecordType> void addSingleFormRecords(List<RecordVO> records, List<T> types, User user)
-
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
-
-