Class ContentsSPIDefaultImpl

java.lang.Object
org.apache.wiki.spi.ContentsSPIDefaultImpl
All Implemented Interfaces:
ContentsSPI

public class ContentsSPIDefaultImpl
extends Object
implements ContentsSPI
Default implementation for ContentsSPI
See Also:
ContentsSPI
  • Constructor Details

  • Method Details

    • attachment

      public Attachment attachment​(Engine engine, String parentPage, String fileName)
      Creates a new Attachment. The final name of the attachment will be a synthesis of the parent page name and the file name.
      Specified by:
      attachment in interface ContentsSPI
      Parameters:
      engine - The Engine which is hosting this attachment.
      parentPage - The page which will contain this attachment.
      fileName - The file name for the attachment.
      Returns:
      new Attachment instance.
    • page

      public Page page​(Engine engine, String name)
      Creates a Page instance.
      Specified by:
      page in interface ContentsSPI
      Parameters:
      engine - The Engine that owns this page.
      name - The name of the page.
      Returns:
      new Page instance.