com.filenet.wcm.apps.server.util
Class WcmAttachmentUtil

java.lang.Object
  extended bycom.filenet.wcm.apps.server.util.WcmAttachmentUtil

public class WcmAttachmentUtil
extends java.lang.Object


Constructor Summary
WcmAttachmentUtil()
           
 
Method Summary
static java.lang.String encodeUNC(java.lang.String str)
          Deprecated. Use the encodeUNCPath method listed above
static java.lang.String encodeUNCPath(java.lang.String unc)
          Helper method that translates the slash characters in a UNC file path to forward slashes
static java.lang.String getEntryWizardURL(com.filenet.wcm.toolkit.server.base.WcmUiModule uiModule, java.lang.String objectStoreName, java.lang.String vsId, java.lang.String id, java.lang.String objectType, java.lang.String mimeType, java.lang.String executeAddKey)
          Return the required Url string for the Entry Wizard page.
static java.lang.String getFormTemplateURL(com.filenet.wcm.toolkit.server.base.WcmUiModule uiModule, java.lang.String objectStoreName, java.lang.String vsId, java.lang.String id, java.lang.String objectType, java.lang.String mode, java.lang.String randomNumber)
          Return the required Url string for get Form Template servlet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WcmAttachmentUtil

public WcmAttachmentUtil()
Method Detail

encodeUNCPath

public static java.lang.String encodeUNCPath(java.lang.String unc)
Helper method that translates the slash characters in a UNC file path to forward slashes

Parameters:
unc - String current UNC path text
Returns:
String modified UNC path text

encodeUNC

public static java.lang.String encodeUNC(java.lang.String str)
Deprecated. Use the encodeUNCPath method listed above

Helper method that translates the slash characters in a UNC file path to forward slashes

Parameters:
str - String current UNC path text
Returns:
String modified UNC path text

getEntryWizardURL

public static java.lang.String getEntryWizardURL(com.filenet.wcm.toolkit.server.base.WcmUiModule uiModule,
                                                 java.lang.String objectStoreName,
                                                 java.lang.String vsId,
                                                 java.lang.String id,
                                                 java.lang.String objectType,
                                                 java.lang.String mimeType,
                                                 java.lang.String executeAddKey)
                                          throws java.lang.Exception
Return the required Url string for the Entry Wizard page.

Parameters:
uiModule - WcmUiModule holding the ui module.
objectStoreName - String holding the object store name
vsId - String holding the version series id
id - String holding the object id
objectType - String holding the object type
mimeType - String holding the object mime type.
executeAddKey - String hoding the attachment execute add key.
Returns:
String Url path to Entry Wizard page.
Throws:
java.lang.Exception

getFormTemplateURL

public static java.lang.String getFormTemplateURL(com.filenet.wcm.toolkit.server.base.WcmUiModule uiModule,
                                                  java.lang.String objectStoreName,
                                                  java.lang.String vsId,
                                                  java.lang.String id,
                                                  java.lang.String objectType,
                                                  java.lang.String mode,
                                                  java.lang.String randomNumber)
                                           throws java.lang.Exception
Return the required Url string for get Form Template servlet.

Parameters:
uiModule - WcmUiModule holding the current module.
objectStoreName - String holding the object store name
vsId - String holding the version series id
id - String holding the object id
objectType - String holding the object type
randomNumber - String to use as the new window id
Returns:
String Url path to get Form Template servlet (handles Policies and Templates)
Throws:
java.lang.Exception


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.