类 SiteComponent
java.lang.Object
com.publiccms.logic.component.site.SiteComponent
- 所有已实现的接口:
Cache
SiteComponent
-
字段概要
字段修饰符和类型字段说明static final String
static final String
static final String
private short
private boolean
private CacheEntity<String,
SysDomain> static final String
static final String
private String
private String
static final String
static final String
private CacheEntity<String,
SysSite> static final String
static final String
private SysDomainService
private SysSiteService
static final String
private String
private String
private String
static final String
private String
private String
private String
private String
private String
private String
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
clear()
getCategoryTypeFilePath
(short siteId) getConfigFilePath
(short siteId) static String
getFullFileName
(short siteId, String path) static String
getFullTemplatePath
(short siteId, String path) getModelFilePath
(short siteId) getPrivateFilePath
(short siteId, String filepath) getSiteById
(Short id) getSiteById
(String id) getSiteFilePath
(String path) getTaskTemplateBackupFilePath
(short siteId, String templatePath) getTaskTemplateFilePath
(short siteId, String templatePath) getTaskTemplateHistoryFilePath
(short siteId, String templatePath, boolean newfile) getTemplateBackupFilePath
(short siteId, String templatePath) getTemplateFilePath
(short siteId, String templatePath) getTemplateHistoryFilePath
(short siteId, String templatePath, boolean newfile) getViewName
(short siteId, SysDomain sysDomain, String path) getViewName
(short siteId, String serverName, String path) getWebBackupFilePath
(short siteId, String filepath) getWebFilePath
(short siteId, String filepath) getWebHistoryFilePath
(short siteId, String filepath, boolean newfile) void
initCache
(CacheEntityFactory cacheEntityFactory) boolean
boolean
isMaster
(short siteId) void
setDefaultSiteId
(short defaultSiteId) void
setDictEnable
(boolean dictEnable) void
setMasterSiteIds
(String masterSiteIds) void
setRootPath
(String rootPath)
-
字段详细资料
-
TEMPLATE_PATH
- 另请参阅:
-
BACKUP_PATH
- 另请参阅:
-
HISTORY_PATH
- 另请参阅:
-
TASK_FILE_PATH
- 另请参阅:
-
STATIC_FILE_PATH_WEB
- 另请参阅:
-
STATIC_FILE_PATH_PRIVATE
- 另请参阅:
-
SITE_FILE_PATH
- 另请参阅:
-
SITE_PATH_PREFIX
- 另请参阅:
-
MODEL_FILE
- 另请参阅:
-
CATEGORY_TYPE_FILE
- 另请参阅:
-
CONFIG_FILE
- 另请参阅:
-
siteCache
-
domainCache
-
rootPath
-
privateFilePath
-
webFilePath
-
taskTemplateFilePath
-
templateFilePath
-
webBackupFilePath
-
templateBackupFilePath
-
taskTemplateBackupFilePath
-
webHistoryFilePath
-
templateHistoryFilePath
-
taskTemplateHistoryFilePath
-
defaultSiteId
private short defaultSiteId -
dictEnable
private boolean dictEnable -
masterSiteIdSet
-
sysDomainService
-
sysSiteService
-
-
构造器详细资料
-
SiteComponent
public SiteComponent()
-
-
方法详细资料
-
setDictEnable
public void setDictEnable(boolean dictEnable) - 参数:
dictEnable
- the dictEnable to set
-
isDictEnable
public boolean isDictEnable()- 返回:
- the dictEnable
-
getFullTemplatePath
- 参数:
siteId
-path
-- 返回:
- full file name
-
getFullFileName
- 参数:
siteId
-path
-- 返回:
- full file name
-
getViewName
- 参数:
siteId
-serverName
-path
-- 返回:
- view name
-
getViewName
- 参数:
siteId
-sysDomain
-path
-- 返回:
- view name
-
getDomain
- 参数:
serverName
-- 返回:
- domain
-
getPath
- 参数:
site
-path
-- 返回:
- site
-
getSiteById
- 参数:
id
-- 返回:
- site
-
getSiteById
- 参数:
id
-- 返回:
- site
-
getSite
- 参数:
domain
-serverName
-path
-- 返回:
- site
-
getSite
- 参数:
serverName
-path
-- 返回:
- site
-
isMaster
public boolean isMaster(short siteId) - 参数:
siteId
-- 返回:
- whether the master site
-
getWebFilePath
- 参数:
siteId
-filepath
-- 返回:
- web file path
-
getPrivateFilePath
- 参数:
siteId
-filepath
-- 返回:
- private file path
-
getWebHistoryFilePath
- 参数:
siteId
-filepath
-newfile
- add new file name- 返回:
- web history file path
-
getWebBackupFilePath
- 参数:
siteId
-filepath
-- 返回:
- web backup file path
-
getSiteFilePath
- 参数:
path
-- 返回:
- site file path
-
getTaskTemplateFilePath
- 参数:
siteId
-templatePath
-- 返回:
- task template file path
-
getTaskTemplateHistoryFilePath
- 参数:
siteId
-templatePath
-newfile
- add new file name- 返回:
- task template history file path
-
getTaskTemplateBackupFilePath
- 参数:
siteId
-templatePath
-- 返回:
- task template backup file path
-
getTemplateFilePath
- 参数:
siteId
-templatePath
-- 返回:
- template file path
-
getTemplateHistoryFilePath
- 参数:
siteId
-templatePath
-newfile
- add new file name- 返回:
- template history file path
-
getTemplateBackupFilePath
- 参数:
siteId
-templatePath
-- 返回:
- template backup file path
-
getModelFilePath
- 参数:
siteId
-- 返回:
- model file path
-
getCategoryTypeFilePath
- 参数:
siteId
-- 返回:
- category type file path
-
getConfigFilePath
- 参数:
siteId
-- 返回:
- config file path
-
setDefaultSiteId
public void setDefaultSiteId(short defaultSiteId) - 参数:
defaultSiteId
-
-
setMasterSiteIds
- 参数:
masterSiteIds
-
-
setRootPath
- 参数:
rootPath
-
-
clear
public void clear() -
initCache
public void initCache(CacheEntityFactory cacheEntityFactory) throws ClassNotFoundException, InstantiationException, IllegalAccessException - 参数:
cacheEntityFactory
-- 抛出:
IllegalAccessException
InstantiationException
ClassNotFoundException
-
getRootPath
- 返回:
- root path
-
getTaskTemplateFilePath
- 返回:
- task template file path
-
getTemplateFilePath
- 返回:
- web template file path
-