org.opoo.press.impl
类 SiteManagerImpl

java.lang.Object
  继承者 org.opoo.press.impl.SiteServiceImpl
      继承者 org.opoo.press.impl.SiteManagerImpl
所有已实现的接口:
SiteManager, SiteService

public class SiteManagerImpl
extends SiteServiceImpl
implements SiteManager

作者:
Alex Lin

字段摘要
static String DEFAULT_NEW_PAGE_TEMPLATE
           
static String DEFAULT_NEW_POST_TEMPLATE
           
static String DEFAULT_SAMPLE_POST_TEMPLATE
           
 
构造方法摘要
SiteManagerImpl()
           
 
方法摘要
 void build(Site site)
           
protected  File buildPostFile(Site site, String name, Date date)
           
protected  String buildPostFileName(Site site, String name, Date date)
           
protected  String buildPostFilePath(Site site, String name, Date date)
           
 void clean(Site site)
           
protected  void createSamplePost(Site site, Locale locale)
           
 void doImport(Site site, String importer, Map<String,Object> params)
           
 Site install(File siteDir, Locale locale, boolean createSamplePost)
           
 File newPage(Site site, String title, String name)
           
 File newPost(Site site, String title, String name, boolean draft)
           
protected  String processName(Site site, String title, String name)
           
 
从类 org.opoo.press.impl.SiteServiceImpl 继承的方法
createCompassConfig, createSite, createSite, createSite, createSiteConfig, getYaml, setYaml
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 org.opoo.press.SiteService 继承的方法
createCompassConfig, createSite, createSite, createSite, createSiteConfig
 

字段详细信息

DEFAULT_NEW_POST_TEMPLATE

public static final String DEFAULT_NEW_POST_TEMPLATE
另请参见:
常量字段值

DEFAULT_NEW_PAGE_TEMPLATE

public static final String DEFAULT_NEW_PAGE_TEMPLATE
另请参见:
常量字段值

DEFAULT_SAMPLE_POST_TEMPLATE

public static final String DEFAULT_SAMPLE_POST_TEMPLATE
另请参见:
常量字段值
构造方法详细信息

SiteManagerImpl

public SiteManagerImpl()
方法详细信息

install

public Site install(File siteDir,
                    Locale locale,
                    boolean createSamplePost)
             throws Exception
指定者:
接口 SiteManager 中的 install
抛出:
Exception

buildPostFileName

protected String buildPostFileName(Site site,
                                   String name,
                                   Date date)

buildPostFilePath

protected String buildPostFilePath(Site site,
                                   String name,
                                   Date date)

buildPostFile

protected File buildPostFile(Site site,
                             String name,
                             Date date)

createSamplePost

protected void createSamplePost(Site site,
                                Locale locale)
                         throws IOException
抛出:
IOException

clean

public void clean(Site site)
           throws Exception
指定者:
接口 SiteManager 中的 clean
抛出:
Exception

newPage

public File newPage(Site site,
                    String title,
                    String name)
             throws Exception
指定者:
接口 SiteManager 中的 newPage
抛出:
Exception

newPost

public File newPost(Site site,
                    String title,
                    String name,
                    boolean draft)
             throws Exception
指定者:
接口 SiteManager 中的 newPost
抛出:
Exception

processName

protected String processName(Site site,
                             String title,
                             String name)

build

public void build(Site site)
指定者:
接口 SiteManager 中的 build

doImport

public void doImport(Site site,
                     String importer,
                     Map<String,Object> params)
              throws Exception
指定者:
接口 SiteManager 中的 doImport
抛出:
Exception


Copyright © 2013 Opoo.org. All Rights Reserved.