类 ModelComponent
java.lang.Object
com.publiccms.logic.component.template.ModelComponent
ModelComponent 模型操作组件
-
字段概要
字段修饰符和类型字段说明protected final org.apache.commons.logging.Log
static final String
private CacheEntity<Short,
Map<String, CmsModel>> private SiteComponent
private CacheEntity<Short,
Map<String, CmsCategoryType>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
clear()
void
clear
(short siteId) getCategoryType
(short siteId, String typeId) getCategoryTypeList
(short siteId) getCategoryTypeMap
(short siteId) getModelList
(SysSite site, String parentId, boolean queryAll, Boolean hasChild, Boolean onlyUrl, Boolean hasImages, Boolean hasFiles) getModelMap
(SysSite site) private short
void
initCache
(CacheEntityFactory cacheEntityFactory) boolean
saveCategoryType
(short siteId, Map<String, CmsCategoryType> typeMap) 保存模型boolean
保存模型
-
字段详细资料
-
log
protected final org.apache.commons.logging.Log log -
modelCache
-
typeCache
-
MODEL_LINK
- 另请参阅:
-
siteComponent
-
-
构造器详细资料
-
ModelComponent
public ModelComponent()
-
-
方法详细资料
-
getModelList
public List<CmsModel> getModelList(SysSite site, String parentId, boolean queryAll, Boolean hasChild, Boolean onlyUrl, Boolean hasImages, Boolean hasFiles) - 参数:
site
-parentId
-queryAll
-hasChild
-onlyUrl
-hasImages
-hasFiles
-- 返回:
- models list
-
getCategoryTypeList
- 参数:
siteId
-- 返回:
- category types list
-
getModel
- 参数:
site
-modelId
-- 返回:
- model
-
getModelMap
- 参数:
site
-- 返回:
- model map
-
getCategoryType
- 参数:
siteId
-typeId
-- 返回:
- category type
-
getCategoryTypeMap
- 参数:
siteId
-- 返回:
- model map
-
saveModel
保存模型- 参数:
siteId
-modelMap
-- 返回:
- whether the save is successful
-
saveCategoryType
保存模型- 参数:
siteId
-typeMap
-- 返回:
- whether the save is successful
-
getSiteId
-
clear
public void clear() -
clear
public void clear(short siteId) -
initCache
public void initCache(CacheEntityFactory cacheEntityFactory) throws ClassNotFoundException, InstantiationException, IllegalAccessException - 参数:
cacheEntityFactory
-- 抛出:
IllegalAccessException
InstantiationException
ClassNotFoundException
-