@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
ModelerDashboardManagerCreates a new model from the given frontend object.
createModel in interface ModelerDashboardManagerfrontendObject - the frontend objectcomment - the change commentException - if the model could not be createdpublic FrontendObject getModelByKey(String type, String key)
ModelerDashboardManagerReturns the model corresponding to the given key.
getModelByKey in interface ModelerDashboardManagertype - the expected model typekey - the model keypublic FrontendObject createApp(FrontendObject frontendObject, String comment) throws Exception
ModelerDashboardManagerCreates a new App from the given frontend object.
createApp in interface ModelerDashboardManagerfrontendObject - the frontend objectcomment - the change commentException - if the App could not be createdpublic FrontendObject duplicate(String modelId, String name, String comment) throws Exception
ModelerDashboardManagerCreates a duplicate of the given model work object template.
duplicate in interface ModelerDashboardManagermodelId - 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
ModelerDashboardManagerMigrates existing work objects to the latest deployed model.
migrate in interface ModelerDashboardManagermodelId - the model IDcomment - the change commentException - if the work objects could not be migratedpublic void activate(String modelId, String comment)
ModelerDashboardManagerActivates a given model.
activate in interface ModelerDashboardManagermodelId - the ID of the model to be activatedcomment - the change commentpublic void deactivate(String modelId, String comment)
ModelerDashboardManagerDeactivates a given model.
deactivate in interface ModelerDashboardManagermodelId - the ID of the model to be deactivatedcomment - the change commentpublic String deployApp(FrontendObject frontendObject, String comment, Locale locale) throws Exception
ModelerDashboardManagerDeploys the given App model.
deployApp in interface ModelerDashboardManagerfrontendObject - 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
ModelerDashboardManagerSaves changes to the given model work object.
save in interface ModelerDashboardManagerfrontendObject - the frontend objectcomment - the change commentException - if the changes could not be savedpublic FrontendObject saveMailModel(FrontendObject frontendObject, String comment) throws Exception
ModelerDashboardManagerSaves changes to the given mail model work object.
saveMailModel in interface ModelerDashboardManagerfrontendObject - the frontend objectcomment - the change commentException - if the changes could not be savedpublic FrontendObject saveApp(FrontendObject frontendObject, String comment) throws Exception
ModelerDashboardManagerSaves changes to the given App model work object.
saveApp in interface ModelerDashboardManagerfrontendObject - the frontend objectcomment - the change commentException - if the changes could not be savedpublic List<DataModelVariableInfo> getAppDataModel(String appModelId)
ModelerDashboardManagerReturns the data model for the given App model.
getAppDataModel in interface ModelerDashboardManagerappModelId - the App model IDpublic void updateAppDataModel(String appModelId, String modelData)
ModelerDashboardManagerUpdate App data model on the App model.
updateAppDataModel in interface ModelerDashboardManagerappModelId - the App model IDmodelData - the Model Datapublic List<Language> getAppLanguages(String appModelId)
ModelerDashboardManagerReturns the configured languages for the given App model.
getAppLanguages in interface ModelerDashboardManagerappModelId - the App model IDpublic String archive(String appModelId)
ModelerDashboardManagerArchives given application model and all its children.
archive in interface ModelerDashboardManagerappModelId - app model identifierCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.