类 SiteComponent

java.lang.Object
com.publiccms.logic.component.site.SiteComponent
所有已实现的接口:
Cache

public class SiteComponent extends Object implements Cache
SiteComponent
  • 字段详细资料

    • TEMPLATE_PATH

      public static final String TEMPLATE_PATH
      另请参阅:
    • BACKUP_PATH

      public static final String BACKUP_PATH
      另请参阅:
    • HISTORY_PATH

      public static final String HISTORY_PATH
      另请参阅:
    • TASK_FILE_PATH

      public static final String TASK_FILE_PATH
      另请参阅:
    • STATIC_FILE_PATH_WEB

      public static final String STATIC_FILE_PATH_WEB
      另请参阅:
    • STATIC_FILE_PATH_PRIVATE

      public static final String STATIC_FILE_PATH_PRIVATE
      另请参阅:
    • SITE_FILE_PATH

      public static final String SITE_FILE_PATH
      另请参阅:
    • SITE_PATH_PREFIX

      public static final String SITE_PATH_PREFIX
      另请参阅:
    • MODEL_FILE

      public static final String MODEL_FILE
      另请参阅:
    • CATEGORY_TYPE_FILE

      public static final String CATEGORY_TYPE_FILE
      另请参阅:
    • CONFIG_FILE

      public static final String CONFIG_FILE
      另请参阅:
    • siteCache

      private CacheEntity<String,SysSite> siteCache
    • domainCache

      private CacheEntity<String,SysDomain> domainCache
    • rootPath

      private String rootPath
    • privateFilePath

      private String privateFilePath
    • webFilePath

      private String webFilePath
    • taskTemplateFilePath

      private String taskTemplateFilePath
    • templateFilePath

      private String templateFilePath
    • webBackupFilePath

      private String webBackupFilePath
    • templateBackupFilePath

      private String templateBackupFilePath
    • taskTemplateBackupFilePath

      private String taskTemplateBackupFilePath
    • webHistoryFilePath

      private String webHistoryFilePath
    • templateHistoryFilePath

      private String templateHistoryFilePath
    • taskTemplateHistoryFilePath

      private String taskTemplateHistoryFilePath
    • defaultSiteId

      private short defaultSiteId
    • dictEnable

      private boolean dictEnable
    • masterSiteIdSet

      private Set<Short> masterSiteIdSet
    • sysDomainService

      private SysDomainService sysDomainService
    • sysSiteService

      private SysSiteService sysSiteService
  • 构造器详细资料

    • SiteComponent

      public SiteComponent()
  • 方法详细资料

    • setDictEnable

      public void setDictEnable(boolean dictEnable)
      参数:
      dictEnable - the dictEnable to set
    • isDictEnable

      public boolean isDictEnable()
      返回:
      the dictEnable
    • getFullTemplatePath

      public static String getFullTemplatePath(short siteId, String path)
      参数:
      siteId -
      path -
      返回:
      full file name
    • getFullFileName

      public static String getFullFileName(short siteId, String path)
      参数:
      siteId -
      path -
      返回:
      full file name
    • getViewName

      public String getViewName(short siteId, String serverName, String path)
      参数:
      siteId -
      serverName -
      path -
      返回:
      view name
    • getViewName

      public String getViewName(short siteId, SysDomain sysDomain, String path)
      参数:
      siteId -
      sysDomain -
      path -
      返回:
      view name
    • getDomain

      public SysDomain getDomain(String serverName)
      参数:
      serverName -
      返回:
      domain
    • getPath

      public String getPath(SysSite site, String path)
      参数:
      site -
      path -
      返回:
      site
    • getSiteById

      public SysSite getSiteById(Short id)
      参数:
      id -
      返回:
      site
    • getSiteById

      public SysSite getSiteById(String id)
      参数:
      id -
      返回:
      site
    • getSite

      public SysSite getSite(SysDomain domain, String serverName, String path)
      参数:
      domain -
      serverName -
      path -
      返回:
      site
    • getSite

      public SysSite getSite(String serverName, String path)
      参数:
      serverName -
      path -
      返回:
      site
    • isMaster

      public boolean isMaster(short siteId)
      参数:
      siteId -
      返回:
      whether the master site
    • getWebFilePath

      public String getWebFilePath(short siteId, String filepath)
      参数:
      siteId -
      filepath -
      返回:
      web file path
    • getPrivateFilePath

      public String getPrivateFilePath(short siteId, String filepath)
      参数:
      siteId -
      filepath -
      返回:
      private file path
    • getWebHistoryFilePath

      public String getWebHistoryFilePath(short siteId, String filepath, boolean newfile)
      参数:
      siteId -
      filepath -
      newfile - add new file name
      返回:
      web history file path
    • getWebBackupFilePath

      public String getWebBackupFilePath(short siteId, String filepath)
      参数:
      siteId -
      filepath -
      返回:
      web backup file path
    • getSiteFilePath

      public String getSiteFilePath(String path)
      参数:
      path -
      返回:
      site file path
    • getTaskTemplateFilePath

      public String getTaskTemplateFilePath(short siteId, String templatePath)
      参数:
      siteId -
      templatePath -
      返回:
      task template file path
    • getTaskTemplateHistoryFilePath

      public String getTaskTemplateHistoryFilePath(short siteId, String templatePath, boolean newfile)
      参数:
      siteId -
      templatePath -
      newfile - add new file name
      返回:
      task template history file path
    • getTaskTemplateBackupFilePath

      public String getTaskTemplateBackupFilePath(short siteId, String templatePath)
      参数:
      siteId -
      templatePath -
      返回:
      task template backup file path
    • getTemplateFilePath

      public String getTemplateFilePath(short siteId, String templatePath)
      参数:
      siteId -
      templatePath -
      返回:
      template file path
    • getTemplateHistoryFilePath

      public String getTemplateHistoryFilePath(short siteId, String templatePath, boolean newfile)
      参数:
      siteId -
      templatePath -
      newfile - add new file name
      返回:
      template history file path
    • getTemplateBackupFilePath

      public String getTemplateBackupFilePath(short siteId, String templatePath)
      参数:
      siteId -
      templatePath -
      返回:
      template backup file path
    • getModelFilePath

      public String getModelFilePath(short siteId)
      参数:
      siteId -
      返回:
      model file path
    • getCategoryTypeFilePath

      public String getCategoryTypeFilePath(short siteId)
      参数:
      siteId -
      返回:
      category type file path
    • getConfigFilePath

      public String getConfigFilePath(short siteId)
      参数:
      siteId -
      返回:
      config file path
    • setDefaultSiteId

      public void setDefaultSiteId(short defaultSiteId)
      参数:
      defaultSiteId -
    • setMasterSiteIds

      public void setMasterSiteIds(String masterSiteIds)
      参数:
      masterSiteIds -
    • setRootPath

      public void setRootPath(String rootPath)
      参数:
      rootPath -
    • clear

      public void clear()
      指定者:
      clear 在接口中 Cache
    • initCache

      public void initCache(CacheEntityFactory cacheEntityFactory) throws ClassNotFoundException, InstantiationException, IllegalAccessException
      参数:
      cacheEntityFactory -
      抛出:
      IllegalAccessException
      InstantiationException
      ClassNotFoundException
    • getRootPath

      public String getRootPath()
      返回:
      root path
    • getTaskTemplateFilePath

      public String getTaskTemplateFilePath()
      返回:
      task template file path
    • getTemplateFilePath

      public String getTemplateFilePath()
      返回:
      web template file path