Package com.jalios.jcms
Class ResourceHelper
java.lang.Object
com.jalios.jcms.ResourceHelper
- All Implemented Interfaces:
JPropertiesListener
Helper class used to retrieve relative paths of jsp/servlet or icons
used for various features of JCMS.
- Since:
- jcms-5.7.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty used to retrieve the path to the admin topbar.static final StringProperty prefix used to declare non transactional path, i.e.static final StringProperty prefix used to declare a public path when site is private.static final StringProperty used to retrieve the path to the default Portlet Wrapper.static final StringProperty used to retrieve the path to the default template usage.static final StringProperty used to retrieve the firebase account informationsstatic final StringProperty used to retrieve the firebase web account informationsstatic final StringProperty used to retrieve the path of the forbidden jsp/servlet.static final StringProperty used to retrieve the path of the default DBmembers' icon.static final StringProperty used to retrieve the path of the default ldap DBmembers' icon.static final StringProperty used to retrieve the path of groups' icon.static final StringProperty used to retrieve the path of ldap groups' icon.static final StringProperty used to retrieve the path of ldap parent groups' icon.static final StringProperty used to retrieve the path of parent groups' icon.static final StringProperty used to retrieve the path of the logback icon.static final StringProperty used to retrieve the path of the login icon.static final StringProperty used to retrieve the path of the logout icon.static final StringProperty used to retrieve the path of admins' member icon.static final StringProperty used to retrieve the path of the contacts' icon.static final StringProperty used to retrieve the path of the default members' icon.static final StringProperty used to retrieve the path of admins' ldap member icon.static final StringProperty used to retrieve the path of the default ldap members' icon.static final StringProperty used to retrieve the path of ldap writers' member icon.static final StringProperty used to retrieve the path of ldap workspace admins' ldap member icon.static final StringProperty used to retrieve the path of writers' icon.static final StringProperty used to retrieve the path of workspace admins' member icon.static final StringProperty used to retrieve the path of the tooltip icon.static final StringRequest attribute that can be set as boolean true to indicate the JSP override that was just run is cancelled and original JSP can process normally.static final StringProperty prefix used to declare override of JSP.static final StringProperty used to retrieve the path of the login jsp/servlet.static final StringProperty used to retrieve the path of the loggout jsp/servlet.static final StringProperty used to retrieve path of the mail password jsp/servlet.static final StringProperty used to retrieve the path of jsp/servlet to display a member.static final StringProperty used to retrieve the path of the JSP to display the Member photo.static final StringProperty used to retrieve the path of jsp/servlet to display a member profile.static final StringProperty used to retrieve the path of jsp/servlet to display a member profile.static final StringProperty used to retrieve the jsp sent as a notificationstatic final StringProperty name of the option enabing some JSP access check.static final StringProperty used to retrieve the path of the private login jsp/servlet.static final StringProperty used to retrieve path of the private mail password jsp/servlet.static final StringProperty used to retrieve the path to the publication actions wrapper.static final StringProperty used to retrieve the path of the query jsp/servlet.static final StringProperty used to retrieve the path of the query jsp/servlet returning csv content.static final StringProperty used to retrieve the path of the query jsp/servlet returning csv content.static final StringProperty used to retrieve the path of the query jsp/servlet return xml content.static final StringProperty used to retrieve the path of the refine jsp/servlet.static final StringProperty used to retrieve the path of the advanced search jsp/servlet.static final StringProperty used to retrieve the path of the advanced search jsp/servlet.static final StringProperty used to retrieve the path to sidebar.static final StringProperty used to retrieve the path of the signup jsp/servlet.static final StringProperty used to retrieve the path of the signup jsp/servlet.static final StringProperty used to retrieve the path to the site topbar.static final StringProperty used to retrieve the path to the topbar.static final StringProperty used to retrieve the path to the work topbar.static final StringProperty used to retrieve the path to the workspace wizard jsp/servlet.static final StringProperty used to retrieve the path to the workspaces list jsp/servlet. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanBeAccessed(String jspRelativePath, JcmsJspContext jcmsContext) Check if the specified JSP is authorized to be accessed (either directly or through dynamic include).voidcompileLESS(boolean force) Request compilation of LESS file declare in current webapp.static Stringstatic StringRetrieve the path of the default DB members' icon.static StringRetrieve the path of the default ldap DBMembers' icon.static StringRetrieve the relative path of the "default skin" jsp/servlet .static StringgetDefaultTemplate(String usage) Retrieve the relative path of the "default template" jsp/servlet .static StringRetrieve the path of firebase account json file informations.static StringRetrieve the path of firebase web account json file informations.static StringRetrieve the relative path of the "forbidden" jsp/servlet that should be used when accessing a site.static StringRetrieve the path of groups' icon.static StringRetrieve the path of ldap groups icon.static StringRetrieve the path of ldap parent groups' icon.static StringRetrieve the path of parent groups' icon.static ResourceHelperReturns the singleton.static StringgetJspOverride(String jspPath) Retrieve the path of the JSP to use instead of the specified JSP, if any.static StringRetrieve the path of the logback icon.static StringgetLogin()Retrieve the relative path of the "login" jsp/servlet that should be used when accessing a site.static StringRetrieve the path of the login icon.static StringRetrieve the relative path of the "logout" jsp/servlet that should be used when quitting a site.static StringRetrieve the path of the logout icon.static StringRetrieve the relative path of the "mail password" jsp/servlet that should be used when providing a way for a user to retrieve its password.static StringRetrieve the path of admins' member icon.static StringRetrieve the path of the contact members' icon.static StringRetrieve the path of the default members' icon.static StringRetrieve the relative path of the "member display" jsp/servlet that should be used to display a member's information.static StringRetrieve the path of admins' ldap member icon.static StringRetrieve the path of the default ldap members' icon.static StringRetrieve the path of ldap writers' member icon.static StringRetrieve the path of ldap workspace admins' ldap member icon.static StringRetrieve the relative path of the "member profile" jsp/servlet that should be used to display a member's profile.static StringRetrieve the relative path of the "member profile editor" jsp/servlet that should be used to display a member's profile.static StringRetrieve the path of the default members' icon.static StringRetrieve the path of workspace admins' member icon.static StringRetrieve the path to the jsp which produce the notification mailstatic StringRetrieve the relative path of the "private login" jsp/servlet that should be used when accessing a private site (where authentication is required).static StringRetrieve the relative path of the "private mail password" jsp/servlet that should be used when providing a way for a user to retrieve its password when the site is private (where authentication is required).static Stringprotected static Collection<String> static StringgetQuery()Retrieve the relative path of the "query" jsp/servlet that should be used to perform a search and display the results.static StringRetrieve the relative path of the "query" jsp/servlet that should be used to perform a search and display the results as CSV content.static StringRetrieve the relative path of the "query" jsp/servlet that should be used to perform a search and display the results in BO.static StringRetrieve the relative path of the "query" jsp/servlet that should be used to perform a search and display the results as XML content.static StringRetrieve the relative path of the "search" jsp/servlet that should be used to provide the refine search form.static StringRetrieve the relative path of the "search" jsp/servlet that should be used to provide the advanced search form.static StringRetrieve the relative path of the BO "search" jsp/servlet that should be used to provide the advanced search form.static Stringstatic Stringstatic Stringstatic Stringstatic StringgetSpecificEdit(Data data) Gives the JSP really used when a call to edit.jsp is done.static StringgetSpecificEdit(Class<?> clazz) Gives the JSP really used when a call to edit.jsp is done.static StringRetrieve the path of tooltip icon.static Stringstatic StringRetrieve the relative path of the "workspacesList" jsp/servlet .static StringRetrieve the relative path of the "workspaceWizard" jsp/servlet.static Stringstatic booleanisNonTransactionalPath(String path) Check if the specified path requires or not an Hibernate transaction when accessed.static booleanisPublicPath(String path) Check if the specified path is allowed to be accessed without authentication when the site is private.voidpropertiesChange(JProperties properties) Invoked after properties have been modified in JCMS and save on disk.
-
Field Details
-
LOGIN_PROP
Property used to retrieve the path of the login jsp/servlet.getLogin()- See Also:
-
FORBIDDEN_PROP
Property used to retrieve the path of the forbidden jsp/servlet.getForbidden()- See Also:
-
MAIL_PASSWORD_PROP
Property used to retrieve path of the mail password jsp/servlet.getMailPassword()- See Also:
-
PRIVATE_LOGIN_PROP
Property used to retrieve the path of the private login jsp/servlet.getPrivateLogin()- See Also:
-
PRIVATE_MAIL_PASSWORD_PROP
Property used to retrieve path of the private mail password jsp/servlet.getPrivateMailPassword()- See Also:
-
LOGOUT_PROP
Property used to retrieve the path of the loggout jsp/servlet.getLogout()- See Also:
-
WORKSPACE_WIZARD_PROP
Property used to retrieve the path to the workspace wizard jsp/servlet.getWorkspaceWizard()- See Also:
-
WORKSPACES_LIST_PROP
Property used to retrieve the path to the workspaces list jsp/servlet.getWorkspacesList()- See Also:
-
DEFAULT_SKIN_PROP
Property used to retrieve the path to the default Portlet Wrapper.getDefaultSkin()- See Also:
-
DEFAULT_TEMPLATE_PROP
Property used to retrieve the path to the default template usage.getDefaultTemplate(String)- See Also:
-
TOPBAR
Property used to retrieve the path to the topbar.getTopbar()- See Also:
-
SITE_TOPBAR
Property used to retrieve the path to the site topbar.getSiteTopbar()- See Also:
-
WORK_TOPBAR
Property used to retrieve the path to the work topbar.getWorkTopbar()- See Also:
-
ADMIN_TOPBAR
Property used to retrieve the path to the admin topbar.getAdminTopbar()- See Also:
-
PUBLICATION_ACTION
Property used to retrieve the path to the publication actions wrapper.getPublicationAction()- See Also:
-
SIDEBAR
Property used to retrieve the path to sidebar.getSidebar()- See Also:
-
SIGNUP_PROP
Property used to retrieve the path of the signup jsp/servlet.getSignUp()- See Also:
-
SIGNUPV_PROP
Property used to retrieve the path of the signup jsp/servlet.getSignUpV()- See Also:
-
SEARCH_PROP
Property used to retrieve the path of the advanced search jsp/servlet.getSearch()- See Also:
-
SEARCHWORK_PROP
Property used to retrieve the path of the advanced search jsp/servlet.getSearchWork()- See Also:
-
REFINE_PROP
Property used to retrieve the path of the refine jsp/servlet.getRefine()- See Also:
-
QUERY_PROP
Property used to retrieve the path of the query jsp/servlet.getQuery()- See Also:
-
QUERYXML_PROP
Property used to retrieve the path of the query jsp/servlet return xml content.getQueryXml()- See Also:
-
QUERYCSV_PROP
Property used to retrieve the path of the query jsp/servlet returning csv content.getQueryCsv()- See Also:
-
QUERYWORK_PROP
Property used to retrieve the path of the query jsp/servlet returning csv content.getQueryWork()- See Also:
-
MEMBER_DISPLAY_PROP
Property used to retrieve the path of jsp/servlet to display a member.getMemberDisplay()- See Also:
-
MEMBER_PROFILE_PROP
Property used to retrieve the path of jsp/servlet to display a member profile.getMemberProfile()- See Also:
-
MEMBER_PROFILE_EDITOR_PROP
Property used to retrieve the path of jsp/servlet to display a member profile.getMemberProfileEditor()- See Also:
-
ICON_MEMBER_ADMIN
Property used to retrieve the path of admins' member icon.- See Also:
-
ICON_MEMBER_WSADMIN
Property used to retrieve the path of workspace admins' member icon.- See Also:
-
ICON_MEMBER_WRITER
Property used to retrieve the path of writers' icon.- See Also:
-
ICON_MEMBER_DEFAULT
Property used to retrieve the path of the default members' icon.- See Also:
-
ICON_MEMBER_LDAP_ADMIN
Property used to retrieve the path of admins' ldap member icon.- See Also:
-
ICON_MEMBER_LDAP_WSADMIN
Property used to retrieve the path of ldap workspace admins' ldap member icon.- See Also:
-
ICON_MEMBER_LDAP_WRITER
Property used to retrieve the path of ldap writers' member icon.- See Also:
-
ICON_MEMBER_LDAP_DEFAULT
Property used to retrieve the path of the default ldap members' icon.- See Also:
-
ICON_LOGIN
Property used to retrieve the path of the login icon.- See Also:
-
ICON_LOGOUT
Property used to retrieve the path of the logout icon.- See Also:
-
ICON_LOGBACK
Property used to retrieve the path of the logback icon.- See Also:
-
ICON_DBMEMBER_DEFAULT
Property used to retrieve the path of the default DBmembers' icon.- See Also:
-
ICON_DBMEMBER_LDAP_DEFAULT
Property used to retrieve the path of the default ldap DBmembers' icon.- See Also:
-
ICON_MEMBER_CONTACT
Property used to retrieve the path of the contacts' icon.- See Also:
-
ICON_GROUP_DEFAULT
Property used to retrieve the path of groups' icon.- See Also:
-
ICON_GROUP_PARENT
Property used to retrieve the path of parent groups' icon.- See Also:
-
ICON_GROUP_LDAP_DEFAULT
Property used to retrieve the path of ldap groups' icon.- See Also:
-
ICON_GROUP_LDAP_PARENT
Property used to retrieve the path of ldap parent groups' icon.- See Also:
-
NOTIFICATION_EMAIL_HTML_JSP
Property used to retrieve the jsp sent as a notification- See Also:
-
ICON_TOOLTIP
Property used to retrieve the path of the tooltip icon.- See Also:
-
MEMBER_PHOTO
Property used to retrieve the path of the JSP to display the Member photo.- See Also:
-
CHANNEL_PUBLIC_PATH_PREFIX
Property prefix used to declare a public path when site is private.- See Also:
-
FIREBASE_ACCOUNT_PATH
Property used to retrieve the firebase account informations- See Also:
-
FIREBASE_WEB_ACCOUNT_PATH
Property used to retrieve the firebase web account informations- See Also:
-
CHANNEL_NON_TRANSACTIONAL_PATH_PREFIX
Property prefix used to declare non transactional path, i.e. path for which hibernate transaction is NOT started.- Since:
- jcms-10.0.2 / JCMS-7125
- See Also:
-
JSP_OVERRIDE_PREFIX
Property prefix used to declare override of JSP.- Since:
- jcms-10.0.5 / JCMS-8486
- See Also:
-
JSP_OVERRIDE_CANCELLED
Request attribute that can be set as boolean true to indicate the JSP override that was just run is cancelled and original JSP can process normally.- Since:
- jcms-10.0.5 / JCMS-8486
- See Also:
-
PREVENT_ACCESS_TO_OVERRIDEN_JSP
Property name of the option enabing some JSP access check.- Since:
- jcms-8.0.2, jcms-9.0 (JCMS-3288)
- See Also:
-
mapHTTPEquiv
-
mapHTTPName
-
mapCSSHeader
-
mapJSHeader
-
mapJSModuleHeader
-
mapLESS
-
jspOverrideMap
-
-
Method Details
-
canBeAccessed
Check if the specified JSP is authorized to be accessed (either directly or through dynamic include).This check is performed only if enabled through following property :
jcms.resource.prevent-access-to-overriden-jsp: trueAs of current version, this method enforce the following rules :
- access to JSP that can be modified though ResourceHelper and that were overriden
by in properties are forbidden.
Unless a property{original-resource-property-name}.authorize-original-jsp-access: trueis declared to exclude the JSP from this behavior, (seefront/logout.jspin the example below) - All other JSP can be accessed (which does not mean that each JSP will not apply other specific verification regarding authorization).
Example :
jcms.propcontains the following properties :jcms.resource.prevent-access-to-overriden-jsp: true jcms.resource.login: front/login.jsp jcms.resource.logout: front/logout.jsp jcms.resource.logout.authorize-original-jsp-access: true
And a plugin overrides some of them as follow :jcms.resource.login: plugins/MyPlugin/jsp/login.jsp jcms.resource.logout: plugins/MyPlugin/jsp/logout.jsp
In such case, access tofront/login.jspis forbidden, whilefront/logout.jspis still authorized.- Parameters:
jspRelativePath- the relative path of the JSP being accessed, path may or may not start with a slash, e.g :"/front/login.jsp"or"front/login.jsp"jcmsContext- current JcmsJspContext (optional)- Returns:
- true if JSP can be acccessed, false otherwise
- Since:
- jcms-8.0.2, jcms-9.0 (JCMS-3288)
- access to JSP that can be modified though ResourceHelper and that were overriden
by in properties are forbidden.
-
getLogin
Retrieve the relative path of the "login" jsp/servlet that should be used when accessing a site.- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-5.7.0
-
getForbidden
Retrieve the relative path of the "forbidden" jsp/servlet that should be used when accessing a site.- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-10.0.3
-
getMailPassword
Retrieve the relative path of the "mail password" jsp/servlet that should be used when providing a way for a user to retrieve its password.- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-5.7.0
-
getPrivateLogin
Retrieve the relative path of the "private login" jsp/servlet that should be used when accessing a private site (where authentication is required).- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-5.7.0
-
getPrivateMailPassword
Retrieve the relative path of the "private mail password" jsp/servlet that should be used when providing a way for a user to retrieve its password when the site is private (where authentication is required).- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-5.7.0
-
getLogout
Retrieve the relative path of the "logout" jsp/servlet that should be used when quitting a site.- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-5.7.0
-
getWorkspaceWizard
Retrieve the relative path of the "workspaceWizard" jsp/servlet.- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-5.7.3
-
getWorkspacesList
Retrieve the relative path of the "workspacesList" jsp/servlet .- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-5.7.3
-
getDefaultSkin
Retrieve the relative path of the "default skin" jsp/servlet .- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-5.7.3
-
getDefaultTemplate
Retrieve the relative path of the "default template" jsp/servlet .- Parameters:
usage- the usage or null- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-6.0.0
-
getTopbar
-
getSiteTopbar
-
getWorkTopbar
-
getAdminTopbar
-
getPublicationAction
-
getSidebar
-
getSignUp
-
getSignUpV
-
getSearch
Retrieve the relative path of the "search" jsp/servlet that should be used to provide the advanced search form.- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-5.7.0
-
getSearchWork
Retrieve the relative path of the BO "search" jsp/servlet that should be used to provide the advanced search form.- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-9.0.1
-
getRefine
Retrieve the relative path of the "search" jsp/servlet that should be used to provide the refine search form.- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-5.7.0
-
getQuery
Retrieve the relative path of the "query" jsp/servlet that should be used to perform a search and display the results.- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-5.7.0
-
getQueryXml
Retrieve the relative path of the "query" jsp/servlet that should be used to perform a search and display the results as XML content.- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-6.0.1
-
getQueryCsv
Retrieve the relative path of the "query" jsp/servlet that should be used to perform a search and display the results as CSV content.- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-6.0.1
-
getQueryWork
Retrieve the relative path of the "query" jsp/servlet that should be used to perform a search and display the results in BO.- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-9.0.1
-
getMemberDisplay
Retrieve the relative path of the "member display" jsp/servlet that should be used to display a member's information.- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-5.7.2
-
getMemberProfile
Retrieve the relative path of the "member profile" jsp/servlet that should be used to display a member's profile.- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-5.7.2
-
getMemberProfileEditor
Retrieve the relative path of the "member profile editor" jsp/servlet that should be used to display a member's profile.- Returns:
- a path relative to the webapp (no starting slash).
- Since:
- jcms-9.0.3
-
getMemberAdminIcon
Retrieve the path of admins' member icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-5.7.0
-
getMemberWsAdminIcon
Retrieve the path of workspace admins' member icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-5.7.0
-
getMemberWriterIcon
Retrieve the path of the default members' icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-5.7.0
-
getMemberDefaultIcon
Retrieve the path of the default members' icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-5.7.0
-
getMemberLdapAdminIcon
Retrieve the path of admins' ldap member icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-5.7.0
-
getMemberLdapWsAdminIcon
Retrieve the path of ldap workspace admins' ldap member icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-5.7.0
-
getMemberLdapWriterIcon
Retrieve the path of ldap writers' member icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-5.7.0
-
getMemberLdapDefaultIcon
Retrieve the path of the default ldap members' icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-5.7.0
-
getLoginIcon
Retrieve the path of the login icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-6.1.1
-
getLogoutIcon
Retrieve the path of the logout icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-6.1.1
-
getLogbackIcon
Retrieve the path of the logback icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-6.1.1
-
getMemberContactIcon
Retrieve the path of the contact members' icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-6.1.0
-
getDBMemberDefaultIcon
Retrieve the path of the default DB members' icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-6.1
-
getDBMemberLdapDefaultIcon
Retrieve the path of the default ldap DBMembers' icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-10.0.1 JCMS-6340
-
getGroupDefaultIcon
Retrieve the path of groups' icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-5.7.0
-
getGroupParentIcon
Retrieve the path of parent groups' icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-5.7.0
-
getGroupLdapDefaultIcon
Retrieve the path of ldap groups icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-5.7.0
-
getGroupLdapParentIcon
Retrieve the path of ldap parent groups' icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-5.7.0
-
getNotificationEmailHtml
Retrieve the path to the jsp which produce the notification mail- Returns:
- the path to the jsp which produce the notification mail
- Since:
- jcms-8.0.0
-
getTooltipIcon
Retrieve the path of tooltip icon.- Returns:
- an image path relative to the webapp (no starting slash), e.g. "images/something.gif" .
- Since:
- jcms-6.0.0
-
getFirebaseAccount
Retrieve the path of firebase account json file informations.- Returns:
- an the path to the firebase account json file
- Since:
- jcms-10.0.4
-
getFirebaseWebAccount
Retrieve the path of firebase web account json file informations.- Returns:
- an the path to the firebase account json file
- Since:
- jcms-10.0.4
-
getSpecificEdit
Gives the JSP really used when a call to edit.jsp is done.- Parameters:
clazz- the Java sub class of Data for which a specific edit JSP is mandatory- Returns:
- the specific Edit JSP
-
getSpecificEdit
Gives the JSP really used when a call to edit.jsp is done.- Parameters:
data- the Data for which a specific edit JSP is mandatory- Returns:
- the specific Edit JSP
-
getInstance
Returns the singleton. Caution: This method is not thread-safe.- Returns:
- the singleton.
- Since:
- jcms-7.1.0
-
propertiesChange
Description copied from interface:JPropertiesListenerInvoked after properties have been modified in JCMS and save on disk.You cannot alter the value received in parameters.
Note that properties parameter may be null, a limited set of site properties, or all site properties.
To check that a property has been modified, reload the "current" property instead using
channel.getPropertiesorchannel.getProperty.- Specified by:
propertiesChangein interfaceJPropertiesListener- Parameters:
properties- the properties which have been submitted to change
-
getHTTPEquivHeaderMap
-
getHTTPNameHeaderMap
-
getHTTPCSSHeaderMap
-
getHTTPJSHeaderMap
-
getHTTPJSModuleHeaderMap
-
getLESSMap
-
compileLESS
public void compileLESS(boolean force) Request compilation of LESS file declare in current webapp.- Parameters:
force- set true to force compilation of less file, even when there is an existing generated file more recent than the sources. set to false to compile only if source is more recent than generated file.
-
getPublicPaths
-
isPublicPath
Check if the specified path is allowed to be accessed without authentication when the site is private.- Parameters:
path- the resource path- Returns:
- true if the specified path can always be accessed, false if an authentication is required.
-
getNonTransactionalPaths
-
isNonTransactionalPath
Check if the specified path requires or not an Hibernate transaction when accessed.- Parameters:
path- the resource path- Returns:
- true if path can be accessed without hibernate transaction. false if an hibernate transaction is required.
- Since:
- jcms-10.0.2 / JCMS-7125
-
getJspOverride
Retrieve the path of the JSP to use instead of the specified JSP, if any.You can override a JSP by declaring it in property :
jsp.override./path/to/overriden.jsp: /path/of/overriding.jsp
- Parameters:
jspPath- the JSP being run for which override is being verified, for examplepath/of/some.jsp- Returns:
- a JSP path if specified JSP has been overriden in property, or null or JSP is not overriden
- Since:
- jcms-10.0.5 / JCMS-8486
-