summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-10-25 05:15:11 (EDT)
committer Sven Rottstock2012-10-25 05:15:11 (EDT)
commita7b78ba0aaba8d1a87228fc78d54ef0c2f966768 (patch)
tree07972e0a0d1edd7ce0ac93f46c2a95933f350bc5
parentde6b645fcd84cc2a0efd89d2c37d31656b4726ad (diff)
downloadorg.eclipse.stardust.ide-a7b78ba0aaba8d1a87228fc78d54ef0c2f966768.zip
org.eclipse.stardust.ide-a7b78ba0aaba8d1a87228fc78d54ef0c2f966768.tar.gz
org.eclipse.stardust.ide-a7b78ba0aaba8d1a87228fc78d54ef0c2f966768.tar.bz2
CRNT-26244 Pepper: Model Property: Creation and Last modified date are hard coded value.
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@60304 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java16
-rw-r--r--model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelerConstants.java2
2 files changed, 18 insertions, 0 deletions
diff --git a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java
index 2e043c1..f7fb58c 100644
--- a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java
+++ b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java
@@ -2521,7 +2521,23 @@ public class ModelBuilderFacade
}
organization.setTeamLead((RoleType) modelParticipant);
}
+ }
+
+ public void setModified(ModelType modelType, String modified)
+ {
+ AttributeUtil
+ .setAttribute(modelType, ModelerConstants.ATTRIBUTE_MODIFIED, modified);
+ }
+ public String getModified(ModelType modelType)
+ {
+ AttributeType attribute = AttributeUtil.getAttribute(modelType,
+ ModelerConstants.ATTRIBUTE_MODIFIED);
+ if (attribute != null)
+ {
+ return attribute.getValue();
+ }
+ return "unknown";
}
diff --git a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelerConstants.java b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelerConstants.java
index fa605a3..e312458 100644
--- a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelerConstants.java
+++ b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelerConstants.java
@@ -35,6 +35,7 @@ public class ModelerConstants
public static final String ACTIVITY_IS_HIBERNATED_ON_CREATION = "isHibernatedOnCreation";
public static final String MODEL_ELEMENT_PROPERTY = "modelElement";
public static final String DATE_OF_CREATION = "dateOfCreation";
+ public static final String DATE_OF_MODIFICATION = "dateOfModification";
public static final String PARTICIPANT_FULL_ID = "participantFullId";
public static final String SUBPROCESS_ID = "subprocessFullId";
public static final String APPLICATION_FULL_ID_PROPERTY = "applicationFullId";
@@ -192,4 +193,5 @@ public class ModelerConstants
public static final String EXTERNAL_REFERENCE_PROPERTY = "externalReference";
public static final String ACCESS_POINT_ID_PROPERTY = "accessPointId";
public static final String ACCESS_POINT_CONTEXT_PROPERTY = "accessPointContext";
+ public static final String ATTRIBUTE_MODIFIED = "ipp:model:modified";
}