Interface PageMappingService

  • All Known Implementing Classes:
    PageMappingServiceImpl

    public interface PageMappingService
    Service that allows to map an arbitrary String key to a (Custom) Page or URL. Also allows to process the URL or Page return by providing an URLAdapter implementation that will be called automatically. Also allows to execute Authorization checkings by specifying rules to execute before returning the Page or URL.
    Author:
    Baptiste Mesta, Emmanuel Duchastenier, Matthieu Chaffotte
    See Also:
    URLAdapter
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      SPageMapping create​(java.lang.String key, java.lang.Long pageId, java.util.List<java.lang.String> authorizationRules)  
      SPageMapping create​(java.lang.String key, java.lang.String url, java.lang.String urlAdapter, java.util.List<java.lang.String> authorizationRules)  
      void delete​(SPageMapping SPageMapping)
      delete this page mapping
      java.util.List<SPageMapping> get​(long pageId, int startIndex, int maxResults)
      Gets the paginated mappings of the page.
      SPageMapping get​(java.lang.String key)  
      SPageURL resolvePageURL​(SPageMapping pageMapping, java.util.Map<java.lang.String,​java.io.Serializable> context, boolean executeAuthorizationRules)  
      void update​(SPageMapping pageMapping, java.lang.Long pageId)
      update the given page mapping
      void update​(SPageMapping pageMapping, java.lang.String url, java.lang.String urlAdapter)
      update the given page mapping