Commit 6945a722 authored by Ard Schrijvers's avatar Ard Schrijvers

HSTTWO-3039 Extend JcrPath annotation to allow linkpicker to refer docs...

HSTTWO-3039 Extend JcrPath annotation to allow linkpicker to refer docs outside the channel's content scope
parent 223aa9e1
......@@ -21,8 +21,8 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Indicates that the annotated method returns a JCR path that can be selected via a 'picker'. The path can be absolute,
* or relative to the canonical content root of the channel in which this annotation is used (see {@link #isRelative()}).
* Indicates that the annotated method returns a JCR path that can be selected via a 'picker'. The path can be
* absolute, or relative (see {@link #isRelative()}) to the picker content root path (see {@link #pickerRootPath()}).
*
* This annotation should only be used on public getter methods.
*/
......@@ -74,4 +74,15 @@ public @interface JcrPath {
*/
boolean isRelative() default false;
/**
* <p>
* The root absolute path to use in the picker. This parameter allows the picker to select documents outside the channel
* content path scope. However it is still restricted by authorization rules. The default value is empty, it means that
* the picker will use the canonical content path of the channel as the root path.
* </p>
* @return the absolute root path to use in the picker, or an empty string if the channel content path is used. If configured
* it <strong>must</strong> start with a "/".
*/
String pickerRootPath() default "";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment