Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make link handler API public #2169

Closed
wants to merge 6 commits into from
Closed

Conversation

jckautzmann
Copy link
Contributor

  • draft API
Q                       A
Fixed Issues? Fixes #2168
Patch: Bug Fix?
Minor: New Feature?
Major: Breaking Change?
Tests Added + Pass? No
Documentation Provided No
Any Dependency Changes?
License Apache License, Version 2.0

@jckautzmann jckautzmann marked this pull request as draft May 17, 2022 09:26
@codecov
Copy link

codecov bot commented May 17, 2022

Codecov Report

Merging #2169 (eeb923f) into main (dc2f8e4) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #2169   +/-   ##
=========================================
  Coverage     86.86%   86.86%           
  Complexity     2376     2376           
=========================================
  Files           214      214           
  Lines          6358     6358           
  Branches        965      965           
=========================================
  Hits           5523     5523           
  Misses          332      332           
  Partials        503      503           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc2f8e4...eeb923f. Read the comment docs.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

import com.adobe.cq.wcm.core.components.commons.link.Link;
import com.day.cq.wcm.api.Page;

public interface LinkHandler {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LinkFactory

*/
@NotNull
@SuppressWarnings("rawtypes")
Optional<Link> getLink(@NotNull Resource resource, String linkURLPropertyName, Map<String, String> attributes);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the Optional and throw exception in case a Link cannot be constructed

*/
@NotNull
@SuppressWarnings("rawtypes")
Optional<Link> getLink(@Nullable Page page, Map<String, String> attributes);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the Optional and throw exception in case a Link cannot be constructed

*/
@NotNull
@SuppressWarnings("rawtypes")
Optional<Link> getLink(@Nullable String linkURL, Map<String, String> attributes);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the Optional and throw exception in case a Link cannot be constructed

@vladbailescu
Copy link
Member

Superseded by #2196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[LinkHandler] make the LinkHandler API public
3 participants