public class DefaultLinkEntryService extends java.lang.Object implements LinkEntryService
LinkEntryService| Constructor and Description |
|---|
DefaultLinkEntryService() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<AbstractLinkEntryModel> |
getActiveLinkEntries(java.lang.String areaCode,
boolean rootOnly)
Returns sorted list of links (static, dynamic, dividers) for given area and current session user.
|
java.util.Map<java.lang.String,java.lang.String> |
getDynamicLinks(java.lang.String script)
Returns title->URL map created with given beanshell script.
|
protected LinkEntryDao |
getLinkEntryDao() |
java.lang.String |
getLinkUrl(StaticLinkModel linkModel,
HttpServletResponse servletResponse)
Return link for given link model instance.
|
protected ModelService |
getModelService() |
java.util.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
|
void |
setLinkEntryDao(LinkEntryDao linkEntryDao) |
void |
setModelService(ModelService modelService) |
public java.util.List<AbstractLinkEntryModel> getActiveLinkEntries(java.lang.String areaCode, boolean rootOnly)
LinkEntryServicegetActiveLinkEntries in interface LinkEntryServiceareaCode - - only links for given area code are returnedrootOnly - - if set to true no sublinks will be returnedpublic java.util.Map<java.lang.String,java.lang.String> getDynamicLinks(java.lang.String script)
LinkEntryServicegetDynamicLinks in interface LinkEntryServicescript - - beanshell scriptprotected LinkEntryDao getLinkEntryDao()
public void setLinkEntryDao(LinkEntryDao linkEntryDao)
linkEntryDao - the linkEntryDao to setprotected ModelService getModelService()
public void setModelService(ModelService modelService)
modelService - the modelService to setpublic boolean isVisible(AbstractLinkEntryModel linkModel)
LinkEntryServiceisVisible in interface LinkEntryServicelinkModel - the link model to checkpublic java.util.List<StaticLinkModel> getVisibleSublinks(StaticLinkModel staticLink)
LinkEntryServicegetVisibleSublinks in interface LinkEntryServicestaticLink - the parent linkpublic java.lang.String getLinkUrl(StaticLinkModel linkModel, HttpServletResponse servletResponse)
LinkEntryServicegetLinkUrl in interface LinkEntryServicelinkModel - - modelservletResponse - - http servlet response to build up complete urlCopyright © 2018 SAP SE. All Rights Reserved.