Class LinkCallable
- java.lang.Object
- 
- de.uplanet.lucy.server.auxiliaries.hop.LinkCallable
 
- 
- All Implemented Interfaces:
- de.uplanet.lucy.server.scripting.velocity.ICallableWithVelocityContext
 
 @VelocityVariable("Link") @VelocityCallable("instance") public final class LinkCallable extends Object implements de.uplanet.lucy.server.scripting.velocity.ICallableWithVelocityContextCreates links.
- 
- 
Constructor SummaryConstructors Constructor Description LinkCallable(org.apache.velocity.VelocityContext p_ctx, de.uplanet.lucy.server.rtcache.IRtCacheProvider p_rtCacheProvider, IBinding p_binding)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkCallablecloneWithNewContext(org.apache.velocity.context.Context p_vc)de.uplanet.lucy.server.hop.IVCLinkInfogetCalendarPluginLink(String p_strCalendarCtrlGuid, String p_strPluginGuid, String p_strLinkGuid, String p_strLinkType, de.uplanet.lucy.server.businesslogic.control.calendar.IVCControlAppointment p_appointment, de.uplanet.lucy.server.businesslogic.rtappservices.IWebDataCollection p_dataCollection)Get calendar plugin link blocks (for clicks, doubleclicks, mouseover, click on grouped, mark an appointment) with an additional calendar link block.de.uplanet.lucy.server.hop.IVCLinkInfogetCalendarPluginResourceLink(String p_strCalendarCtrlGuid, String p_strPluginGuid, String p_strLinkGuid, de.uplanet.lucy.server.businesslogic.control.calendar.IVCControlGroupTreeItem p_groupTreeItem, de.uplanet.lucy.server.businesslogic.rtappservices.IWebDataCollection p_dc)Get calendar plugin resource link with an additional calendar link block.de.uplanet.lucy.server.hop.IVCLinkInfogetLink(String p_strLinkGuid)de.uplanet.lucy.server.hop.IVCLinkInfogetLink(String p_strLinkGuid, de.uplanet.lucy.server.businesslogic.rtappservices.IWebDataCollection p_dataCollection)de.uplanet.lucy.server.hop.IVCLinkInfogetLink(String p_strLinkGuid, de.uplanet.lucy.server.businesslogic.treecontainer.ITreeNode p_treeNode)de.uplanet.lucy.server.hop.IVCLinkInfogetLink(String p_strLinkGuid, de.uplanet.lucy.server.businesslogic.util.IRecord p_record)de.uplanet.lucy.server.hop.IVCLinkInfogetLink(String p_strLinkGuid, String p_strRecId)de.uplanet.lucy.server.hop.IVCLinkInfogetLink(String p_strLinkGuid, Map<String,String> p_additionalArguments)de.uplanet.lucy.server.hop.IVCLinkInfogetLinkForRecordId(IServerBridgeRequest p_request, String p_targetPageGuid, String p_recId)Get a link for a given record-ID.de.uplanet.lucy.server.hop.IVCLinkInfogetLinkForRecordIdDynamicTarget(IServerBridgeRequest p_request, IValueHolder<?> p_vhTargetPageGuid, String p_recId)Get a link for a given record-ID.de.uplanet.lucy.server.hop.IVCLinkInfogetLinkStrict(String p_strLinkGuid)Same asgetLink(String)But throws a runtime exception, if no link found for the given GUID.de.uplanet.lucy.server.auxiliaries.hop.VCLinkTargetInfogetLinkTargetInfo(String p_strLinkGuid)StringgetMenuLink(IMenuItem p_menuItem, String p_strLang, boolean p_setRQLang)de.uplanet.lucy.server.auxiliaries.hop.VCLinkPageInfogetParentContainerReloadLink(de.uplanet.lucy.server.businesslogic.rtappservices.IWebRecordDataCollection p_dataCollection, String p_pageGuid)Get a link for reloading a page.de.uplanet.lucy.server.auxiliaries.hop.VCLinkPageInfogetReloadLink(de.uplanet.lucy.server.businesslogic.rtappservices.IWebRecordDataCollection p_dataCollection, String p_pageGuid)Get a link for reloading a page.StringtoMenuJSONString(IMenuItem p_menuItem, String p_strLang, boolean p_bSetRQLang, String p_strKey)Convert the given menu tree to JSON.voidwriteMenuJSON(Writer p_writer, IMenuItem p_menuItem, String p_strLang, boolean p_bSetRQLang)Convert the given menu tree to JSON and write the output to the given character stream.
 
