public class JcmsContext extends java.lang.Object implements JcmsConstants
Channel.getCurrentJcmsContext()
.Modifier and Type | Field and Description |
---|---|
protected Browser |
browser |
protected Caddy |
caddy |
protected static Channel |
channel |
protected boolean |
inFO |
protected boolean |
initDone |
protected boolean |
initWorkspace |
protected boolean |
isAdmin |
protected boolean |
isAjaxRequest |
protected boolean |
isDBMember |
protected boolean |
isDebug |
protected boolean |
isLogged |
protected Member |
loggedMember |
protected javax.servlet.http.HttpServletRequest |
request |
protected javax.servlet.http.HttpServletResponse |
response |
static java.lang.String |
REVISION |
protected java.lang.String |
userCountry |
protected java.lang.String |
userLang |
protected java.util.Locale |
userLocale |
protected Workspace |
workspace |
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, ICON_ARCHIVE, ICON_LOCK, ICON_LOCK_STRONG, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, OP_CREATE, OP_CREATE_STR, OP_DEEP_COPY, OP_DEEP_COPY_STR, OP_DEEP_DELETE, OP_DEEP_DELETE_STR, OP_DELETE, OP_DELETE_STR, OP_MERGE, OP_MERGE_STR, OP_UPDATE, OP_UPDATE_STR, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SESSION_AUTHORIZED_FILENAMES_SET, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, TYPES_ICON_ALT_PROP, TYPES_ICON_SUFFIX_PROP, TYPES_ICON_TITLE_PROP, TYPES_PREFIX_PROP, TYPES_THUMB_SUFFIX_PROP, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, URL_REGEXP, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR
Constructor and Description |
---|
JcmsContext()
If you use this constructor, request must be initialized at a later time
(This constructor is kept to allow JcmsJspContext to be initialized as a
bean, with pageContext parameter)
|
JcmsContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
void |
addCookie(javax.servlet.http.Cookie cookie)
Adds the specified cookie to the response (or in a http-equiv is the
response has already been commited, in this case, only for front office
use).
|
static void |
addMsg(javax.servlet.http.HttpServletRequest request,
JcmsMessage msg)
Add JCMS info message for specified request (displayed through doMessageBox.jsp)
|
void |
addMsg(JcmsMessage msg)
Add JCMS info message for specified request (displayed through doMessageBox.jsp)
|
static void |
addMsgSession(javax.servlet.http.HttpServletRequest request,
JcmsMessage msg)
Add JCMS info message for specified session (displayed through
doMessageBox.jsp)
|
void |
addMsgSession(JcmsMessage msg)
Add JCMS info message for current session (displayed through
doMessageBox.jsp)
|
static java.util.List<JcmsMessage> |
applySelector(java.util.List<JcmsMessage> msgList,
JcmsMessageSelector selector)
Apply given
JcmsMessageSelector by removing non selected
JcmsMessage from the given List . |
void |
forceUpdate()
Will force an update of all JcmsContext variables (retrieve it from the
request).
|
void |
forceWorkspaceUpdate()
Force Workspace update on next getWorkspace()
|
java.lang.String |
getBaseUrl()
Convenient method which returns ServletUtil.getBaseUrl(request);
|
Browser |
getBrowser()
Returns the Client Browser computed for this session identified from
userAgent.
|
Caddy |
getCaddy()
Returns the caddy stored in current session.
|
java.lang.String |
getContextPath()
Convenient method which returns ServletUtil.getContextPath(request)
|
static java.lang.String |
getErrorMsg(javax.servlet.http.HttpServletRequest request)
Returns the error message in the J2EE request.
|
static java.util.List<JcmsMessage> |
getErrorMsgList(javax.servlet.http.HttpServletRequest request)
Returns the error message in the J2EE request.
|
static java.lang.String |
getErrorMsgSession(javax.servlet.http.HttpServletRequest request)
Returns the error message in the J2EE session.
|
static java.util.List<JcmsMessage> |
getErrorMsgSessionList(javax.servlet.http.HttpServletRequest request)
Returns the error message in the J2EE session.
|
static java.lang.String |
getInfoMsg(javax.servlet.http.HttpServletRequest request)
Returns the information message in the J2EE request.
|
static java.util.List<JcmsMessage> |
getInfoMsgList(javax.servlet.http.HttpServletRequest request)
Returns the information message in the J2EE request.
|
static java.lang.String |
getInfoMsgSession(javax.servlet.http.HttpServletRequest request)
Returns the information message in the J2EE session.
|
static java.util.List<JcmsMessage> |
getInfoMsgSessionList(javax.servlet.http.HttpServletRequest request)
Returns the information message in the J2EE session.
|
Member |
getLoggedMember()
Retrieve the loggedMember variable for this context.
|
static java.util.List<JcmsMessage> |
getMsgList(javax.servlet.http.HttpServletRequest request)
Returns the information message in the J2EE request.
|
static java.util.List<JcmsMessage> |
getMsgSessionList(javax.servlet.http.HttpServletRequest request)
Returns the message list in the J2EE session.
|
javax.servlet.http.HttpServletRequest |
getRequest() |
javax.servlet.http.HttpServletResponse |
getResponse() |
javax.servlet.http.HttpSession |
getSession()
Shorter Method to get Session from request
|
java.lang.Object |
getUploadedFile(java.lang.String field,
boolean isFileDocument,
boolean override)
Performs upload for the given field to JCMS upload directory.
|
java.util.List<DocUploadInfo> |
getUploadedFileList(java.lang.String field,
boolean isFileDocument,
boolean override)
Performs upload for the given field to JCMS upload directory.
|
java.lang.String |
getUrlWithCommonUpdatedParams(java.lang.String[] names,
java.lang.String[] values,
boolean encodeParams) |
java.lang.String |
getUserCountry()
Retrieves the user country variable for this context.
|
java.lang.String |
getUserLang()
Retrieves the user lang variable for this context.
|
java.util.Locale |
getUserLocale()
Retrieve the userLocale variable for this context.
|
static java.lang.String |
getWarningMsg(javax.servlet.http.HttpServletRequest request)
Returns the warning message in the J2EE request.
|
static java.util.List<JcmsMessage> |
getWarningMsgList(javax.servlet.http.HttpServletRequest request)
Returns the warning message in the J2EE request.
|
static java.lang.String |
getWarningMsgSession(javax.servlet.http.HttpServletRequest request)
Returns the warning message in the J2EE session.
|
static java.util.List<JcmsMessage> |
getWarningMsgSessionList(javax.servlet.http.HttpServletRequest request)
Returns the warning message in the J2EE session.
|
Workspace |
getWorkspace()
Retrieve the current Workspace variable for this context either from
request if inFO or from session if in back office.
|
java.lang.String |
glp(java.lang.String key,
java.lang.Object... params)
Resolve a language property in the user language of the current request.
|
boolean |
isAdmin()
Return the admin status of the current logged user.
|
boolean |
isAjaxRequest()
Check if the current request is an Ajax Request (performed through by
prototypejs API).
|
boolean |
isDBMember()
Return the DB status of the current logged user.
|
boolean |
isDebug()
Return the debug state of the request depending on request parameter
"debug"
|
boolean |
isInFrontOffice()
retrieve the inFO variable for this context.
|
boolean |
isLogged()
Return the user logging status for current request.
|
boolean |
isWebdavAccess()
Check if the current request is a Webdav Access
|
static void |
removeMessage(javax.servlet.http.HttpServletRequest request,
JcmsMessage jcmsMessage)
Remove specified messages from the session and request message list.
|
static void |
removeMessage(javax.servlet.http.HttpServletRequest request,
java.util.List<JcmsMessage> messages)
Remove specified messages from the session and request message list.
|
protected DocUploadInfo |
retrieveUploadedFile(org.apache.commons.fileupload.FileItem item,
boolean isFileDocument,
boolean override)
Performs upload of a given FileItem to JCMS upload directory.
|
static java.util.List<JcmsMessage> |
select(java.util.Collection<? extends JcmsMessage> dataColl,
JcmsMessageSelector selector)
Perform a selection on a
Collection of
JcmsMessage using the given JcmsMessageSelector |
void |
sendForbidden()
Send a redirect to the forbidden page
|
static void |
sendForbidden(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Send a redirect to the forbidden page if parameter forbidden is set, then
redirect to the given url without logging anything.
|
void |
sendRedirect(Data data)
Redirect to the given data (eg a publication, a category, ...)
|
void |
sendRedirect(java.lang.String url)
Redirect current request to given URL.
|
static void |
sendRedirect(java.lang.String url,
boolean checkUrlSecurity,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Redirect current request to given URL.
|
static void |
sendRedirect(java.lang.String url,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Redirect current request to given URL.
|
void |
setErrorMsg(java.lang.String msg)
Set JCMS warning message for current request (displayed through
doMessageBox.jsp)
|
static void |
setErrorMsg(java.lang.String msg,
javax.servlet.http.HttpServletRequest request)
Set JCMS warning message for specified request (displayed through
doMessageBox.jsp)
|
void |
setErrorMsgSession(java.lang.String msg)
Set JCMS warning message for current session (displayed through
doMessageBox.jsp)
|
static void |
setErrorMsgSession(java.lang.String msg,
javax.servlet.http.HttpServletRequest request)
Set JCMS warning message for specified session (displayed through
doMessageBox.jsp)
|
void |
setInfoMsg(java.lang.String msg)
Set JCMS info message for current request (displayed through
doMessageBox.jsp)
|
static void |
setInfoMsg(java.lang.String msg,
javax.servlet.http.HttpServletRequest request)
Set JCMS info message for specified request (displayed through
doMessageBox.jsp)
|
void |
setInfoMsgSession(java.lang.String msg)
Set JCMS info message for current session (displayed through
doMessageBox.jsp)
|
static void |
setInfoMsgSession(java.lang.String msg,
javax.servlet.http.HttpServletRequest request)
Set JCMS info message for specified session (displayed through
doMessageBox.jsp)
|
void |
setLoggedMember(Member mbr)
Set the logged member for this context.
|
void |
setRequest(javax.servlet.http.HttpServletRequest request)
Setter for the request.
|
void |
setResponse(javax.servlet.http.HttpServletResponse response)
Setter for the response.
|
void |
setWarningMsg(java.lang.String msg)
Set JCMS warning message for current request (displayed through
doMessageBox.jsp)
|
static void |
setWarningMsg(java.lang.String msg,
javax.servlet.http.HttpServletRequest request)
Set JCMS warning message for specified request (displayed through
doMessageBox.jsp)
|
void |
setWarningMsgSession(java.lang.String msg)
Set JCMS warning message for current session (displayed through
doMessageBox.jsp)
|
static void |
setWarningMsgSession(java.lang.String msg,
javax.servlet.http.HttpServletRequest request)
Set JCMS warning message for specified session (displayed through
doMessageBox.jsp)
|
boolean |
validateRegexp(java.lang.String regexp)
Validate a pattern as a Perl regexp and set a convienient warning message
in the request if not valid.
|
boolean |
validateSchedule(java.lang.String param)
Validate a string as valid
Schedule and set a convienient warning message
in the request if not valid. |
public static final java.lang.String REVISION
protected static final Channel channel
protected boolean initDone
protected boolean initWorkspace
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected boolean isLogged
protected boolean isAdmin
protected boolean isDBMember
protected boolean isDebug
protected Member loggedMember
protected java.util.Locale userLocale
protected java.lang.String userLang
protected java.lang.String userCountry
protected Workspace workspace
protected Browser browser
protected Caddy caddy
protected boolean inFO
protected boolean isAjaxRequest
public JcmsContext()
public JcmsContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public void forceUpdate()
public void setRequest(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest from twhich to retrieve all jcms context
information.public javax.servlet.http.HttpServletRequest getRequest()
public void setResponse(javax.servlet.http.HttpServletResponse response)
sendRedirect(String)
response
- the HttpServletResponse to use when needed.public javax.servlet.http.HttpServletResponse getResponse()
public javax.servlet.http.HttpSession getSession()
public java.lang.Object getUploadedFile(java.lang.String field, boolean isFileDocument, boolean override)
field
- the submited fieldisFileDocument
- upload to a FileDocument path upload/docs/...override
- If file already exists, override or rename with current timemillisUploadManager.getUploadedFile(JcmsContext, String, boolean, boolean)
public java.util.List<DocUploadInfo> getUploadedFileList(java.lang.String field, boolean isFileDocument, boolean override)
field
- the submited fieldisFileDocument
- upload to a FileDocument upload/docs/...override
- If file already exists, override or rename with current timemillisUploadManager.getUploadedFileList(JcmsContext, String, boolean, boolean)
protected DocUploadInfo retrieveUploadedFile(org.apache.commons.fileupload.FileItem item, boolean isFileDocument, boolean override)
item
- the FileItem handling uploaded file informationisFileDocument
- upload to a FileDocument path upload/docs/...override
- If file already exists, override or rename with current timemillisUploadManager.retrieveUploadedFile(FileItem, boolean, boolean)
public boolean isLogged()
public boolean isWebdavAccess()
public boolean isDebug()
public boolean isAdmin()
public boolean isDBMember()
public Member getLoggedMember()
public void setLoggedMember(Member mbr)
This methods only changed the logged member for this context instance, this
method is provided in case you want to force the logged member in
bean/handlers.
It will NOT change the logged member of the current request, if you want
to do that, see
AuthenticationHandler
.
mbr
- the Member to set as the currently logged Member.public java.lang.String getUserLang()
public java.lang.String getUserCountry()
public java.util.Locale getUserLocale()
public boolean isInFrontOffice()
public void forceWorkspaceUpdate()
public Workspace getWorkspace()
public Browser getBrowser()
public Caddy getCaddy()
public boolean isAjaxRequest()
public void sendRedirect(Data data) throws java.io.IOException
data
- the data to redirect to.java.io.IOException
- if an error occured while writing in response headerssendRedirect(String, HttpServletRequest, HttpServletResponse)
public void sendRedirect(java.lang.String url) throws java.io.IOException
url
- the url to redirect to.java.io.IOException
- if an error occured while writing in response headerssendRedirect(String, HttpServletRequest, HttpServletResponse)
public void sendForbidden() throws java.io.IOException
java.io.IOException
- if an error occured while writing in response headerssendForbidden(HttpServletRequest, HttpServletResponse)
public static void sendRedirect(java.lang.String url, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
The specified URL must match security configuration of
HttpUtil.isValidHttpUrl(String)
in order for the redirect
to be performed. If the URL does not validate those requirement, the
request is redirected to the webapp root.
As of current implementation,, the redirect will not happen using HTTP if the response has already been commited. Instead a request attribute "redirect" is set with the value of the url, it is later used by doDisplayBuffer to redirect the user with a javascript hack (applies only to front office).
url
- the url to redirect to.request
- the current request from which the redirect is performedresponse
- the response in which to write redirect headersjava.io.IOException
- if an error occured while writing in response headerspublic static void sendRedirect(java.lang.String url, boolean checkUrlSecurity, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
If checkUrlSecurity
param is set to true, the specified URL must match
security configuration of HttpUtil.isValidHttpUrl(String)
in order
for the redirect to be performed. If the URL does not validate those requirement,
the request is redirected to the webapp root.
It is highly recommended to always use method
sendRedirect(String, HttpServletRequest, HttpServletResponse)
which always
enable this verification. Use this method and checkUrlSecurity=false
only
if you are absolutely sure of the specified URL security and can trust its value.
As of current implementation,, the redirect will not happen using HTTP if the response has already been commited. Instead a request attribute "redirect" is set with the value of the url, it is later used by doDisplayBuffer to redirect the user with a javascript hack (applies only to front office).
url
- the url to redirect to.checkUrlSecurity
- if true, check the URL for validity to prevent phishing, unwanted external
redirect and other forward attack. set to false to disable those verification
(which is not recommended)request
- the current request from which the redirect is performedresponse
- the response in which to write redirect headersjava.io.IOException
- if an error occured while writing in response headerssendRedirect(String, HttpServletRequest, HttpServletResponse)
public static void sendForbidden(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
request
- the current request from which the forbidden redirect is performedresponse
- the response in which to write forbidden redirect headersjava.io.IOException
- if an error occured while writing in response headerspublic void addCookie(javax.servlet.http.Cookie cookie)
cookie
- the cookie to be addedpublic java.lang.String getContextPath()
ServletUtil.getContextPath(HttpServletRequest)
public java.lang.String getBaseUrl()
ServletUtil.getBaseUrl(HttpServletRequest)
public java.lang.String getUrlWithCommonUpdatedParams(java.lang.String[] names, java.lang.String[] values, boolean encodeParams)
names
- an array of parameter names added or updated the urlvalues
- an array of values added or updated the url corresponding to namesencodeParams
- whether to do a encodeURL on given param (if false, don't forget
to do the encodeURL yourself on the parameters which need it! it
is provided as a performance boost because encodeURL can be slow)PortalManager.getUrlWithCommonUpdatedParams(HttpServletRequest,
String[], String[], boolean)
public void setInfoMsg(java.lang.String msg)
msg
- the message to displaypublic void setInfoMsgSession(java.lang.String msg)
msg
- the message to displaypublic void setWarningMsg(java.lang.String msg)
msg
- the message to displaypublic void setWarningMsgSession(java.lang.String msg)
msg
- the message to displaypublic void setErrorMsg(java.lang.String msg)
msg
- the message to displaypublic void setErrorMsgSession(java.lang.String msg)
msg
- the message to displaypublic static void setInfoMsg(java.lang.String msg, javax.servlet.http.HttpServletRequest request)
msg
- the message to displayrequest
- the current request from which the message is being setpublic static void setInfoMsgSession(java.lang.String msg, javax.servlet.http.HttpServletRequest request)
msg
- the message to displayrequest
- the current request from which the message is being setpublic static void setWarningMsg(java.lang.String msg, javax.servlet.http.HttpServletRequest request)
msg
- the message to displayrequest
- the current request from which the message is being setpublic static void setWarningMsgSession(java.lang.String msg, javax.servlet.http.HttpServletRequest request)
msg
- the message to displayrequest
- the current request from which the message is being setpublic static void setErrorMsg(java.lang.String msg, javax.servlet.http.HttpServletRequest request)
msg
- the message to displayrequest
- the current request from which the message is being setpublic static void setErrorMsgSession(java.lang.String msg, javax.servlet.http.HttpServletRequest request)
msg
- the message to displayrequest
- the current request from which the message is being setpublic static java.lang.String getInfoMsg(javax.servlet.http.HttpServletRequest request)
request
- the request to check forpublic static java.lang.String getInfoMsgSession(javax.servlet.http.HttpServletRequest request)
request
- the request to check forpublic static java.lang.String getWarningMsg(javax.servlet.http.HttpServletRequest request)
request
- the request to check forpublic static java.lang.String getWarningMsgSession(javax.servlet.http.HttpServletRequest request)
request
- the request to check forpublic static java.lang.String getErrorMsg(javax.servlet.http.HttpServletRequest request)
request
- the request to check forpublic static java.lang.String getErrorMsgSession(javax.servlet.http.HttpServletRequest request)
request
- the request to check forpublic static void removeMessage(javax.servlet.http.HttpServletRequest request, java.util.List<JcmsMessage> messages)
request
- the current request must not be nullmessages
- a list of JcmsMessage to removepublic static void removeMessage(javax.servlet.http.HttpServletRequest request, JcmsMessage jcmsMessage)
request
- the current request must not be nulljcmsMessage
- the message to removepublic void addMsg(JcmsMessage msg)
msg
- the message to displaypublic void addMsgSession(JcmsMessage msg)
msg
- the message to displaypublic static void addMsg(javax.servlet.http.HttpServletRequest request, JcmsMessage msg)
msg
- the message to displayrequest
- the current request from which the message is being addedpublic static void addMsgSession(javax.servlet.http.HttpServletRequest request, JcmsMessage msg)
msg
- the message to displayrequest
- the current request from which the message is being addedpublic static java.util.List<JcmsMessage> getMsgList(javax.servlet.http.HttpServletRequest request)
request
- the request to check forpublic static java.util.List<JcmsMessage> getMsgSessionList(javax.servlet.http.HttpServletRequest request)
request
- the request to check forpublic static java.util.List<JcmsMessage> getInfoMsgList(javax.servlet.http.HttpServletRequest request)
request
- the request to check forpublic static java.util.List<JcmsMessage> getInfoMsgSessionList(javax.servlet.http.HttpServletRequest request)
request
- the request to check forpublic static java.util.List<JcmsMessage> getWarningMsgList(javax.servlet.http.HttpServletRequest request)
request
- the request to check forpublic static java.util.List<JcmsMessage> getWarningMsgSessionList(javax.servlet.http.HttpServletRequest request)
request
- the request to check forpublic static java.util.List<JcmsMessage> getErrorMsgList(javax.servlet.http.HttpServletRequest request)
request
- the request to check forpublic static java.util.List<JcmsMessage> getErrorMsgSessionList(javax.servlet.http.HttpServletRequest request)
request
- the request to check forpublic java.lang.String glp(java.lang.String key, java.lang.Object... params)
key
- the language property to resolve, for example "ui.com.lbl.contents"params
- an array of parameters to use when resolving the format of the given propertypublic boolean validateSchedule(java.lang.String param)
Schedule
and set a convienient warning message
in the request if not valid.param
- The parameter to validateSchedule
stringpublic boolean validateRegexp(java.lang.String regexp)
regexp
- The pattern to validatepublic static java.util.List<JcmsMessage> select(java.util.Collection<? extends JcmsMessage> dataColl, JcmsMessageSelector selector)
Collection
of
JcmsMessage
using the given JcmsMessageSelector
dataColl
- the Collection
of Data
to select.selector
- the DataSelector
to use.List
of JcmsMessage
.public static java.util.List<JcmsMessage> applySelector(java.util.List<JcmsMessage> msgList, JcmsMessageSelector selector)
JcmsMessageSelector
by removing non selected
JcmsMessage
from the given List
. msgList
- a List
of JcmsMessage
from which to
remove non selected data.selector
- the JcmsMessageSelector
to applyList
that was given but modified.Copyright © 2001-2010 Jalios SA. All Rights Reserved.