com.fatwire.cs.ui.view.backing
Class GenericUtil

java.lang.Object
  extended by com.fatwire.cs.ui.view.backing.GenericUtil

public class GenericUtil
extends java.lang.Object


Nested Class Summary
static class GenericUtil.LinkType
           
 
Field Summary
static java.lang.String BROWSER_LOCALES_LIST
           
static boolean wemEnabled
           
 
Method Summary
static void addJavascriptFunctions(java.lang.String script)
          Adds a function to the list of Java Script functions that will be invoked during partial rendering
static java.util.List<java.lang.String> getAllAnyAssetTypes(java.util.Collection restrictedAssetTypes)
          Fetches the asset type definition for given the assetId.
static java.util.List<java.lang.String> getAnyValidAssocAssetTypes()
          getAnyValidAssocAssetTypes() Modified: Oct, 30, 2009 By: JAG Reason: PR#21252 The fix insures that for both nammmed and unnamed < any > asset child association will contain the List with valid child Only Asset Types.
static ICS getICS()
          Get New ICS with existing session parameters
static java.lang.String getRequestUrl()
          return request url which is determined based on the following order 1.
static boolean isInWemFramework()
           
static boolean isSearchAttrCol(java.lang.String attrName)
           
static boolean isTrue(java.lang.Object value)
           
static java.util.List<java.lang.String> preFilterChildAssetTypes(java.util.List<java.lang.String> assetTypes)
          preFilterChildAssetTypes Modified: Oct, 30, 2009 By: JAG Reason: PR#21252 The fix insures that for both nammmed and unnamed < any > asset child association will contain the List with valid child Only Asset Types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BROWSER_LOCALES_LIST

public static final java.lang.String BROWSER_LOCALES_LIST
See Also:
Constant Field Values

wemEnabled

public static boolean wemEnabled
Method Detail

addJavascriptFunctions

public static void addJavascriptFunctions(java.lang.String script)
Adds a function to the list of Java Script functions that will be invoked during partial rendering

Parameters:
script - the function / script name to be added to the PPR list

getICS

public static ICS getICS()
                  throws UICSAccessFailureException
Get New ICS with existing session parameters

Returns:
ICS
Throws:
java.lang.Exception - If underlying implementation throws exception
UICSAccessFailureException

isTrue

public static boolean isTrue(java.lang.Object value)

isSearchAttrCol

public static boolean isSearchAttrCol(java.lang.String attrName)

getAllAnyAssetTypes

public static java.util.List<java.lang.String> getAllAnyAssetTypes(java.util.Collection restrictedAssetTypes)
                                                            throws UIServiceException
Fetches the asset type definition for given the assetId. The assetId object can be of either flex or basic assets.

Parameters:
assetId - The AssetId object for the asset definition.
Returns:
the AssetTypeDef.
Throws:
UIServiceException

getAnyValidAssocAssetTypes

public static java.util.List<java.lang.String> getAnyValidAssocAssetTypes()
                                                                   throws UIServiceException
getAnyValidAssocAssetTypes() Modified: Oct, 30, 2009 By: JAG Reason: PR#21252 The fix insures that for both nammmed and unnamed < any > asset child association will contain the List with valid child Only Asset Types. AssetType criteria is must be CANBECHILD is TRUE all othe AssetType will not make sense.

Throws:
UIServiceException

preFilterChildAssetTypes

public static java.util.List<java.lang.String> preFilterChildAssetTypes(java.util.List<java.lang.String> assetTypes)
preFilterChildAssetTypes Modified: Oct, 30, 2009 By: JAG Reason: PR#21252 The fix insures that for both nammmed and unnamed < any > asset child association will contain the List with valid child Only Asset Types. AssetType criteria is must be CANBECHILD is TRUE all othe AssetType will not make sense.


getRequestUrl

public static java.lang.String getRequestUrl()
return request url which is determined based on the following order 1. return client base url if set already 2. return one from request object

Returns:
request url

isInWemFramework

public static boolean isInWemFramework()


Copyright (c) 2003 - 2010 FatWire Corporation All Rights Reserved.