- 
- 
- 
Constructor Detail- 
LinkCallablepublic LinkCallable(org.apache.velocity.VelocityContext p_ctx, de.uplanet.lucy.server.rtcache.IRtCacheProvider p_rtCacheProvider, IBinding p_binding)Constructor.- Parameters:
- p_ctx- The velocity context.
- p_rtCacheProvider- The runtime cache provider.
- p_binding- The binding.
 
 
- 
 - 
Method Detail- 
getLinkForRecordIdpublic de.uplanet.lucy.server.hop.IVCLinkInfo getLinkForRecordId(IServerBridgeRequest p_request, String p_targetPageGuid, String p_recId) Get a link for a given record-ID.- Parameters:
- p_request- The request.
- p_targetPageGuid- The target page GUID.
- p_recId- The record-ID.
- Returns:
- The link information to retrieve a link URL or nullif p_targetPageGuid isnull.
 
 - 
getLinkForRecordIdDynamicTargetpublic de.uplanet.lucy.server.hop.IVCLinkInfo getLinkForRecordIdDynamicTarget(IServerBridgeRequest p_request, IValueHolder<?> p_vhTargetPageGuid, String p_recId) Get a link for a given record-ID.- Parameters:
- p_request- The request.
- p_vhTargetPageGuid- The value holder with target page GUID.
- p_recId- The record-ID.
- Returns:
- The link information to retrieve a link URL or nullif p_vhTargetPageGuid isnullor not a valid GUID.
 
 - 
getLinkpublic de.uplanet.lucy.server.hop.IVCLinkInfo getLink(String p_strLinkGuid) - Parameters:
- p_strLinkGuid- The link GUID (a valid GUID).
- Returns:
- The link information object or nullif no link with the given GUID found.
 
 - 
getLinkpublic de.uplanet.lucy.server.hop.IVCLinkInfo getLink(String p_strLinkGuid, de.uplanet.lucy.server.businesslogic.util.IRecord p_record) - Parameters:
- p_strLinkGuid- The link GUID (a valid GUID)
- Returns:
- The link information object or nullif no link with the given GUID found.
 
 - 
getLinkpublic de.uplanet.lucy.server.hop.IVCLinkInfo getLink(String p_strLinkGuid, Map<String,String> p_additionalArguments) - Parameters:
- p_strLinkGuid- The link GUID (a valid GUID).
- p_additionalArguments- Additional arguments.
- Returns:
- The link information object or nullif no link with the given GUID found.
 
 - 
getLinkpublic de.uplanet.lucy.server.hop.IVCLinkInfo getLink(String p_strLinkGuid, de.uplanet.lucy.server.businesslogic.rtappservices.IWebDataCollection p_dataCollection) - Parameters:
- p_strLinkGuid- The link GUID (a valid GUID)
- Returns:
- The link information object or nullif no link with the given GUID found.
 
 - 
getLinkpublic de.uplanet.lucy.server.hop.IVCLinkInfo getLink(String p_strLinkGuid, de.uplanet.lucy.server.businesslogic.treecontainer.ITreeNode p_treeNode) - Parameters:
- p_strLinkGuid- The link GUID (a valid GUID)
- Returns:
- The link information object or nullif no link with the given GUID found.
 
 - 
getLinkpublic de.uplanet.lucy.server.hop.IVCLinkInfo getLink(String p_strLinkGuid, String p_strRecId) - Parameters:
- p_strLinkGuid- The link GUID (a valid GUID)
- p_strRecId- The record-ID.
- Returns:
- The link information object or nullif no link with the given GUID found.
 
 - 
getLinkStrictpublic de.uplanet.lucy.server.hop.IVCLinkInfo getLinkStrict(String p_strLinkGuid) Same asgetLink(String)But throws a runtime exception, if no link found for the given GUID.- Parameters:
- p_strLinkGuid- The link GUID (a valid GUID)
- Returns:
- The link information object. If not found an runtime exception will be thrown.
 
 - 
