类 DiyComponent
java.lang.Object
com.publiccms.logic.component.template.DiyComponent
DIY数据组件
Diy Component
-
字段概要
字段修饰符和类型字段说明static final String
static final String
private CacheEntity<Short,
Map<String, CmsLayout>> protected final org.apache.commons.logging.Log
private MetadataComponent
static final String
private CacheEntity<Short,
Map<String, CmsModule>> static final String
private CacheEntity<Short,
Map<String, CmsRegion>> private CacheEntity<Short,
Map<String, CmsRegionData>> private SiteComponent
private TemplateComponent
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
clear()
void
clear
(short siteId) deleteLayout
(SysSite site, String id) 删除布局deleteModule
(SysSite site, String id) 删除模块deleteRegion
(SysSite site, String id) 删除区域deleteRegionData
(SysSite site, String id) 删除DIY数据获取区域元数据getLayoutList
(SysSite site, String region, boolean showGlobal) 获取布局列表getLayoutMap
(SysSite site) 布局数据获取区域元数据getModuleList
(SysSite site, String region, boolean showGlobal) 获取模块列表getModuleMap
(SysSite site) 模块数据获取区域元数据getRegionData
(SysSite site, CmsCategory category, String diydataString) getRegionData
(SysSite site, String id) 获取DIY数据private Map<String,
CmsRegionData> getRegionDataMap
(SysSite site) 获取DIY数据getRegionList
(SysSite site) 获取区域列表getRegionMap
(SysSite site) 布局数据void
initCache
(CacheEntityFactory cacheEntityFactory) private CmsLayoutData
parseLayout
(SysSite site, CmsCategory category, Map<String, Object> layoutMap) private List<CmsModuleData>
parseModuleList
(SysSite site, CmsCategory category, Map<String, Object> moduleListMap) private CmsRegionData
parseRegion
(SysSite site, CmsCategory category, Map<String, Object> map) private void
saveLayout
(SysSite site, Map<String, CmsLayout> map) 保存布局private void
saveModule
(SysSite site, Map<String, CmsModule> map) 保存模块private void
saveRegion
(SysSite site, Map<String, CmsRegion> map) 保存布局private void
saveRegionData
(SysSite site, Map<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数据
-
字段详细资料
-
log
protected final org.apache.commons.logging.Log log -
REGION_FILE
- 另请参阅:
-
LAYOUT_FILE
- 另请参阅:
-
MODULE_FILE
- 另请参阅:
-
DATA_FILE
- 另请参阅:
-
regionDataCache
-
regionCache
-
layoutCache
-
moduleCache
-
siteComponent
-
templateComponent
-
metadataComponent
-
-
构造器详细资料
-
DiyComponent
public DiyComponent()
-
-
方法详细资料
-
getRegionList
获取区域列表- 参数:
site
-- 返回:
- region list
-
getLayoutList
获取布局列表- 参数:
site
-region
-showGlobal
-- 返回:
- layout list
-
getModuleList
获取模块列表- 参数:
site
-region
-showGlobal
-- 返回:
- module list
-
getRegion
获取区域元数据- 参数:
site
-id
-- 返回:
- region
-
getLayout
获取区域元数据- 参数:
site
-id
-- 返回:
- layout
-
getModule
获取区域元数据- 参数:
site
-id
-- 返回:
- module
-
getRegionData
获取DIY数据- 参数:
site
-id
-- 返回:
- diy data
-
updateRegion
更新区域数据- 参数:
site
-region
-- 返回:
- whether the update is successful
-
updateLayout
更新布局数据- 参数:
site
-layout
-- 返回:
- whether the update is successful
-
updateModule
更新模块数据- 参数:
site
-module
-- 返回:
- whether the update is successful
-
updateRegionData
更新DIY数据- 参数:
site
-regionData
-- 返回:
- whether the update is successful
-
deleteRegion
删除区域- 参数:
site
-id
-- 返回:
- whether the delete is successful
-
deleteLayout
删除布局- 参数:
site
-id
-- 返回:
- whether the delete is successful
-
deleteModule
删除模块- 参数:
site
-id
-- 返回:
- whether the delete is successful
-
deleteRegionData
删除DIY数据- 参数:
site
-id
-- 返回:
- whether the delete is successful
-
getRegionMap
布局数据- 参数:
site
-- 返回:
- layout map
-
getLayoutMap
布局数据- 参数:
site
-- 返回:
- layout map
-
getModuleMap
模块数据- 参数:
site
-- 返回:
- module map
-
getRegionData
- 参数:
site
-category
-diydataString
-- 返回:
- diydata
-
parseModuleList
private List<CmsModuleData> parseModuleList(SysSite site, CmsCategory category, Map<String, Object> moduleListMap) -
parseLayout
-
parseRegion
-
getRegionDataMap
获取DIY数据- 参数:
site
-- 返回:
- template metadata map
-
saveRegion
保存布局- 参数:
site
-map
-- 抛出:
IOException
-
saveLayout
保存布局- 参数:
site
-map
-- 抛出:
IOException
-
saveModule
保存模块- 参数:
site
-map
-- 抛出:
IOException
-
saveRegionData
保存区域- 参数:
site
-map
-- 抛出:
IOException
-
clear
public void clear(short siteId) -
clear
public void clear() -
initCache
public void initCache(CacheEntityFactory cacheEntityFactory) throws ClassNotFoundException, InstantiationException, IllegalAccessException - 参数:
cacheEntityFactory
-- 抛出:
IllegalAccessException
InstantiationException
ClassNotFoundException
-