Class Redirects

java.lang.Object
com.adobe.acs.commons.redirects.models.Redirects

@Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class) public class Redirects extends Object
Model for paginated output on http://localhost:4502/apps/acs-commons/content/redirect-manager.html
  • Field Details

  • Constructor Details

    • Redirects

      public Redirects()
  • Method Details

    • init

      @PostConstruct protected void init()
    • readRedirects

      public static List<org.apache.sling.api.resource.Resource> readRedirects(org.apache.sling.api.resource.Resource configResource)
      Read redirects stored in AEM
      Parameters:
      configResource - the configuration resource, e.g. /conf/my-site/settings/redirects
      Returns:
      list of collected redirect resources
    • getItems

      public List<org.apache.sling.api.resource.Resource> getItems()
    • isPaginated

      public boolean isPaginated()
    • getPages

      public int getPages()
    • getPageNumber

      public int getPageNumber()
    • hasNext

      public boolean hasNext()
    • getNextPage

      public int getNextPage()
    • hasPrevious

      public boolean hasPrevious()
    • getPreviousPage

      public int getPreviousPage()
    • getContextPrefix

      public String getContextPrefix()
    • getIgnoreSelectors

      public boolean getIgnoreSelectors()