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
|
方法摘要 |
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)
|
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.