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

ResultRenderProvider returns list instead of optional URL #2018

Merged
merged 5 commits into from
Aug 17, 2021

Conversation

thoniTUB
Copy link
Collaborator

No description provided.

@thoniTUB thoniTUB marked this pull request as ready for review August 13, 2021 10:21
@thoniTUB thoniTUB requested a review from awildturtok August 13, 2021 10:21
@@ -22,7 +22,7 @@
* @param allProviders A flag that should override internal "hide-this-url" flags.
* @return An Optional with the url or an empty optional.
*/
Optional<URL> generateResultURL(ManagedExecution<?> exec, UriBuilder uriBuilder, boolean allProviders);
Collection<URL> generateResultURLs(ManagedExecution<?> exec, UriBuilder uriBuilder, boolean allProviders);
Copy link
Collaborator

Choose a reason for hiding this comment

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

public/private/protected?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ist ein public Interface, also automatisch public ;)

@@ -22,6 +24,11 @@
@Slf4j
public class ResultUtil {

public static enum ContentDispositionOption {
inline,
Copy link
Collaborator

Choose a reason for hiding this comment

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

warum klein geschrieben?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ich glaube im HTTP Header ist die Groß-/Kleinschreibung egal, ich schaue das nochmal nach. Ich habs klein geschrieben, weil der Parameter immer klein

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Laut https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html gilt das case-insensitive nur für den Feldnamen, nicht für das Feld selbst. Aber ich werde es mal groß schreiben und dann lowerCase draufaufrufen.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ja wäre mir auch lieber, sonst geht was kaputt sobald jemand das aufräumt. Du könntest das auch machen mit einem value feld. Natürlich nicht super elegant aber dafür sicher.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ich habe dem enum eine Methode und etwas Doku gegeben das mit das deutlicher wird

@thoniTUB thoniTUB merged commit 22f10a9 into develop Aug 17, 2021
@delete-merged-branch delete-merged-branch bot deleted the feature/allow-multiple-result-urls-per-provider branch August 17, 2021 08:32
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.

2 participants