Class PathReferencesService.Options

  • Enclosing interface:
    PathReferencesService

    public static class PathReferencesService.Options
    extends Object
    an options set to specify the parameters of the query to search path references; build the options for the reference search like this:
         final Options options = new Options()
                 .basePath('/content/mysite')
                 .propertyName('text')
                 .includeChildren(true)
                 .useRelativePath(true)
                 .findRichText(true);
     
    • Field Detail

      • basePath

        protected String basePath
      • primaryType

        protected String primaryType
      • contentPath

        protected String contentPath
      • resourceName

        protected String resourceName
      • resourceType

        protected String resourceType
      • propertyName

        protected String propertyName
      • useTextSearch

        protected boolean useTextSearch
      • useAbsolutePath

        protected boolean useAbsolutePath
      • useRelativePath

        protected boolean useRelativePath
      • includeChildren

        protected boolean includeChildren
      • childrenOnly

        protected boolean childrenOnly
      • findRichText

        protected boolean findRichText
    • Constructor Detail

      • Options

        public Options()
    • Method Detail

      • getBasePath

        @NotNull
        public @NotNull String getBasePath()
      • getPrimaryType

        @Nullable
        public @Nullable String getPrimaryType()
      • getContentPath

        @Nullable
        public @Nullable String getContentPath()
      • getResourceName

        public String getResourceName()
      • getResourceType

        public String getResourceType()
      • getPropertyName

        public String getPropertyName()
      • isUseTextSearch

        public boolean isUseTextSearch()
      • isUseAbsolutePath

        public boolean isUseAbsolutePath()
      • isUseRelativePath

        public boolean isUseRelativePath()
      • isIncludeChildren

        public boolean isIncludeChildren()
      • isChildrenOnly

        public boolean isChildrenOnly()
      • isFindRichText

        public boolean isFindRichText()
      • basePath

        public PathReferencesService.Options basePath​(@NotNull
                                                      @NotNull String path)
        the 'base path' is used to complete a relative path or to determine the relative variant of an absolute path; if in a referer search a relative path is searched this base path is prepended to build the absolute path; if an absolute path is searched the base path is used to build the relative variant of the absolute path if this absolutre path starts with the base path
      • useTextSearch

        public PathReferencesService.Options useTextSearch​(boolean flag)
        if 'true' the path is searched using the fulltext search (jcr:contains())
      • useAbsolutePath

        public PathReferencesService.Options useAbsolutePath​(boolean flag)
        if 'true' the absolute path variant of the searched path is checked
      • useRelativePath

        public PathReferencesService.Options useRelativePath​(boolean flag)
        if 'true' the relative path variant of the searched path is checked
      • includeChildren

        public PathReferencesService.Options includeChildren​(boolean flag)
        if 'true' all resources wich are referencing paths starting with the searched path are found
      • childrenOnly

        public PathReferencesService.Options childrenOnly​(boolean flag)
        if 'true' a search for subpages of the specified path to search is executed
      • findRichText

        public PathReferencesService.Options findRichText​(boolean flag)
        if 'true' the path is searched also as part of rich text properties (contains a pattern like '="{path}"')