com.adobe.icc.dbforms.util
Class ACMUtil

java.lang.Object
  extended by com.adobe.icc.dbforms.util.ACMUtil

public final class ACMUtil
extends java.lang.Object

Utility class containing core logic methods which can be used across the building block.


Constructor Summary
ACMUtil()
           
 
Method Summary
static AssetType getAssetType(java.lang.String assetId)
           
static java.lang.String getConfigFolderForBB()
           
static java.lang.String getSolutionSpecficConfigFolderForBB()
           
static boolean isAuthorInstance(SlingSettingsService slingSettingsService)
           
static boolean loggedInUserHasRole(ResourceResolverFactory resolverFactory, java.lang.String roleName)
          This API is helps in finding whether the logged in user has a particular UM role or not.
static java.lang.Object xmlEscapeObject(java.lang.Object object)
          Escapes the specified Object values for use in an XML element's text content by encoding less-than, greater-than and ampersand into their HTML escape code equivalents (<...).
static java.lang.String xmlEscapeTextContent(java.lang.String content)
          Escapes the specified text content for use in an XML element's text content by encoding less-than, greater-than and ampersand into their HTML escape code equivalents (<...).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACMUtil

public ACMUtil()
Method Detail

getConfigFolderForBB

public static java.lang.String getConfigFolderForBB()

getSolutionSpecficConfigFolderForBB

public static java.lang.String getSolutionSpecficConfigFolderForBB()
                                                            throws ICCException
Throws:
ICCException

loggedInUserHasRole

public static boolean loggedInUserHasRole(ResourceResolverFactory resolverFactory,
                                          java.lang.String roleName)
                                   throws ICCException
This API is helps in finding whether the logged in user has a particular UM role or not. This API always returns true for 'admin'

Parameters:
groupName - - This is the group name for which the logged in user membership is determined.
Returns:
Throws:
ICCException

isAuthorInstance

public static boolean isAuthorInstance(SlingSettingsService slingSettingsService)

getAssetType

public static AssetType getAssetType(java.lang.String assetId)

xmlEscapeObject

public static java.lang.Object xmlEscapeObject(java.lang.Object object)
Escapes the specified Object values for use in an XML element's text content by encoding less-than, greater-than and ampersand into their HTML escape code equivalents (<...).

Parameters:
object - The content to escape.
Returns:
Null if content is null; empty string if content is empty; escaped content otherwise.

xmlEscapeTextContent

public static java.lang.String xmlEscapeTextContent(java.lang.String content)
Escapes the specified text content for use in an XML element's text content by encoding less-than, greater-than and ampersand into their HTML escape code equivalents (<...).

Parameters:
content - The content to escape.
Returns:
Null if content is null; empty string if content is empty; escaped content otherwise.


[an error occurred while processing this directive] [an error occurred while processing this directive]