Package org.cyclos.impl.system
Class SetupServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.system.SetupServiceImpl
-
- All Implemented Interfaces:
SetupServiceLocal,Service,SetupService
@Service public class SetupServiceImpl extends BaseServiceImpl implements SetupServiceLocal
Implementation forSetupService
-
-
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 SetupServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetupDatagetSetupData()Returns data used for the system setupbooleanisSetupDone()Returns whether the instance setup has been doneprotected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkvoidsetup(SetupDTO params)Performs the Cyclos instance setup-
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
-
getSetupData
public SetupData getSetupData() throws FrameworkException
Description copied from interface:SetupServiceLocalReturns data used for the system setup- Specified by:
getSetupDatain interfaceSetupServiceLocal- Throws:
IllegalActionException- When the setup has already been doneFrameworkException
-
isSetupDone
public boolean isSetupDone() throws FrameworkExceptionDescription copied from interface:SetupServiceLocalReturns whether the instance setup has been done- Specified by:
isSetupDonein interfaceSetupServiceLocal- Throws:
FrameworkException
-
setup
public void setup(SetupDTO params) throws FrameworkException, LicenseServerOfflineException, LicenseAuthenticationException
Description copied from interface:SetupServicePerforms the Cyclos instance setup- Specified by:
setupin interfaceSetupService- Throws:
IllegalActionException- If the instance setup has already been performedFrameworkExceptionLicenseServerOfflineExceptionLicenseAuthenticationException
-
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
-
-