summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-07-17 05:50:58 (EDT)
committerManik Kishore2012-07-19 02:20:33 (EDT)
commit93289476879162e5bd5f104cecbda5bea13f9193 (patch)
treec40f171f8bdaa6927927b5e997e291f24e5a8cd4
parent9f63f514748b43a1c0704ac019746a1acd10d837 (diff)
downloadorg.eclipse.stardust.ui.web-93289476879162e5bd5f104cecbda5bea13f9193.zip
org.eclipse.stardust.ui.web-93289476879162e5bd5f104cecbda5bea13f9193.tar.gz
org.eclipse.stardust.ui.web-93289476879162e5bd5f104cecbda5bea13f9193.tar.bz2
CRNT-25176 Create Cross Modeling testcases
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@57706 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/service/ModelService.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/service/ModelService.java b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/service/ModelService.java
index 299be9e..7e69826 100644
--- a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/service/ModelService.java
+++ b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/service/ModelService.java
@@ -2616,16 +2616,12 @@ public class ModelService {
* @return
*/
public String createRole(String modelId, JsonObject roleJson) {
- ModelType model = getModelManagementStrategy().getModels().get(modelId);
-
+
+ ModelType model = getModelManagementStrategy().getModels().get(modelId);
+ String roleID = extractString(roleJson, ModelerConstants.ID_PROPERTY);
+ String roleName = extractString(roleJson, ModelerConstants.NAME_PROPERTY);
synchronized (model) {
- // EditingSession editSession = model.getEditSession();
- //
- // editSession.beginEdit();
-
- RoleType role = newRole(model).withIdAndName(
- extractString(roleJson, ModelerConstants.ID_PROPERTY),
- extractString(roleJson, ModelerConstants.NAME_PROPERTY)).build();
+ MBFacade.createRole(model, roleID, roleName);
}
return roleJson.toString();