Package com.jalios.jcms.shortcut
Class ShortcutManager
- java.lang.Object
- 
- com.jalios.jcms.shortcut.ShortcutManager
 
- 
- All Implemented Interfaces:
- JPropertiesListener
 
 public class ShortcutManager extends java.lang.Object implements JPropertiesListener 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteShortcuts(JProperties props)Delete all the shortcuts present as virtual ids in the given properties.PortalInterfacefindDisplayPortal(java.lang.String url)Returns the portal to display for the given URL of an application.PortalInterfacefindDisplayPortal(javax.servlet.http.HttpServletRequest request)Returns the portal to display for the given request.AbstractShortcutgenerateShortcut(java.lang.String key)Generate a shortcut for the given prefix key propertyvoidgenerateShortcuts()static ShortcutManagergetInstance()voidinit()voidpropertiesChange(JProperties properties)Invoked after properties have been modified in JCMS and save on disk.
 
- 
- 
- 
Method Detail- 
getInstancepublic static ShortcutManager getInstance() 
 - 
initpublic void init() 
 - 
generateShortcutspublic void generateShortcuts() 
 - 
generateShortcutpublic AbstractShortcut generateShortcut(java.lang.String key) 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
 
 - 
deleteShortcutspublic void deleteShortcuts(JProperties props) Delete all the shortcuts present as virtual ids in the given properties.- Parameters:
- props- a set of properties
- Since:
- jcms-10.0.0
 
 - 
propertiesChangepublic void propertiesChange(JProperties properties) 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 interface- JPropertiesListener
- Parameters:
- properties- the properties which have been submitted to change
 
 - 
findDisplayPortalpublic PortalInterface findDisplayPortal(javax.servlet.http.HttpServletRequest request) 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
 
 - 
findDisplayPortalpublic PortalInterface findDisplayPortal(java.lang.String url) 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
 
 
- 
 
-