限定符和类型 | 字段和说明 |
---|---|
protected org.apache.commons.logging.Log |
log |
static java.lang.String |
MODEL_LINK |
private CacheEntity<java.lang.Short,java.util.Map<java.lang.String,CmsModel>> |
modelCache |
private SiteComponent |
siteComponent |
private CacheEntity<java.lang.Short,java.util.Map<java.lang.String,CmsCategoryType>> |
typeCache |
构造器和说明 |
---|
ModelComponent() |
限定符和类型 | 方法和说明 |
---|---|
void |
clear() |
void |
clear(short siteId) |
CmsCategoryType |
getCategoryType(short siteId,
java.lang.String typeId) |
java.util.List<CmsCategoryType> |
getCategoryTypeList(short siteId) |
java.util.Map<java.lang.String,CmsCategoryType> |
getCategoryTypeMap(short siteId) |
CmsModel |
getModel(SysSite site,
java.lang.String modelId) |
java.util.List<CmsModel> |
getModelList(SysSite site,
java.lang.String parentId,
boolean queryAll,
java.lang.Boolean hasChild,
java.lang.Boolean onlyUrl,
java.lang.Boolean hasImages,
java.lang.Boolean hasFiles) |
java.util.Map<java.lang.String,CmsModel> |
getModelMap(SysSite site) |
private short |
getSiteId(SysSite site) |
void |
initCache(CacheEntityFactory cacheEntityFactory) |
boolean |
saveCategoryType(short siteId,
java.util.Map<java.lang.String,CmsCategoryType> typeMap)
保存模型
|
boolean |
saveModel(short siteId,
java.util.Map<java.lang.String,CmsModel> modelMap)
保存模型
|
protected final org.apache.commons.logging.Log log
private CacheEntity<java.lang.Short,java.util.Map<java.lang.String,CmsModel>> modelCache
private CacheEntity<java.lang.Short,java.util.Map<java.lang.String,CmsCategoryType>> typeCache
public static final java.lang.String MODEL_LINK
private SiteComponent siteComponent
public java.util.List<CmsModel> getModelList(SysSite site, java.lang.String parentId, boolean queryAll, java.lang.Boolean hasChild, java.lang.Boolean onlyUrl, java.lang.Boolean hasImages, java.lang.Boolean hasFiles)
site
- parentId
- queryAll
- hasChild
- onlyUrl
- hasImages
- hasFiles
- public java.util.List<CmsCategoryType> getCategoryTypeList(short siteId)
siteId
- public CmsModel getModel(SysSite site, java.lang.String modelId)
site
- modelId
- public java.util.Map<java.lang.String,CmsModel> getModelMap(SysSite site)
site
- public CmsCategoryType getCategoryType(short siteId, java.lang.String typeId)
siteId
- typeId
- public java.util.Map<java.lang.String,CmsCategoryType> getCategoryTypeMap(short siteId)
siteId
- public boolean saveModel(short siteId, java.util.Map<java.lang.String,CmsModel> modelMap)
siteId
- modelMap
- public boolean saveCategoryType(short siteId, java.util.Map<java.lang.String,CmsCategoryType> typeMap)
siteId
- typeMap
- private short getSiteId(SysSite site)
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