限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
DATA_FILE |
static java.lang.String |
LAYOUT_FILE |
private CacheEntity<java.lang.Short,java.util.Map<java.lang.String,CmsLayout>> |
layoutCache |
protected org.apache.commons.logging.Log |
log |
private MetadataComponent |
metadataComponent |
static java.lang.String |
MODULE_FILE |
private CacheEntity<java.lang.Short,java.util.Map<java.lang.String,CmsModule>> |
moduleCache |
static java.lang.String |
REGION_FILE |
private CacheEntity<java.lang.Short,java.util.Map<java.lang.String,CmsRegion>> |
regionCache |
private CacheEntity<java.lang.Short,java.util.Map<java.lang.String,CmsRegionData>> |
regionDataCache |
private SiteComponent |
siteComponent |
private TemplateComponent |
templateComponent |
构造器和说明 |
---|
DiyComponent() |
限定符和类型 | 方法和说明 |
---|---|
void |
clear() |
void |
clear(short siteId) |
CmsLayout |
deleteLayout(SysSite site,
java.lang.String id)
删除布局
|
CmsModule |
deleteModule(SysSite site,
java.lang.String id)
删除模块
|
CmsRegion |
deleteRegion(SysSite site,
java.lang.String id)
删除区域
|
CmsRegionData |
deleteRegionData(SysSite site,
java.lang.String id)
删除DIY数据
|
CmsLayout |
getLayout(SysSite site,
java.lang.String id)
获取区域元数据
|
java.util.List<CmsLayout> |
getLayoutList(SysSite site,
java.lang.String region,
boolean showGlobal)
获取布局列表
|
private java.util.Map<java.lang.String,CmsLayout> |
getLayoutMap(SysSite site)
布局数据
|
CmsModule |
getModule(SysSite site,
java.lang.String id)
获取区域元数据
|
java.util.List<CmsModule> |
getModuleList(SysSite site,
java.lang.String region,
boolean showGlobal)
获取模块列表
|
private java.util.Map<java.lang.String,CmsModule> |
getModuleMap(SysSite site)
模块数据
|
CmsRegion |
getRegion(SysSite site,
java.lang.String id)
获取区域元数据
|
CmsRegionData |
getRegionData(SysSite site,
CmsCategory category,
java.lang.String diydataString) |
CmsRegionData |
getRegionData(SysSite site,
java.lang.String id)
获取DIY数据
|
private java.util.Map<java.lang.String,CmsRegionData> |
getRegionDataMap(SysSite site)
获取DIY数据
|
java.util.List<CmsRegion> |
getRegionList(SysSite site)
获取区域列表
|
private java.util.Map<java.lang.String,CmsRegion> |
getRegionMap(SysSite site)
布局数据
|
void |
initCache(CacheEntityFactory cacheEntityFactory) |
private CmsLayoutData |
parseLayout(SysSite site,
CmsCategory category,
java.util.Map<java.lang.String,java.lang.Object> layoutMap) |
private java.util.List<CmsModuleData> |
parseModuleList(SysSite site,
CmsCategory category,
java.util.Map<java.lang.String,java.lang.Object> moduleListMap) |
private CmsRegionData |
parseRegion(SysSite site,
CmsCategory category,
java.util.Map<java.lang.String,java.lang.Object> map) |
private void |
saveLayout(SysSite site,
java.util.Map<java.lang.String,CmsLayout> map)
保存布局
|
private void |
saveModule(SysSite site,
java.util.Map<java.lang.String,CmsModule> map)
保存模块
|
private void |
saveRegion(SysSite site,
java.util.Map<java.lang.String,CmsRegion> map)
保存布局
|
private void |
saveRegionData(SysSite site,
java.util.Map<java.lang.String,CmsRegionData> map)
保存区域
|
boolean |
updateLayout(SysSite site,
CmsLayout layout)
更新布局数据
|
boolean |
updateModule(SysSite site,
CmsModule module)
更新模块数据
|
boolean |
updateRegion(SysSite site,
CmsRegion region)
更新区域数据
|
boolean |
updateRegionData(SysSite site,
CmsRegionData regionData)
更新DIY数据
|
protected final org.apache.commons.logging.Log log
public static final java.lang.String REGION_FILE
public static final java.lang.String LAYOUT_FILE
public static final java.lang.String MODULE_FILE
public static final java.lang.String DATA_FILE
private CacheEntity<java.lang.Short,java.util.Map<java.lang.String,CmsRegionData>> regionDataCache
private CacheEntity<java.lang.Short,java.util.Map<java.lang.String,CmsRegion>> regionCache
private CacheEntity<java.lang.Short,java.util.Map<java.lang.String,CmsLayout>> layoutCache
private CacheEntity<java.lang.Short,java.util.Map<java.lang.String,CmsModule>> moduleCache
private SiteComponent siteComponent
private TemplateComponent templateComponent
private MetadataComponent metadataComponent
public java.util.List<CmsRegion> getRegionList(SysSite site)
site
- public java.util.List<CmsLayout> getLayoutList(SysSite site, java.lang.String region, boolean showGlobal)
site
- region
- showGlobal
- public java.util.List<CmsModule> getModuleList(SysSite site, java.lang.String region, boolean showGlobal)
site
- region
- showGlobal
- public CmsRegion getRegion(SysSite site, java.lang.String id)
site
- id
- public CmsLayout getLayout(SysSite site, java.lang.String id)
site
- id
- public CmsModule getModule(SysSite site, java.lang.String id)
site
- id
- public CmsRegionData getRegionData(SysSite site, java.lang.String id)
site
- id
- public boolean updateRegion(SysSite site, CmsRegion region)
site
- region
- public boolean updateLayout(SysSite site, CmsLayout layout)
site
- layout
- public boolean updateModule(SysSite site, CmsModule module)
site
- module
- public boolean updateRegionData(SysSite site, CmsRegionData regionData)
site
- regionData
- public CmsRegion deleteRegion(SysSite site, java.lang.String id)
site
- id
- public CmsLayout deleteLayout(SysSite site, java.lang.String id)
site
- id
- public CmsModule deleteModule(SysSite site, java.lang.String id)
site
- id
- public CmsRegionData deleteRegionData(SysSite site, java.lang.String id)
site
- id
- private java.util.Map<java.lang.String,CmsRegion> getRegionMap(SysSite site)
site
- private java.util.Map<java.lang.String,CmsLayout> getLayoutMap(SysSite site)
site
- private java.util.Map<java.lang.String,CmsModule> getModuleMap(SysSite site)
site
- public CmsRegionData getRegionData(SysSite site, CmsCategory category, java.lang.String diydataString)
site
- category
- diydataString
- private java.util.List<CmsModuleData> parseModuleList(SysSite site, CmsCategory category, java.util.Map<java.lang.String,java.lang.Object> moduleListMap)
private CmsLayoutData parseLayout(SysSite site, CmsCategory category, java.util.Map<java.lang.String,java.lang.Object> layoutMap)
private CmsRegionData parseRegion(SysSite site, CmsCategory category, java.util.Map<java.lang.String,java.lang.Object> map)
private java.util.Map<java.lang.String,CmsRegionData> getRegionDataMap(SysSite site)
site
- private void saveRegion(SysSite site, java.util.Map<java.lang.String,CmsRegion> map) throws java.io.IOException
site
- map
- java.io.IOException
private void saveLayout(SysSite site, java.util.Map<java.lang.String,CmsLayout> map) throws java.io.IOException
site
- map
- java.io.IOException
private void saveModule(SysSite site, java.util.Map<java.lang.String,CmsModule> map) throws java.io.IOException
site
- map
- java.io.IOException
private void saveRegionData(SysSite site, java.util.Map<java.lang.String,CmsRegionData> map) throws java.io.IOException
site
- map
- java.io.IOException
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