com.filenet.wcm.apps.server.util.webcontent
Class CFWUtil

java.lang.Object
  extended bycom.filenet.wcm.apps.server.util.webcontent.CFWUtil

public class CFWUtil
extends java.lang.Object


Field Summary
static java.util.Set cfwSourceMimeTypes
           
 
Constructor Summary
CFWUtil()
           
 
Method Summary
static org.w3c.dom.Document getCFWPropDescsXML(org.w3c.dom.Document propDescsXML, java.lang.String[] processorChoices)
           
static org.w3c.dom.Document getTargetLinksXML(org.w3c.dom.Document targetLinksXML, java.lang.String objectId)
          Returns a target links XML for the selected item so that it can be used in the reconvert for web.
static org.w3c.dom.Document getTargetLinksXML(org.w3c.dom.Document targetLinksXML, java.lang.String[] selectedLinks)
          Returns a target links XML for the selected items so that it can be used in the reconvert for web.
static boolean isDocumentValidForCFW(WcmAuthoringState authState, WcmWorkplaceConfig config)
          Returns true if the selected document defined by the authoring state data is valid for a convert for web.
static void updateTargetLinkXML(org.w3c.dom.Document targetLinksXML, org.w3c.dom.Document newTargetLinksXML)
          Updates the target links XML properties and permissions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cfwSourceMimeTypes

public static final java.util.Set cfwSourceMimeTypes
Constructor Detail

CFWUtil

public CFWUtil()
Method Detail

getTargetLinksXML

public static org.w3c.dom.Document getTargetLinksXML(org.w3c.dom.Document targetLinksXML,
                                                     java.lang.String[] selectedLinks)
                                              throws java.lang.Exception
Returns a target links XML for the selected items so that it can be used in the reconvert for web.

Parameters:
targetLinksXML - Document The source target links XML.
selectedLinks - String[] An string array holding the selected target link ids.
Returns:
Document Object that represents the target links XML
Throws:
java.lang.Exception

getTargetLinksXML

public static org.w3c.dom.Document getTargetLinksXML(org.w3c.dom.Document targetLinksXML,
                                                     java.lang.String objectId)
                                              throws java.lang.Exception
Returns a target links XML for the selected item so that it can be used in the reconvert for web.

Parameters:
targetLinksXML - Document The source target links XML.
objectId - String A target link object id.
Returns:
Document Object that represents the target links XML
Throws:
java.lang.Exception

updateTargetLinkXML

public static void updateTargetLinkXML(org.w3c.dom.Document targetLinksXML,
                                       org.w3c.dom.Document newTargetLinksXML)
                                throws java.lang.Exception
Updates the target links XML properties and permissions.

Parameters:
targetLinksXML - Document The source target links XML.
newTargetLinksXML - Document DOM Document holding the new target links XML
Throws:
java.lang.Exception

isDocumentValidForCFW

public static boolean isDocumentValidForCFW(WcmAuthoringState authState,
                                            WcmWorkplaceConfig config)
Returns true if the selected document defined by the authoring state data is valid for a convert for web.

Parameters:
authState - WcmAuthoringState holding the selected document data.
config - WcmWorkplaceConfig holding the site preference configurations
Returns:
boolean true if it is okay to do a convert for web.

getCFWPropDescsXML

public static org.w3c.dom.Document getCFWPropDescsXML(org.w3c.dom.Document propDescsXML,
                                                      java.lang.String[] processorChoices)
                                               throws java.lang.Exception
Throws:
java.lang.Exception


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