getParentContainerReloadLinkpublic de.uplanet.lucy.server.auxiliaries.hop.VCLinkPageInfo getParentContainerReloadLink(de.uplanet.lucy.server.businesslogic.rtappservices.IWebRecordDataCollection p_dataCollection, String p_pageGuid)Get a link for reloading a page.- Parameters:
- p_dataCollection- The data collection to reload.
- p_pageGuid- The GUID of the page to reload.
- Returns:
- The link page information.
 
 - 
getReloadLinkpublic de.uplanet.lucy.server.auxiliaries.hop.VCLinkPageInfo getReloadLink(de.uplanet.lucy.server.businesslogic.rtappservices.IWebRecordDataCollection p_dataCollection, String p_pageGuid)Get a link for reloading a page.- Parameters:
- p_dataCollection- The data collection to reload.
- p_pageGuid- The GUID of the page to reload.
- Returns:
- The link page information.
 
 - 
getCalendarPluginLinkpublic de.uplanet.lucy.server.hop.IVCLinkInfo getCalendarPluginLink(String p_strCalendarCtrlGuid, String p_strPluginGuid, String p_strLinkGuid, String p_strLinkType, de.uplanet.lucy.server.businesslogic.control.calendar.IVCControlAppointment p_appointment, de.uplanet.lucy.server.businesslogic.rtappservices.IWebDataCollection p_dataCollection) Get calendar plugin link blocks (for clicks, doubleclicks, mouseover, click on grouped, mark an appointment) with an additional calendar link block.- Parameters:
- p_strCalendarCtrlGuid- The calendar control-GUID.
- p_strPluginGuid- The plugin-GUID.
- p_strLinkGuid- The link-GUID (optional, may be null).
- Returns:
- The plugin link informations.
 
 - 
getCalendarPluginResourceLinkpublic de.uplanet.lucy.server.hop.IVCLinkInfo getCalendarPluginResourceLink(String p_strCalendarCtrlGuid, String p_strPluginGuid, String p_strLinkGuid, de.uplanet.lucy.server.businesslogic.control.calendar.IVCControlGroupTreeItem p_groupTreeItem, de.uplanet.lucy.server.businesslogic.rtappservices.IWebDataCollection p_dc) Get calendar plugin resource link with an additional calendar link block.- Parameters:
- p_strCalendarCtrlGuid- The calendar control-GUID.
- p_strPluginGuid- The plugin-GUID.
- p_strLinkGuid- The link-GUID (optional, may be null).
- p_groupTreeItem- The group tree item.
- p_dc- The data collection.
- Returns:
- The plugin link informations.
 
 - 
cloneWithNewContextpublic LinkCallable cloneWithNewContext(org.apache.velocity.context.Context p_vc) - Specified by:
- cloneWithNewContextin interface- de.uplanet.lucy.server.scripting.velocity.ICallableWithVelocityContext
 
 - 
getLinkTargetInfopublic de.uplanet.lucy.server.auxiliaries.hop.VCLinkTargetInfo getLinkTargetInfo(String p_strLinkGuid) 
 - 
writeMenuJSONpublic void writeMenuJSON(Writer p_writer, IMenuItem p_menuItem, String p_strLang, boolean p_bSetRQLang) throws IOException Convert the given menu tree to JSON and write the output to the given character stream.Note: This method is not intended to be part of the public Intrexx API. The JSON format may change at any time. - Parameters:
- p_writer- The writer object.
- p_menuItem- The menu tree.
- p_strLang- The language
- p_bSetRQLang-- trueif the rq_lang query parameter should be added to an link otherwise should be- false.
- Throws:
- IOException- If an I/O error occurred.
 
 - 
toMenuJSONStringpublic String toMenuJSONString(IMenuItem p_menuItem, String p_strLang, boolean p_bSetRQLang, String p_strKey) Convert the given menu tree to JSON.Note: This method is not intended to be part of the public Intrexx API. The JSON format may change at any time. - Parameters:
- p_menuItem- The menu tree.
- p_strLang- The language.
- p_bSetRQLang- Should be- trueif rq_lang should be set on a link otherwise- false.
- p_strKey- The key into the menu structure (currently "mobile" or "desktop").
- Returns:
- The intrexx menu JSON structure representation (for use in an java script block).
 
 
- 
 
-