限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
DATA_FILE |
static java.lang.String |
METADATA_FILE |
private CacheEntity<java.lang.String,java.util.Map<java.lang.String,CmsPageMetadata>> |
pageCache |
private CacheEntity<java.lang.String,java.util.Map<java.lang.String,CmsPageData>> |
pageDataCache |
private CacheEntity<java.lang.String,java.util.Map<java.lang.String,CmsPlaceMetadata>> |
placeCache |
构造器和说明 |
---|
MetadataComponent() |
限定符和类型 | 方法和说明 |
---|---|
void |
clear() |
boolean |
deletePlaceMetadata(java.lang.String filepath)
删除推荐位元数据
|
boolean |
deleteTemplateData(java.lang.String filepath)
删除模板数据
|
boolean |
deleteTemplateMetadata(java.lang.String filepath)
删除模板元数据
|
CmsPlaceMetadata |
getPlaceMetadata(java.lang.String filepath)
获取推荐位元数据
|
private java.util.Map<java.lang.String,CmsPlaceMetadata> |
getPlaceMetadataMap(java.lang.String dirPath)
获取页面片段目录元数据
|
CmsPageData |
getTemplateData(java.lang.String filepath)
获取模板元数据
|
private java.util.Map<java.lang.String,CmsPageData> |
getTemplateDataMap(java.lang.String dirPath)
获取目录数据
|
CmsPageMetadata |
getTemplateMetadata(java.lang.String filepath)
获取模板元数据
|
private java.util.Map<java.lang.String,CmsPageMetadata> |
getTemplateMetadataMap(java.lang.String dirPath)
获取目录元数据
|
void |
initCache(CacheEntityFactory cacheEntityFactory) |
private void |
savePlaceMetadata(java.lang.String dirPath,
java.util.Map<java.lang.String,CmsPlaceMetadata> metadataMap)
保存推荐位元数据
|
private void |
saveTemplateData(java.lang.String dirPath,
java.util.Map<java.lang.String,CmsPageData> dataMap)
保存模板数据
|
private void |
saveTemplateMetadata(java.lang.String dirPath,
java.util.Map<java.lang.String,CmsPageMetadata> metadataMap)
保存模板元数据
|
boolean |
updatePlaceMetadata(java.lang.String filepath,
CmsPlaceMetadata metadata)
更新推荐位元数据
|
boolean |
updateTemplateData(java.lang.String filepath,
CmsPageData data)
更新模板元数据
|
boolean |
updateTemplateMetadata(java.lang.String filepath,
CmsPageMetadata metadata)
更新模板元数据
|
public static final java.lang.String METADATA_FILE
public static final java.lang.String DATA_FILE
private CacheEntity<java.lang.String,java.util.Map<java.lang.String,CmsPageMetadata>> pageCache
private CacheEntity<java.lang.String,java.util.Map<java.lang.String,CmsPageData>> pageDataCache
private CacheEntity<java.lang.String,java.util.Map<java.lang.String,CmsPlaceMetadata>> placeCache
public CmsPlaceMetadata getPlaceMetadata(java.lang.String filepath)
filepath
- public CmsPageMetadata getTemplateMetadata(java.lang.String filepath)
filepath
- public CmsPageData getTemplateData(java.lang.String filepath)
filepath
- public boolean updateTemplateMetadata(java.lang.String filepath, CmsPageMetadata metadata)
filepath
- metadata
- public boolean updateTemplateData(java.lang.String filepath, CmsPageData data)
filepath
- data
- public boolean updatePlaceMetadata(java.lang.String filepath, CmsPlaceMetadata metadata)
filepath
- metadata
- public boolean deleteTemplateData(java.lang.String filepath)
filepath
- public boolean deleteTemplateMetadata(java.lang.String filepath)
filepath
- public boolean deletePlaceMetadata(java.lang.String filepath)
filepath
- private java.util.Map<java.lang.String,CmsPlaceMetadata> getPlaceMetadataMap(java.lang.String dirPath)
dirPath
- private java.util.Map<java.lang.String,CmsPageMetadata> getTemplateMetadataMap(java.lang.String dirPath)
dirPath
- private java.util.Map<java.lang.String,CmsPageData> getTemplateDataMap(java.lang.String dirPath)
dirPath
- private void saveTemplateData(java.lang.String dirPath, java.util.Map<java.lang.String,CmsPageData> dataMap) throws java.io.IOException
dirPath
- dataMap
- java.io.IOException
private void saveTemplateMetadata(java.lang.String dirPath, java.util.Map<java.lang.String,CmsPageMetadata> metadataMap) throws java.io.IOException
dirPath
- metadataMap
- java.io.IOException
private void savePlaceMetadata(java.lang.String dirPath, java.util.Map<java.lang.String,CmsPlaceMetadata> metadataMap) throws java.io.IOException
dirPath
- metadataMap
- 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