Package org.cyclos.security.access
Class InitializationServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.access.InitializationServiceSecurity
-
- All Implemented Interfaces:
InitializationService,Service
@Security public class InitializationServiceSecurity extends BaseServiceSecurity implements InitializationService
Security 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, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description InitializationServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete 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 upprotected 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
-
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() throws FrameworkException
Description copied from interface:InitializationServiceReturns a string which can be used by browsers to correctly handle cached resources- Specified by:
getResourceCacheKeyin interfaceInitializationService- Throws:
FrameworkException
-
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
-
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
-
-