mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-28 02:09:09 +01:00
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:
@@ -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 "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user