Package com.jalios.jcms.shortcut
Class ShortcutManager
java.lang.Object
com.jalios.jcms.shortcut.ShortcutManager
- All Implemented Interfaces:
JPropertiesListener
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteShortcuts(JProperties props) Delete all the shortcuts present as virtual ids in the given properties.findDisplayPortal(String url) Returns the portal to display for the given URL of an application.findDisplayPortal(javax.servlet.http.HttpServletRequest request) Returns the portal to display for the given request.generateShortcut(String key) Generate a shortcut for the given prefix key propertyvoidstatic ShortcutManagervoidinit()voidpropertiesChange(JProperties properties) Invoked after properties have been modified in JCMS and save on disk.
-
Field Details
-
SHORTCUT_ADMIN_VID
- See Also:
-
SHORTCUT_WORKSPACE_VID
- See Also:
-
SHORTCUT_APPSTORE_VID
- See Also:
-
SHORTCUT_PEOPLE_VID
- See Also:
-
-
Method Details
-
getInstance
-
init
public void init() -
generateShortcuts
public void generateShortcuts() -
generateShortcut
Generate a shortcut for the given prefix key property- Parameters:
key- a prefix property (eg. shortcut.jcmsplugin.myplugin)- Returns:
- the Shortcut
- Since:
- jcms-10.0.0
-
deleteShortcuts
Delete all the shortcuts present as virtual ids in the given properties.- Parameters:
props- a set of properties- Since:
- jcms-10.0.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
-
findDisplayPortal
Returns the portal to display for the given request. A dedicated portal can be declared for an application with a property shorcut.APPNAME.portal where APPNAME is the same as in the shortcut declaration: shortcut.APPNAME.link: plugins/MyPlugin/jsp/myApp.jsp- Parameters:
request- the request- Returns:
- the portal to display for the given URL of an application.
- Since:
- jcms-10.0.7
-
findDisplayPortal
Returns the portal to display for the given URL of an application. A dedicated portal can be declared for an application with a property shorcut.APPNAME.portal where APPNAME is the same as in the shortcut declaration: shortcut.APPNAME.link: plugins/MyPlugin/jsp/myApp.jsp- Parameters:
url- the relative URL of an application- Returns:
- the portal to display for the given URL of an application.
- Since:
- jcms-10.0.7
-