summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikas Mishra2012-03-13 07:57:39 (EDT)
committer Manik Kishore2012-06-19 07:20:56 (EDT)
commit6b6a1ddff2835cb06e739554e82b7f0894640cf8 (patch)
tree286678ffbfcde72c89f4c53ca92498e4a1b98a0f
parentefec01dcc4ed588d3ac4a9c9f2d53922dc699b33 (diff)
downloadorg.eclipse.stardust.ui.web-6b6a1ddff2835cb06e739554e82b7f0894640cf8.zip
org.eclipse.stardust.ui.web-6b6a1ddff2835cb06e739554e82b7f0894640cf8.tar.gz
org.eclipse.stardust.ui.web-6b6a1ddff2835cb06e739554e82b7f0894640cf8.tar.bz2
Jira-ID: CRNT-24165
generate new file name in comment class and also for every extract page so that new file generate each time. git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@54502 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/document/tiff/extract/ExtractPageDialog.java18
1 files changed, 2 insertions, 16 deletions
diff --git a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/document/tiff/extract/ExtractPageDialog.java b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/document/tiff/extract/ExtractPageDialog.java
index 6cc4f8c..fe86eaa 100644
--- a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/document/tiff/extract/ExtractPageDialog.java
+++ b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/document/tiff/extract/ExtractPageDialog.java
@@ -598,8 +598,7 @@ public class ExtractPageDialog extends PopupUIComponentBean implements Confirmat
ExtractPageCommand command = new ExtractPageCommand();
command.setMimeType(MimeTypesHelper.TIFF.getType());
- command.setProcessInstance(imageInfo.getProcessInstance());
- command.setNewDocumentName(generateDocumentName(imageInfo.getDocument().getName()));
+ command.setProcessInstance(imageInfo.getProcessInstance());
command.setSourceDocumentName(imageInfo.getDocument().getName());
command.setSourceDocumentPath(FileUtils.getDocumentPath(imageInfo.getDocument().getPath()));
@@ -646,20 +645,7 @@ public class ExtractPageDialog extends PopupUIComponentBean implements Confirmat
return new ExtractPageCommand.PageModel(tableEntry.getContent(), tableEntry.getVersionComment(), tableEntry.getDocDecription(),
tableEntry.getDocMetadata(), tableEntry.getSpawnProcessFQID(), tableEntry.isCopyProcessData(),
tableEntry.getDataId());
- }
-
- /**
- * generate new file name by appending date-time in source file name
- *
- * @return
- */
- private String generateDocumentName(String sourceName)
- {
- StringBuilder fileName = new StringBuilder().append(ImageUtils.removeExtention(sourceName)).append("_")
- .append(String.valueOf(new Date().getTime())).append(".").append(ImageUtils.getExtension(sourceName));
-
- return fileName.toString();
- }
+ }
/**
*
* @param pis