@Manager public class DefaultModelerDashboardManager extends Object implements ModelerDashboardManager
Default implementation of the ModelerDashboardManager
interface.
Constructor and Description |
---|
DefaultModelerDashboardManager(FrontendObjectService frontendObjectService,
WorkObjectService workObjectService,
ModelStateHelper modelStateHelper,
ModelService modelService,
AmbiguousIdHelper ambiguousIdHelper,
NotificationService notificationService,
WorkObjectMigrationService migrationService,
FrontendObjectManagerUtils managerUtils,
AppDeploymentService appDeploymentService,
UserManager userManager,
org.springframework.context.MessageSource messageSource,
AppDataModelService appDataModelService,
LanguageManager languageManager) |
Modifier and Type | Method and Description |
---|---|
void |
activate(String modelId,
String comment)
Activates a given model.
|
String |
archive(String appModelId)
Archives given application model and all its children.
|
FrontendObject |
createApp(FrontendObject frontendObject,
String comment)
Creates a new App from the given frontend object.
|
FrontendObject |
createModel(FrontendObject frontendObject,
String comment)
Creates a new model from the given frontend object.
|
void |
deactivate(String modelId,
String comment)
Deactivates a given model.
|
String |
deployApp(FrontendObject frontendObject,
String comment,
Locale locale)
Deploys the given App model.
|
FrontendObject |
duplicate(String modelId,
String name,
String comment)
Creates a duplicate of the given model work object template.
|
List<DataModelVariableInfo> |
getAppDataModel(String appModelId)
Returns the data model for the given App model.
|
List<Language> |
getAppLanguages(String appModelId)
Returns the configured languages for the given App model.
|
FrontendObject |
getModelByKey(String type,
String key)
Returns the model corresponding to the given key.
|
String |
migrate(String modelId,
String comment)
Migrates existing work objects to the latest deployed model.
|
FrontendObject |
save(FrontendObject frontendObject,
String comment)
Saves changes to the given model work object.
|
FrontendObject |
saveApp(FrontendObject frontendObject,
String comment)
Saves changes to the given App model work object.
|
FrontendObject |
saveMailModel(FrontendObject frontendObject,
String comment)
Saves changes to the given mail model work object.
|
void |
updateAppDataModel(String appModelId,
String modelData)
Update App data model on the App model.
|
public DefaultModelerDashboardManager(FrontendObjectService frontendObjectService, WorkObjectService workObjectService, ModelStateHelper modelStateHelper, ModelService modelService, AmbiguousIdHelper ambiguousIdHelper, NotificationService notificationService, WorkObjectMigrationService migrationService, FrontendObjectManagerUtils managerUtils, AppDeploymentService appDeploymentService, UserManager userManager, org.springframework.context.MessageSource messageSource, AppDataModelService appDataModelService, LanguageManager languageManager)
public FrontendObject createModel(FrontendObject frontendObject, String comment) throws Exception
ModelerDashboardManager
Creates a new model from the given frontend object.
createModel
in interface ModelerDashboardManager
frontendObject
- the frontend objectcomment
- the change commentException
- if the model could not be createdpublic FrontendObject getModelByKey(String type, String key)
ModelerDashboardManager
Returns the model corresponding to the given key.
getModelByKey
in interface ModelerDashboardManager
type
- the expected model typekey
- the model keypublic FrontendObject createApp(FrontendObject frontendObject, String comment) throws Exception
ModelerDashboardManager
Creates a new App from the given frontend object.
createApp
in interface ModelerDashboardManager
frontendObject
- the frontend objectcomment
- the change commentException
- if the App could not be createdpublic FrontendObject duplicate(String modelId, String name, String comment) throws Exception
ModelerDashboardManager
Creates a duplicate of the given model work object template.
duplicate
in interface ModelerDashboardManager
modelId
- the ID of the model work object to be duplicatedname
- the name of the new duplicatecomment
- the change commentException
- if the duplicate could not be createdpublic String migrate(String modelId, String comment) throws Exception
ModelerDashboardManager
Migrates existing work objects to the latest deployed model.
migrate
in interface ModelerDashboardManager
modelId
- the model IDcomment
- the change commentException
- if the work objects could not be migratedpublic void activate(String modelId, String comment)
ModelerDashboardManager
Activates a given model.
activate
in interface ModelerDashboardManager
modelId
- the ID of the model to be activatedcomment
- the change commentpublic void deactivate(String modelId, String comment)
ModelerDashboardManager
Deactivates a given model.
deactivate
in interface ModelerDashboardManager
modelId
- the ID of the model to be deactivatedcomment
- the change commentpublic String deployApp(FrontendObject frontendObject, String comment, Locale locale) throws Exception
ModelerDashboardManager
Deploys the given App model.
deployApp
in interface ModelerDashboardManager
frontendObject
- the frontend object for the deploymentcomment
- the change commentlocale
- the locale to be used for message translationException
- if the App model could not be deployedpublic FrontendObject save(FrontendObject frontendObject, String comment) throws Exception
ModelerDashboardManager
Saves changes to the given model work object.
save
in interface ModelerDashboardManager
frontendObject
- the frontend objectcomment
- the change commentException
- if the changes could not be savedpublic FrontendObject saveMailModel(FrontendObject frontendObject, String comment) throws Exception
ModelerDashboardManager
Saves changes to the given mail model work object.
saveMailModel
in interface ModelerDashboardManager
frontendObject
- the frontend objectcomment
- the change commentException
- if the changes could not be savedpublic FrontendObject saveApp(FrontendObject frontendObject, String comment) throws Exception
ModelerDashboardManager
Saves changes to the given App model work object.
saveApp
in interface ModelerDashboardManager
frontendObject
- the frontend objectcomment
- the change commentException
- if the changes could not be savedpublic List<DataModelVariableInfo> getAppDataModel(String appModelId)
ModelerDashboardManager
Returns the data model for the given App model.
getAppDataModel
in interface ModelerDashboardManager
appModelId
- the App model IDpublic void updateAppDataModel(String appModelId, String modelData)
ModelerDashboardManager
Update App data model on the App model.
updateAppDataModel
in interface ModelerDashboardManager
appModelId
- the App model IDmodelData
- the Model Datapublic List<Language> getAppLanguages(String appModelId)
ModelerDashboardManager
Returns the configured languages for the given App model.
getAppLanguages
in interface ModelerDashboardManager
appModelId
- the App model IDpublic String archive(String appModelId)
ModelerDashboardManager
Archives given application model and all its children.
archive
in interface ModelerDashboardManager
appModelId
- app model identifierCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.