public class WebClientRuntime
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char[] |
HEXDIGITS
A table of hex digits
|
static java.util.HashMap<java.lang.Character,java.lang.Integer> |
keycode |
static int |
MSG_BTNCANCEL |
static int |
MSG_BTNNO |
static int |
MSG_BTNOK |
static int |
MSG_BTNYES |
static java.lang.String |
MXE_WEBCLIENT_ASYNCRENDERTIMELIMIT
A constant for the Tpae system property which is used to determine maximum amount of seconds to elapse between rendering of the page when handling asynchronous requests.
|
static java.lang.String |
MXE_WEBCLIENT_DEEPREQUIREDCHECK
A constant for the Tpae system property which is used to determine if the framework will perform a a check for all required fields when saving
|
static java.lang.String |
MXE_WEBCLIENT_MAXASYNCREQUESTSBEFORERENDER
A constant for the Tpae system property mxe.webclient.maxasyncrequestsbeforerender which is used to determine the maximum number of asynchronous requests to be handled before a render is sent to the page.
|
static java.lang.String |
PORTLET_CACHE_PREFIX
A constant for naming the cache of portlet specific info in the current start center.
|
static java.lang.String |
PORTLETLAYOUT_CACHE_NAME
A constant for naming the cache of portlet layout for a current start center
|
static java.lang.String |
PORTLETLAYOUT_CACHE_UID
A constant for naming the cache that contains the uid for the contents in the Portlet Layout cache
|
static java.lang.String |
PORTLETS_ALLOWED_CACHE
A constant for naming the cache of portlets that are allowed.
|
static java.lang.String |
ROWMARKID |
RuntimeServiceability |
serviceability |
static java.lang.String |
SPECIALSAVECHARS
Deprecated.
Since 7.5.0.1
|
static java.lang.String |
STARTCENTER_CACHE_NAME
A constant for naming the cache of start center list and info for the current user
|
static java.lang.String |
STARTCENTER_UID_CACHE_NAME
A constant for naming the uid of a start center.
|
Modifier and Type | Method and Description |
---|---|
FieldClassInfo |
addFieldClassInfo(FieldClassInfo fci)
Adds a FieldClassInfo object to the fieldClassInfo cache
|
static java.lang.String |
addRowMarker(java.lang.String id,
int row)
Adds a row marker to a String (used for id's)
|
static void |
addToTranslatableLabels(java.lang.String type,
java.lang.String key) |
void |
addWebClientSession(javax.servlet.http.HttpSession httpSession,
WebClientSession wcs)
Deprecated.
use WebClientSessionFactory createSession()
|
static java.lang.String[] |
breakupMsgLookup(java.lang.String lookup)
Breas messages lookup, generally specified as proeperties into group and key part making
it ready to be used for getMessage call.
For.e.g ui#startlable will be broken into an array of 2 of ui and startlable |
void |
cacheExcludeApps() |
boolean |
canBeUsedInRecordHover(java.lang.String controlType)
Returns true if the passed in control type is support within a recordhover control.
|
boolean |
canUseStaticIds()
Returns true if UI should use static mxids rather than sequence based sceheme
|
static WebClientEvent |
checkSession(WebClientSession wcs,
WebClientEvent event)
Deprecated.
as of MBS 7.1.1.6. Replaced by RequestManager checkSession
|
static boolean |
containsRowMarker(java.lang.String value) |
static java.lang.String |
createSendEventString(java.lang.String event,
java.lang.String target,
java.lang.String val,
int jsMethod)
Creates a sendEvent string to be used in jsp's where components
cannot do the same thing.
|
static java.lang.String |
createStatusText(MXException[] warnings,
WebClientSession wcs)
Transforms the warnings array to a String.
|
static java.lang.String |
csvStringFromArray(java.lang.Object[] values)
Returns helper method to return a string of comma separated values from an array of objects
|
static java.lang.String |
decodeSafevalue(java.lang.String value)
Deprecated.
|
static java.lang.String |
doubleUpQuotes(java.lang.String inputData)
This function takes a passed in string and returns it with all single quotes 'Doubled Up' to prevent
then from being parsed by Oracle as being the end of the field.
|
static java.lang.String |
escapeForJScript(java.lang.String str)
Escapes the characters for JScript alert() method
|
static java.lang.String |
findAttribute(java.lang.String name,
org.w3c.dom.Element element) |
static org.w3c.dom.Element |
findChildElement(org.w3c.dom.Element element,
java.lang.String id,
boolean isCaseSensitive)
Finds the first child element with attribute 'id' equal to the parameter id.
|
static org.w3c.dom.Element |
findChildElementByTagName(org.w3c.dom.Element element,
java.lang.String tagName)
Finds the first child element with tagName Walks recursively the child tree
|
static org.w3c.dom.Element |
findElement(org.w3c.dom.Element element,
java.lang.String id)
Finds the first element with attribute 'id' equal to the parameter id.
|
static org.w3c.dom.Element |
findElement(org.w3c.dom.Element element,
java.lang.String id,
boolean isCaseSensitive)
Finds the first element with attribute 'id' equal to the parameter id.
|
static org.w3c.dom.Element |
findElementByTagName(org.w3c.dom.Element element,
java.lang.String tagName)
Finds the first element with tagName Walks recursively the child tree
|
static java.lang.String |
formatDataString(java.lang.String dataString)
Deprecated.
Deprecated as of 7.5.0.1: It is not possible to escape all characters using this method. Use
something like this instead: decodeURIComponent('<%=URLEncode.encode(value)%>')
|
static java.lang.String |
formatStringForTags(java.lang.String str)
Deprecated.
Since 7.5.0.2 Use
HTML.encodeTolerant(String) |
static long |
formatStringUniqueId(java.lang.String tempStr,
java.util.Locale userlocale)
Formats a string meant for uniqueid, by stripping off, the seperator and decimal seperator
based on current locale
|
static java.lang.String |
getAppDescFromCache(java.lang.String appId,
MXSession mxs)
Added to support calling with no language Code
|
static java.lang.String |
getAppDescFromCache(java.lang.String appId,
MXSession mxs,
java.lang.String langCode)
Method to catch application description
|
AppDescriptor |
getAppDescriptor(java.lang.String appName)
Method to get an app descriptor by app name out of the descriptor index.
|
AppDescriptor |
getAppDescriptor(java.lang.String appName,
WebClientSession wcs)
factory method to return an app descriptor.
|
static java.lang.String |
getAppName(org.w3c.dom.Element element)
Searches the element dom to get the name of the presentation.
|
static java.util.Map<java.lang.String,SigOptionInfo> |
getAppSigOptionList(java.lang.String appId)
Returns a Map containing all possible sigoption for an application regardless
of whether or not the user has access to them.
|
java.lang.String |
getAppXML(java.lang.String appName)
Return Save string object of the presentation xml
|
static java.lang.String |
getCacheIdForAppName(java.lang.String Id)
getCacheIdForAppName return String the app name with suffix , if tenant enable it will return appname with tenant id .
|
CmsMenuDescriptor |
getCmsMenuDescriptor(java.lang.String mboName,
java.lang.String menuItem) |
com.ibm.json.java.JSONObject |
getCmsMenuDescriptorObject(DataBean bean,
java.lang.String menuId) |
com.ibm.tivoli.contextmenuservice.ICmsRegistry |
getCMSRegistry() |
ComponentDescriptor |
getComponentDescriptor(java.lang.String type) |
ControlDescriptor |
getControlDescriptor(java.lang.String type) |
int |
getDateFieldSize() |
int |
getDateTimeFieldSize() |
com.ibm.tivoli.dataintegration.DataIntegrationServices |
getDisObject() |
static java.lang.String |
getDojoDirectory(javax.servlet.http.HttpServletRequest request)
Returns the directory under the /webclient/javascript path that contains the latest version of Dojo.
|
java.lang.String |
getElementProperty(org.w3c.dom.Element xmlControlElement,
ControlDescriptor cd,
java.lang.String propName)
Get's the property value from the descriptor or the XML element for the control.
|
EntityRelationshipModel |
getEntityRelationshipModel(java.lang.String app)
Returns the EntityRelationshipModel for the given app.
|
java.util.Properties |
getExcludeApps(java.lang.String appName) |
FieldClassInfo |
getFieldClassInfo(java.lang.String name)
Method to get a fieldClassInfo by class name out of the index.
|
int |
getFieldPadding() |
int |
getFieldSize(boolean onTable,
int maxtype,
int datalength)
Returns the size of the field based on its data type and data length.
|
int |
getFieldSize(boolean onTable,
java.lang.String maxtype,
int datalength)
Translates the textual representation of the maxtype and delegates to getFieldSize(int, int)
|
double |
getFieldSizeFactor() |
int |
getFieldSizeMaximum() |
static java.lang.String[] |
getHelpString(java.lang.String propvalue)
Get help string array of packagename and filename.
|
java.lang.String |
getHelpUrl(java.lang.String packagename,
java.lang.String filename,
java.lang.String langcode)
Get help url value
|
static java.lang.String |
getHost() |
static java.lang.String |
getHostAddress() |
LibraryDescriptor |
getLibraryDescriptor(java.lang.String libraryName,
WebClientSession wcs) |
static java.lang.Object[] |
getLocaleFromRequest(javax.servlet.http.HttpServletRequest request)
Returns an object array with two objects.
|
static java.lang.String |
getMaximoBaseURL(javax.servlet.http.HttpServletRequest request)
Reconstructs the BASE URL the client used to make the request.
|
static java.lang.String |
getMaximoRequestContextURL(javax.servlet.http.HttpServletRequest request)
Reconstructs the Maximo Request Context Path.
|
static java.lang.String |
getMaximoRequestURL(javax.servlet.http.HttpServletRequest request)
Reconstructs the URL the client used to make the request.
|
static int |
getMaxTypeAsInt(java.lang.String type)
Converts the string representation of a MAXTYPE to integer code.
|
static int |
getMTtenantId()
getMTtenantId() to get the tenant Id, for thread , it returns ID Of the tenant
|
static MXSession |
getMXSession(javax.servlet.http.HttpSession session) |
java.lang.String |
getOptionMenu(java.lang.String appName,
java.lang.String sigOption) |
static java.lang.String |
getPrependValue(java.lang.String prependString)
Used to get the prepend value which are otheriwse unsafe characters in XML
|
PresentationCache |
getPresentationCache()
Returns the PresentationCache for this jvm
|
java.lang.String |
getPropFromElement(org.w3c.dom.Element xmlControlElement,
java.lang.String propName) |
java.util.HashMap<java.lang.String,java.io.InputStream> |
getPropsFromJar(java.lang.String productDir) |
static int |
getRowFromId(java.lang.String id)
Parse the row out of an id String
|
java.lang.String |
getSkin()
Return the current skin being used system-wide.
|
java.util.HashMap<java.lang.String,java.io.InputStream> |
getStreamFromJar(java.lang.String productDir) |
java.util.HashMap<java.lang.String,java.lang.String> |
getSupportedContainer(java.lang.String ctrlType) |
int |
getTablecolSizeDefault() |
double |
getTablecolSizeFactor() |
int |
getTimeFieldSize() |
ToolBoxDescriptor |
getToolBoxDescriptor(java.lang.String toolboxName,
WebClientSession wcs) |
static java.lang.String |
getTranslatableLabels(java.lang.String type,
java.lang.String key) |
static java.lang.String |
getWebClientProperty(java.lang.String prop)
Retrieves a property from the webclient.property file.
|
static java.lang.String |
getWebClientProperty(java.lang.String prop,
java.lang.String defaultValue)
Retrieves a property from the webclient.property file.
|
static WebClientRuntime |
getWebClientRuntime()
Factory method that returns a reference to a webclientruntime object.
|
WebClientSession |
getWebClientSession(javax.servlet.http.HttpServletRequest request)
Returns the WebClientSession associated with the passed in request.
|
static java.lang.String |
getWebClientSystemProperty(java.lang.String prop)
Retrieves a property from the System Properties application.
|
static java.lang.String |
getWebClientSystemProperty(java.lang.String prop,
java.lang.String defaultValue)
Retrieves a property from the System Properties application.
|
static boolean |
hasInvalidXMLChars(java.lang.String value) |
boolean |
hasLicenseAccess(java.lang.String licensevalue) |
static boolean |
isAllLatin(java.lang.String titleString)
Determines if a string has a character that is not from LATIN based unicode blocks
This method is used in determining when and how much a graph titled can be wrapped. Non latin based characters take more pixels to display. |
boolean |
isCmsEnabled() |
static boolean |
isMTEnabled()
isMTEnabled() checks, is tenant enabled or not, it checks with MXserver
|
static boolean |
isNull(java.lang.String val)
Returns true if the specified string is null or empty string
|
static boolean |
isNullCheck(java.lang.String val) |
static boolean |
isNumeric(MboValueData mvData) |
static boolean |
isParam(javax.servlet.http.HttpServletRequest request,
java.lang.String val) |
static boolean |
isRunningInWebLogic()
Returns true to indicate that the application is running
in Oracle WebLogic Server, otherwise false.
|
static java.lang.String |
lineBreakString(java.lang.String toProcess,
int chunckSize)
Deprecated.
Since 7.5.0.3 Use
wrapText(String, int) |
static org.w3c.dom.Document |
loadDOM(java.io.InputStream inputStream)
Utility method to load a dom from a string and return the element
|
static org.w3c.dom.Document |
loadDOM(java.lang.String input)
Utility method to load a dom from a string and return the element
|
void |
loadHelpTaxonomy() |
static java.lang.String |
makesafejavascriptstringparameter(java.lang.String value)
Deprecated.
Deprecated as of 7.5.0.1: It is not possible to escape all characters using this method. Use
something like this instead: decodeURIComponent('<%=URLEncode.encode(value)%>')
|
static java.lang.String |
makesafevalue(java.lang.String value)
Deprecated.
Since 7.5.0.2 Use
HTML.encodeTolerant(String) |
static java.lang.String |
makesafeWithAmpersand(java.lang.String value)
Deprecated.
Since 7.5.0.1
|
static java.lang.String |
padString(java.lang.String value,
java.lang.String pad,
int length) |
static java.lang.String[] |
parseParamForRow(java.lang.String param)
Parse a request param and get a component id and row number
|
static java.lang.String[] |
parseParamForRow(WebClientSession wcs,
java.lang.String param)
Parse a request param and get a component id (original id, not the appreviated render id) and row number
|
AppDescriptor |
removeAppDescriptor(java.lang.String appName)
Removes the named app from the app descriptor index
|
java.lang.String |
removeAppXML(java.lang.String appName)
Remove string object of the presentation xml from Map
|
void |
removeControl(ControlInstance control) |
static java.lang.String |
removeInvalidXMLChars(java.lang.String value) |
LibraryDescriptor |
removeLibraryDescriptor(java.lang.String name)
Removes the named library from the library descriptor index
|
static java.lang.String |
removePrepend(java.lang.String value) |
static java.lang.String |
removeQuotes(java.lang.String value)
Only replaces double quote to allow placing as a field value
|
static java.lang.String |
removeRowMarker(java.lang.String id)
Remove a rowmarker from a string
|
static java.lang.String |
removeSharedAttributeRowMarker(java.lang.String id)
Removes the row marker and tablebody render id from the passed in id for a shared attribute component
|
WebClientSession |
removeWebClientSession(javax.servlet.http.HttpSession httpSession)
Add the webclient session to the session index.
|
static java.lang.String |
replaceLogicalsWithSymbols(java.lang.String value)
Deprecated.
Since 7.5.0.1
|
static java.lang.String |
replaceParams(java.lang.String message,
java.lang.String[] params)
Takes a String and params for replacement and returns new string
|
static java.lang.String |
replaceString(java.lang.String str,
java.lang.String pattern,
java.lang.String replacement)
Replace all occurrences of a pattern string with a replacement string.
|
void |
reset()
Reset all the internal structures to their initial states
|
static void |
resetAppDescCache()
Method to reset application description cache
|
static boolean |
send503Error(javax.servlet.http.HttpServletResponse response,
MXSession s,
boolean maxUserSessions)
If the maximo system property mxe.webclient.maxuisessionsend503 equals 1 (the default is 0)
this method will send a HttpServletResponse.SC_SERVICE_UNAVAILABLE error to the response and
return true.
|
static boolean |
send503Error(javax.servlet.http.HttpServletResponse response,
MXSession s,
java.lang.String url)
Deprecated.
see send503Error(HttpServletResponse response, MXSession s, boolean maxUserSessions)
|
static int |
sendEvent(WebClientEvent event)
A shorcut method to handleEvent(WebClientSession, WebClientEvent)
|
static int |
sendEvent(WebClientSession wcs,
java.lang.String targetId,
java.lang.String event,
java.lang.Object value)
A shortcut method that sonstructs a WebClientEvent and sends it to the event handler
|
void |
setAppXML(java.lang.String appName,
java.lang.String appXML)
Save string object of the presentation xml to avoid mbo calls to the database
|
void |
setRuntimeAppdescripterIndex(java.lang.String newApp,
AppDescriptor runTimeAd) |
void |
setSkin(java.lang.String skin)
Sets the current skin being used system-wide.
|
static java.lang.String |
shortenString(java.lang.String orig,
int checklength)
Returns a truncated string with training dots.
|
static java.lang.String |
stringToCodepoints(java.lang.String theString,
boolean escapeSpace,
boolean escapeUnicode)
Converts unicodes to encoded \uxxxx and writes out any of the characters in specialSaveChars with a
preceding slash
|
static char |
toHex(int nibble)
Convert a nibble to a hex character
|
static java.lang.String |
unFormatString(java.lang.String str)
Deprecated.
Since 7.5.0.2 Use
HTML.decode(String) |
static java.lang.String |
updateString(DataBean attrSource,
java.lang.String str,
java.lang.String attributes)
Formats a string with tokens {0}, {1} etc.
|
static java.lang.String |
wrapText(java.lang.String text,
int lineLength)
Wraps a string of text and puts a '\n' where breaks are needed but words are not truncated or broken.
|
static java.lang.String |
wrapText(java.lang.String text,
int lineLength,
boolean canBreakWords,
boolean hyphenateBreaks) |
static java.lang.String |
wrapText(java.lang.String text,
java.lang.String wrapString,
int lineLength)
Wraps a string of text and puts wrapString in the end where breaks are needed
but words are not truncated or broken.
|
public static final java.lang.String ROWMARKID
public static final int MSG_BTNOK
public static final int MSG_BTNCANCEL
public static final int MSG_BTNYES
public static final int MSG_BTNNO
public static final java.lang.String SPECIALSAVECHARS
public static final char[] HEXDIGITS
public static final java.util.HashMap<java.lang.Character,java.lang.Integer> keycode
public final RuntimeServiceability serviceability
public static final java.lang.String MXE_WEBCLIENT_MAXASYNCREQUESTSBEFORERENDER
public static final java.lang.String MXE_WEBCLIENT_ASYNCRENDERTIMELIMIT
public static final java.lang.String STARTCENTER_CACHE_NAME
public static final java.lang.String PORTLETLAYOUT_CACHE_NAME
public static final java.lang.String PORTLETLAYOUT_CACHE_UID
public static final java.lang.String PORTLET_CACHE_PREFIX
public static final java.lang.String PORTLETS_ALLOWED_CACHE
public static final java.lang.String STARTCENTER_UID_CACHE_NAME
public static final java.lang.String MXE_WEBCLIENT_DEEPREQUIREDCHECK
public static WebClientRuntime getWebClientRuntime()
public static org.w3c.dom.Document loadDOM(java.io.InputStream inputStream)
public static org.w3c.dom.Document loadDOM(java.lang.String input)
public WebClientSession getWebClientSession(javax.servlet.http.HttpServletRequest request)
psdi.webclient.system.session.WebClientSessionFactory.createSession(HttpServletRequest request, HttpServletResponse response)
public void addWebClientSession(javax.servlet.http.HttpSession httpSession, WebClientSession wcs)
psdi.webclient.system.session.WebClientSessionFactory.createSession(HttpServletRequest request, HttpServletResponse response)
public WebClientSession removeWebClientSession(javax.servlet.http.HttpSession httpSession)
public AppDescriptor getAppDescriptor(java.lang.String appName, WebClientSession wcs)
public PresentationCache getPresentationCache()
public AppDescriptor getAppDescriptor(java.lang.String appName)
public static java.lang.String getAppName(org.w3c.dom.Element element)
public LibraryDescriptor getLibraryDescriptor(java.lang.String libraryName, WebClientSession wcs)
public ToolBoxDescriptor getToolBoxDescriptor(java.lang.String toolboxName, WebClientSession wcs)
public CmsMenuDescriptor getCmsMenuDescriptor(java.lang.String mboName, java.lang.String menuItem)
public com.ibm.tivoli.contextmenuservice.ICmsRegistry getCMSRegistry() throws com.ibm.tivoli.contextmenuservice.exception.CmsException
com.ibm.tivoli.contextmenuservice.exception.CmsException
public boolean isCmsEnabled()
public void loadHelpTaxonomy()
public com.ibm.tivoli.dataintegration.DataIntegrationServices getDisObject()
public com.ibm.json.java.JSONObject getCmsMenuDescriptorObject(DataBean bean, java.lang.String menuId)
public ControlDescriptor getControlDescriptor(java.lang.String type)
public ComponentDescriptor getComponentDescriptor(java.lang.String type)
public java.lang.String getElementProperty(org.w3c.dom.Element xmlControlElement, ControlDescriptor cd, java.lang.String propName)
public java.util.HashMap<java.lang.String,java.io.InputStream> getStreamFromJar(java.lang.String productDir) throws java.lang.Exception
java.lang.Exception
public java.lang.String getOptionMenu(java.lang.String appName, java.lang.String sigOption)
public int getFieldSize(boolean onTable, java.lang.String maxtype, int datalength)
maxtype
- the type of the field, such as ALN, UPPER, YORNdatalength
- the data length of the fieldgetFieldSize(int, int)
public int getFieldSize(boolean onTable, int maxtype, int datalength)
If range values are found for this maxtype, the method will return the size of the largest configuration range which range value ("upper" or "below", does not actually matter) does not exceed the field size obtained as desctibed in the previous paragraph, or the size of the last range. It is assumed that the ranges in the configuration are ordered by increasing range value.
The field size can exceed the maximum field size from the configuration if the particular data type is configured so. the maxtype code for the field (see MXFormat)
datalength
- the data length of the fieldgetMaxTypeAsInt(String)
public static int getMaxTypeAsInt(java.lang.String type)
MXFormat
public int getFieldPadding()
public double getFieldSizeFactor()
public int getFieldSizeMaximum()
public double getTablecolSizeFactor()
public int getTablecolSizeDefault()
public int getDateFieldSize()
public int getDateTimeFieldSize()
public int getTimeFieldSize()
public static java.lang.String getWebClientProperty(java.lang.String prop)
prop
- property to getpublic static java.lang.String getWebClientProperty(java.lang.String prop, java.lang.String defaultValue)
prop
- property to getdefaultValue
- default the value to return if the property doesn't exist.public static java.lang.String[] getHelpString(java.lang.String propvalue)
public java.lang.String getHelpUrl(java.lang.String packagename, java.lang.String filename, java.lang.String langcode)
public static java.lang.String getWebClientSystemProperty(java.lang.String prop)
prop
- name of property to getpublic static java.lang.String getWebClientSystemProperty(java.lang.String prop, java.lang.String defaultValue)
prop
- property to getdefaultValue
- default the value to return if the property doesn't exist.@TraceDisabled public static boolean isNull(java.lang.String val)
@TraceDisabled public static boolean isNullCheck(java.lang.String val)
public void removeControl(ControlInstance control)
public void reset()
public static WebClientEvent checkSession(WebClientSession wcs, WebClientEvent event) throws java.io.IOException
java.io.IOException
public static java.lang.String getMaximoRequestURL(javax.servlet.http.HttpServletRequest request)
public static java.lang.String getMaximoBaseURL(javax.servlet.http.HttpServletRequest request)
public static java.lang.String getMaximoRequestContextURL(javax.servlet.http.HttpServletRequest request)
public static MXSession getMXSession(javax.servlet.http.HttpSession session)
public static int sendEvent(WebClientSession wcs, java.lang.String targetId, java.lang.String event, java.lang.Object value)
wcs
- the session contexttargetId
- event parameterevent
- event parametervalue
- event parameterhandleEvent(WebClientSession, WebClientEvent)
,
WebClientEvent(String, String, Object, WebClientSession)
public static int sendEvent(WebClientEvent event)
event
- the event to sendhandleEvent(WebClientSession, WebClientEvent)
public static java.lang.String removePrepend(java.lang.String value)
public static java.lang.String makesafevalue(java.lang.String value)
HTML.encodeTolerant(String)
value
- the value to be protectedpublic static java.lang.String makesafeWithAmpersand(java.lang.String value)
public static java.lang.String decodeSafevalue(java.lang.String value)
HTML.decode(String)
value
- the value to be protectedpublic static java.lang.String removeQuotes(java.lang.String value)
public static java.lang.String replaceLogicalsWithSymbols(java.lang.String value)
HTML#decode(String)}
public static java.lang.String makesafejavascriptstringparameter(java.lang.String value)
Replaces: \n Newline. \r Carriage return. \t Horizontal tab. \' Single quote or apostrophe. \" Double quote. \\ Backslash.
Does not replace: \b Backspace. \f Form feed. \O Nul character. \v Vertical tab.
value
- the value to be protectedpublic static java.lang.String formatDataString(java.lang.String dataString)
public static boolean hasInvalidXMLChars(java.lang.String value)
http://www.w3.org/TR/REC-xml/#charsets}
public static java.lang.String removeInvalidXMLChars(java.lang.String value)
http://www.w3.org/TR/REC-xml/#charsets}
public static java.lang.String getHost()
public static java.lang.String wrapText(java.lang.String text, int lineLength)
public static java.lang.String wrapText(java.lang.String text, java.lang.String wrapString, int lineLength)
public static java.lang.String wrapText(java.lang.String text, int lineLength, boolean canBreakWords, boolean hyphenateBreaks)
public static java.lang.String getHostAddress()
public static boolean isParam(javax.servlet.http.HttpServletRequest request, java.lang.String val)
public static java.lang.String replaceString(java.lang.String str, java.lang.String pattern, java.lang.String replacement)
str
- String to searchpattern
- string to replacereplacement
- string to replace patter withpublic static java.lang.String updateString(DataBean attrSource, java.lang.String str, java.lang.String attributes)
str
- String to searchattrSource
- Data source to useattributes
- comma delimited string of attributespublic static java.lang.String escapeForJScript(java.lang.String str)
str
- the string that needs to be checked and escapedpublic static boolean isNumeric(MboValueData mvData)
public static java.lang.String replaceParams(java.lang.String message, java.lang.String[] params)
public static java.lang.String getPrependValue(java.lang.String prependString)
value
- The string to be protectedpublic static java.lang.String formatStringForTags(java.lang.String str)
HTML.encodeTolerant(String)
the
- string that needs to be checked and escapedpublic static java.lang.String unFormatString(java.lang.String str)
HTML.decode(String)
public static java.lang.String createStatusText(MXException[] warnings, WebClientSession wcs)
public static java.lang.String findAttribute(java.lang.String name, org.w3c.dom.Element element)
public static org.w3c.dom.Element findElement(org.w3c.dom.Element element, java.lang.String id)
element
- The root of the searched element treeid
- The string id of the element that is been searched in the librarypublic static org.w3c.dom.Element findElement(org.w3c.dom.Element element, java.lang.String id, boolean isCaseSensitive)
element
- The root of the searched element treeid
- The string id of the element that is been searched in the libraryisCaseSensitive
- True for case sensitive search, false for case insensitive searchpublic static org.w3c.dom.Element findChildElement(org.w3c.dom.Element element, java.lang.String id, boolean isCaseSensitive)
element
- The root of the searched element treeid
- The string id of the element that is been searched in the libraryisCaseSensitive
- True for case sensitive search, false for case insensitive searchpublic static org.w3c.dom.Element findElementByTagName(org.w3c.dom.Element element, java.lang.String tagName)
public static org.w3c.dom.Element findChildElementByTagName(org.w3c.dom.Element element, java.lang.String tagName)
public static java.lang.String stringToCodepoints(java.lang.String theString, boolean escapeSpace, boolean escapeUnicode)
public static char toHex(int nibble)
nibble
- the nibble to convert.public static java.lang.String csvStringFromArray(java.lang.Object[] values)
public AppDescriptor removeAppDescriptor(java.lang.String appName)
appName
- the name of the app to removepublic LibraryDescriptor removeLibraryDescriptor(java.lang.String name)
name
- the name of the app to removepublic static java.lang.String doubleUpQuotes(java.lang.String inputData)
inputData
- The data to be protectedpublic java.util.HashMap<java.lang.String,java.lang.String> getSupportedContainer(java.lang.String ctrlType)
public java.lang.String getPropFromElement(org.w3c.dom.Element xmlControlElement, java.lang.String propName)
public void setRuntimeAppdescripterIndex(java.lang.String newApp, AppDescriptor runTimeAd)
public static long formatStringUniqueId(java.lang.String tempStr, java.util.Locale userlocale)
public static java.lang.String[] breakupMsgLookup(java.lang.String lookup)
ui#startlable
will be broken into an array of 2 of ui
and startlable
public java.lang.String getAppXML(java.lang.String appName)
public void setAppXML(java.lang.String appName, @TraceMaskValue java.lang.String appXML)
public java.lang.String removeAppXML(java.lang.String appName)
public boolean hasLicenseAccess(java.lang.String licensevalue)
public java.lang.String getSkin()
public void setSkin(java.lang.String skin)
public static java.lang.String[] parseParamForRow(WebClientSession wcs, java.lang.String param)
public static java.lang.String[] parseParamForRow(java.lang.String param)
public static java.lang.String addRowMarker(java.lang.String id, int row)
public static java.lang.String removeSharedAttributeRowMarker(java.lang.String id)
public static java.lang.String removeRowMarker(java.lang.String id)
public static int getRowFromId(java.lang.String id)
public static boolean containsRowMarker(java.lang.String value)
public static java.lang.String lineBreakString(java.lang.String toProcess, int chunckSize)
wrapText(String, int)
splitString("Hello Maximo World!",5, "\n")
results in public static boolean isAllLatin(java.lang.String titleString)
public static java.lang.String shortenString(java.lang.String orig, int checklength)
public static void addToTranslatableLabels(java.lang.String type, java.lang.String key)
public static java.lang.String getTranslatableLabels(java.lang.String type, java.lang.String key)
public java.util.Properties getExcludeApps(java.lang.String appName)
public void cacheExcludeApps()
public java.util.HashMap<java.lang.String,java.io.InputStream> getPropsFromJar(java.lang.String productDir) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object[] getLocaleFromRequest(javax.servlet.http.HttpServletRequest request)
public static boolean send503Error(javax.servlet.http.HttpServletResponse response, MXSession s, boolean maxUserSessions) throws java.io.IOException
java.io.IOException
public static boolean send503Error(javax.servlet.http.HttpServletResponse response, MXSession s, java.lang.String url) throws java.io.IOException
url
- - Not usedjava.io.IOException
public static java.lang.String getDojoDirectory(javax.servlet.http.HttpServletRequest request)
request
- A servlet request that is used gain access to the /webclient/javascript resource path.public EntityRelationshipModel getEntityRelationshipModel(java.lang.String app)
app
- the id of the app to get the EntityRelationshipModel forpublic static java.lang.String createSendEventString(java.lang.String event, java.lang.String target, java.lang.String val, int jsMethod)
event
- e.g changeapptarget
- e.g startcntrval
- e.g. assetjsMethod
- {1 for onclick, 2 for onkeypress, 3 or default for both)public boolean canUseStaticIds()
public FieldClassInfo addFieldClassInfo(FieldClassInfo fci)
public FieldClassInfo getFieldClassInfo(java.lang.String name)
public static java.lang.String getAppDescFromCache(java.lang.String appId, MXSession mxs)
appId
- Application Idmxs
- MXSessionpublic static java.lang.String getAppDescFromCache(java.lang.String appId, MXSession mxs, java.lang.String langCode)
appId
- Application Idmxs
- MXSessionlangCode
- Language CodeMXException
java.rmi.RemoteException
public static void resetAppDescCache()
public static boolean isMTEnabled()
public static int getMTtenantId()
public static java.lang.String getCacheIdForAppName(java.lang.String Id)
appId
- Application Idpublic boolean canBeUsedInRecordHover(java.lang.String controlType)
public static java.util.Map<java.lang.String,SigOptionInfo> getAppSigOptionList(java.lang.String appId)
MXException
java.rmi.RemoteException
public static java.lang.String padString(java.lang.String value, java.lang.String pad, int length)
public static boolean isRunningInWebLogic()