Package org.dspace.app.rest.model
Annotation Type LinkRest
-
@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented public @interface LinkRest
Class or method-level annotation to provide information about linked/embedded subresources of aRestModel.- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
-
-
Element Detail
-
name
String name
The rel name to use for the link and/or embed.This is optional if the annotation is used at the method level. If unspecified at the method level, the bean name (inferred by the the name of the method) will be used as the name.
This is required if the annotation is used at the class level.
- Returns:
- the name, or the empty string if unspecified by the annotation.
- Default:
- ""
-
-
-
method
String method
The name of the method to invoke in the associated link repository.When this is specified, whether at the class or method level, the value of the resource must be provided by a
LinkRestRepository, which is found by itsComponentname. SeeUtils.getResourceRepository(String, String)} for details.- Returns:
- the method name, or the empty string if unspecified by the annotation.
- Default:
- ""
-
-