public interface LinkEntryService
AbstractLinkEntry items.| Modifier and Type | Method and Description |
|---|---|
List<AbstractLinkEntryModel> |
getActiveLinkEntries(String areaCode,
boolean rootOnly)
Returns sorted list of links (static, dynamic, dividers) for given area and current session user.
|
Map<String,String> |
getDynamicLinks(String script)
Returns title->URL map created with given beanshell script.
|
String |
getLinkUrl(StaticLinkModel linkModel,
HttpServletResponse servletResponse)
Return link for given link model instance.
|
List<StaticLinkModel> |
getVisibleSublinks(StaticLinkModel staticLink)
Returns all sublinks of a static link that are visible for the current user
|
boolean |
isVisible(AbstractLinkEntryModel linkModel)
Returns whether a link is visible or not for the current user
|
List<AbstractLinkEntryModel> getActiveLinkEntries(String areaCode, boolean rootOnly)
areaCode - - only links for given area code are returnedrootOnly - - if set to true no sublinks will be returnedMap<String,String> getDynamicLinks(String script)
script - - beanshell scriptboolean isVisible(AbstractLinkEntryModel linkModel)
linkModel - the link model to checkList<StaticLinkModel> getVisibleSublinks(StaticLinkModel staticLink)
staticLink - the parent linkString getLinkUrl(StaticLinkModel linkModel, HttpServletResponse servletResponse)
linkModel - - modelservletResponse - - http servlet response to build up complete urlCopyright © 2017 SAP SE. All Rights Reserved.