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 java.lang.String DISPLAY_ASSET_TREE_LEAF_NODE
           
static java.lang.String DISPLAY_SITE_PLAN_TREE_LEAF_NODE
           
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.lang.String escapeAndReplaceSpace(java.lang.String source)
           
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 AssetTypeDef getAssetDefType(java.lang.String assetType, java.lang.String subtype)
          getAssetDefType Created: August 09, 2010 By JAG Reason: Helper / Utility Method that returns the asset Type definition based on both attributes asset type and subtype for Basic Assets and/or Page Asset types
static java.lang.String getDisplayAssetTreeLeafNode()
          Return configuration setting for left asset tree leaf node
static java.lang.String getDisplaySitePlanTreeLeafNode()
          Return configuration setting for left site plan tree leaf node
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 java.util.List<StartMenuItem> getStartMenuItems(java.lang.String itemType, java.util.List<StartMenuItem> items)
           
static boolean hasComplexAssetClass(java.lang.String assetType)
           
static boolean isInWemFramework()
           
static boolean isSearchAttrCol(java.lang.String attrName)
           
static boolean isTrue(java.lang.Object value)
           
static void populateComplexAssetClass(java.util.Map<java.lang.String,java.lang.String> assetTypeClassMap)
           
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

DISPLAY_ASSET_TREE_LEAF_NODE

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

DISPLAY_SITE_PLAN_TREE_LEAF_NODE

public static final java.lang.String DISPLAY_SITE_PLAN_TREE_LEAF_NODE
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

getStartMenuItems

public static java.util.List<StartMenuItem> getStartMenuItems(java.lang.String itemType,
                                                              java.util.List<StartMenuItem> items)
                                                       throws UIServiceException
Throws:
UIServiceException

populateComplexAssetClass

public static void populateComplexAssetClass(java.util.Map<java.lang.String,java.lang.String> assetTypeClassMap)

hasComplexAssetClass

public static boolean hasComplexAssetClass(java.lang.String assetType)

isTrue

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

getDisplayAssetTreeLeafNode

public static java.lang.String getDisplayAssetTreeLeafNode()
Return configuration setting for left asset tree leaf node

Returns:
setting value of asset tree on leaf node

getDisplaySitePlanTreeLeafNode

public static java.lang.String getDisplaySitePlanTreeLeafNode()
Return configuration setting for left site plan tree leaf node

Returns:
setting value of site plan tree on leaf node

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()

escapeAndReplaceSpace

public static java.lang.String escapeAndReplaceSpace(java.lang.String source)

getAssetDefType

public static AssetTypeDef getAssetDefType(java.lang.String assetType,
                                           java.lang.String subtype)
getAssetDefType Created: August 09, 2010 By JAG Reason: Helper / Utility Method that returns the asset Type definition based on both attributes asset type and subtype for Basic Assets and/or Page Asset types



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