限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
BACKUP_PATH |
static java.lang.String |
CATEGORY_TYPE_FILE |
static java.lang.String |
CONFIG_FILE |
private short |
defaultSiteId |
private boolean |
dictEnable |
private CacheEntity<java.lang.String,SysDomain> |
domainCache |
static java.lang.String |
HISTORY_PATH |
private java.util.Set<java.lang.Short> |
masterSiteIdSet |
static java.lang.String |
MODEL_FILE |
private java.lang.String |
privateFilePath |
private java.lang.String |
rootPath |
static java.lang.String |
SITE_FILE_PATH |
static java.lang.String |
SITE_PATH_PREFIX |
private CacheEntity<java.lang.String,SysSite> |
siteCache |
static java.lang.String |
STATIC_FILE_PATH_PRIVATE |
static java.lang.String |
STATIC_FILE_PATH_WEB |
private SysDomainService |
sysDomainService |
private SysSiteService |
sysSiteService |
static java.lang.String |
TASK_FILE_PATH |
private java.lang.String |
taskTemplateBackupFilePath |
private java.lang.String |
taskTemplateFilePath |
private java.lang.String |
taskTemplateHistoryFilePath |
static java.lang.String |
TEMPLATE_PATH |
private java.lang.String |
templateBackupFilePath |
private java.lang.String |
templateFilePath |
private java.lang.String |
templateHistoryFilePath |
private java.lang.String |
webBackupFilePath |
private java.lang.String |
webFilePath |
private java.lang.String |
webHistoryFilePath |
构造器和说明 |
---|
SiteComponent() |
限定符和类型 | 方法和说明 |
---|---|
void |
clear() |
java.lang.String |
getCategoryTypeFilePath(short siteId) |
java.lang.String |
getConfigFilePath(short siteId) |
SysDomain |
getDomain(java.lang.String serverName) |
static java.lang.String |
getFullFileName(short siteId,
java.lang.String path) |
static java.lang.String |
getFullTemplatePath(short siteId,
java.lang.String path) |
java.lang.String |
getModelFilePath(short siteId) |
java.lang.String |
getPath(SysSite site,
java.lang.String path) |
java.lang.String |
getPrivateFilePath(short siteId,
java.lang.String filepath) |
java.lang.String |
getRootPath() |
SysSite |
getSite(java.lang.String serverName,
java.lang.String path) |
SysSite |
getSite(SysDomain domain,
java.lang.String serverName,
java.lang.String path) |
SysSite |
getSiteById(java.lang.Short id) |
SysSite |
getSiteById(java.lang.String id) |
java.lang.String |
getSiteFilePath(java.lang.String path) |
java.lang.String |
getTaskTemplateBackupFilePath(short siteId,
java.lang.String templatePath) |
java.lang.String |
getTaskTemplateFilePath() |
java.lang.String |
getTaskTemplateFilePath(short siteId,
java.lang.String templatePath) |
java.lang.String |
getTaskTemplateHistoryFilePath(short siteId,
java.lang.String templatePath,
boolean newfile) |
java.lang.String |
getTemplateBackupFilePath(short siteId,
java.lang.String templatePath) |
java.lang.String |
getTemplateFilePath() |
java.lang.String |
getTemplateFilePath(short siteId,
java.lang.String templatePath) |
java.lang.String |
getTemplateHistoryFilePath(short siteId,
java.lang.String templatePath,
boolean newfile) |
java.lang.String |
getViewName(short siteId,
java.lang.String serverName,
java.lang.String path) |
java.lang.String |
getViewName(short siteId,
SysDomain sysDomain,
java.lang.String path) |
java.lang.String |
getWebBackupFilePath(short siteId,
java.lang.String filepath) |
java.lang.String |
getWebFilePath(short siteId,
java.lang.String filepath) |
java.lang.String |
getWebHistoryFilePath(short siteId,
java.lang.String filepath,
boolean newfile) |
void |
initCache(CacheEntityFactory cacheEntityFactory) |
boolean |
isDictEnable() |
boolean |
isMaster(short siteId) |
void |
setDefaultSiteId(short defaultSiteId) |
void |
setDictEnable(boolean dictEnable) |
void |
setMasterSiteIds(java.lang.String masterSiteIds) |
void |
setRootPath(java.lang.String rootPath) |
public static final java.lang.String TEMPLATE_PATH
public static final java.lang.String BACKUP_PATH
public static final java.lang.String HISTORY_PATH
public static final java.lang.String TASK_FILE_PATH
public static final java.lang.String STATIC_FILE_PATH_WEB
public static final java.lang.String STATIC_FILE_PATH_PRIVATE
public static final java.lang.String SITE_FILE_PATH
public static final java.lang.String SITE_PATH_PREFIX
public static final java.lang.String MODEL_FILE
public static final java.lang.String CATEGORY_TYPE_FILE
public static final java.lang.String CONFIG_FILE
private CacheEntity<java.lang.String,SysSite> siteCache
private CacheEntity<java.lang.String,SysDomain> domainCache
private java.lang.String rootPath
private java.lang.String privateFilePath
private java.lang.String webFilePath
private java.lang.String taskTemplateFilePath
private java.lang.String templateFilePath
private java.lang.String webBackupFilePath
private java.lang.String templateBackupFilePath
private java.lang.String taskTemplateBackupFilePath
private java.lang.String webHistoryFilePath
private java.lang.String templateHistoryFilePath
private java.lang.String taskTemplateHistoryFilePath
private short defaultSiteId
private boolean dictEnable
private java.util.Set<java.lang.Short> masterSiteIdSet
private SysDomainService sysDomainService
private SysSiteService sysSiteService
public void setDictEnable(boolean dictEnable)
dictEnable
- the dictEnable to setpublic boolean isDictEnable()
public static java.lang.String getFullTemplatePath(short siteId, java.lang.String path)
siteId
- path
- public static java.lang.String getFullFileName(short siteId, java.lang.String path)
siteId
- path
- public java.lang.String getViewName(short siteId, java.lang.String serverName, java.lang.String path)
siteId
- serverName
- path
- public java.lang.String getViewName(short siteId, SysDomain sysDomain, java.lang.String path)
siteId
- sysDomain
- path
- public SysDomain getDomain(java.lang.String serverName)
serverName
- public java.lang.String getPath(SysSite site, java.lang.String path)
site
- path
- public SysSite getSiteById(java.lang.Short id)
id
- public SysSite getSiteById(java.lang.String id)
id
- public SysSite getSite(SysDomain domain, java.lang.String serverName, java.lang.String path)
domain
- serverName
- path
- public SysSite getSite(java.lang.String serverName, java.lang.String path)
serverName
- path
- public boolean isMaster(short siteId)
siteId
- public java.lang.String getWebFilePath(short siteId, java.lang.String filepath)
siteId
- filepath
- public java.lang.String getPrivateFilePath(short siteId, java.lang.String filepath)
siteId
- filepath
- public java.lang.String getWebHistoryFilePath(short siteId, java.lang.String filepath, boolean newfile)
siteId
- filepath
- newfile
- add new file namepublic java.lang.String getWebBackupFilePath(short siteId, java.lang.String filepath)
siteId
- filepath
- public java.lang.String getSiteFilePath(java.lang.String path)
path
- public java.lang.String getTaskTemplateFilePath(short siteId, java.lang.String templatePath)
siteId
- templatePath
- public java.lang.String getTaskTemplateHistoryFilePath(short siteId, java.lang.String templatePath, boolean newfile)
siteId
- templatePath
- newfile
- add new file namepublic java.lang.String getTaskTemplateBackupFilePath(short siteId, java.lang.String templatePath)
siteId
- templatePath
- public java.lang.String getTemplateFilePath(short siteId, java.lang.String templatePath)
siteId
- templatePath
- public java.lang.String getTemplateHistoryFilePath(short siteId, java.lang.String templatePath, boolean newfile)
siteId
- templatePath
- newfile
- add new file namepublic java.lang.String getTemplateBackupFilePath(short siteId, java.lang.String templatePath)
siteId
- templatePath
- public java.lang.String getModelFilePath(short siteId)
siteId
- public java.lang.String getCategoryTypeFilePath(short siteId)
siteId
- public java.lang.String getConfigFilePath(short siteId)
siteId
- public void setDefaultSiteId(short defaultSiteId)
defaultSiteId
- public void setMasterSiteIds(java.lang.String masterSiteIds)
masterSiteIds
- public void setRootPath(java.lang.String rootPath)
rootPath
- public void initCache(CacheEntityFactory cacheEntityFactory) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
cacheEntityFactory
- java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.ClassNotFoundException
public java.lang.String getRootPath()
public java.lang.String getTaskTemplateFilePath()
public java.lang.String getTemplateFilePath()