public class DefaultQuickLinkVisibilityController extends Object implements QuickLinkVisibilityController
QuickLinksProfile
.Constructor and Description |
---|
DefaultQuickLinkVisibilityController(QuickLinksProfile profile) |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getUrlOverride(String service,
Link quickLink) |
boolean |
isVisible(String service,
Link quickLink) |
public DefaultQuickLinkVisibilityController(QuickLinksProfile profile) throws QuickLinksProfileEvaluationException
public Optional<String> getUrlOverride(@Nonnull String service, @Nonnull Link quickLink)
getUrlOverride
in interface QuickLinkVisibilityController
service
- The name of the service the quicklink belongs toquickLink
- the linkpublic boolean isVisible(@Nonnull String service, @Nonnull Link quickLink)
isVisible
in interface QuickLinkVisibilityController
service
- the name of the servicequickLink
- the quicklinkCopyright © 2022 Apache Software Foundation. All rights reserved.