public abstract class AbstractCachingSectionFactoryImpl extends Object implements SectionFactory
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractCachingSectionFactoryImpl.SectionDetails
Section with parent id.
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
PROPERTY_TAG_SUMMARY |
| Constructor and Description |
|---|
AbstractCachingSectionFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected List<Tag> |
createTags(List<String> tagSummary)
Create list of tag details from separate lists of names and counts
|
protected abstract Map<String,Section> |
findSectionWithChildren(String topSectionId)
Fetch a section and its children.
|
AssetFactory |
getAssetFactory() |
CollectionFactory |
getCollectionFactory() |
DictionaryService |
getDictionaryService() |
Section |
getSection(String id)
Get a section from its id.
|
Section |
getSectionFromPathSegments(String rootSectionId,
String[] pathSegments)
Get a section from it's path
|
void |
setAssetFactory(AssetFactory assetFactory)
Set the asset factory
|
void |
setCollectionFactory(CollectionFactory collectionFactory) |
void |
setDictionaryService(DictionaryService dictionaryService)
Set the dictionary service
|
void |
setSectionsRefreshAfter(int seconds) |
protected static final String PROPERTY_TAG_SUMMARY
public void setAssetFactory(AssetFactory assetFactory)
setAssetFactory in interface SectionFactoryassetFactory - asset factorypublic void setDictionaryService(DictionaryService dictionaryService)
dictionaryService - dictionary servicepublic void setCollectionFactory(CollectionFactory collectionFactory)
public AssetFactory getAssetFactory()
public DictionaryService getDictionaryService()
public CollectionFactory getCollectionFactory()
protected List<Tag> createTags(List<String> tagSummary)
tagNames - list of tag namestagCounts - list of tag countspublic Section getSection(String id)
SectionFactorygetSection in interface SectionFactoryid - the section idSectionFactory.getSection(String)public Section getSectionFromPathSegments(String rootSectionId, String[] pathSegments)
SectionFactorygetSectionFromPathSegments in interface SectionFactoryrootSectionId - the website idpathSegments - the path, split into segmentsSectionFactory.getSectionFromPathSegments(String,
String[])protected abstract Map<String,Section> findSectionWithChildren(String topSectionId)
topSectionId - the section id to start frompublic void setSectionsRefreshAfter(int seconds)
Copyright © 2005–2014 Alfresco Software. All rights reserved.