Return separate links for searchable types instead of single templated link (#1733)

The search link of the index resource is now an array of links instead of single templated link.
The array contains one link for each searchable type.

Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
This commit is contained in:
Sebastian Sdorra
2021-07-21 10:07:41 +02:00
committed by GitHub
parent 8ba93422a2
commit 39d2f12b66
23 changed files with 443 additions and 98 deletions

View File

@@ -51,4 +51,13 @@ public @interface IndexedType {
* @return name of the index object or an empty string which indicates that the default should be used.
*/
String value() default "";
/**
* Returns the required permission for searching this type.
* Default means that every user is able to search that type of data.
* Note: Every entry in the index has its own permission.
*
* @return required permission for searching this type.
*/
String permission() default "";
}