public interface Section extends Resource
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_EXCLUDE_FROM_NAV |
static String |
PROPERTY_REDIRECT_CONFIG |
static String |
PROPERTY_SECTION_CONFIG
Section properties
|
PROPERTY_AUTHOR, PROPERTY_DESCRIPTION, PROPERTY_MODIFIED_TIME, PROPERTY_TITLE| Modifier and Type | Method and Description |
|---|---|
Query |
createQuery()
A factory method for returning an empty search query object.
|
Asset |
getAsset(String name)
Gets the asset with the given name in this section.
|
AssetCollection |
getAssetCollection(String name)
Retrieve the named asset collection from this section.
|
AssetCollection |
getAssetCollection(String name,
int resultsToSkip,
int maxResults) |
boolean |
getExcludeFromNav()
Should this section be excluded from navigation components?
|
Asset |
getIndexPage()
Gets a section's index page
|
String |
getPath()
Gets the path of the section
|
Section |
getSection(String sectionName)
Find a subsection with the specified name
|
List<Section> |
getSections()
Gets the child sections.
|
List<Tag> |
getTags()
Gets the tags used within this section (and below) order by their usage
(most popular first)
|
String |
getTemplate(String type)
Gets the template for a given type of asset for this section
|
Map<String,String> |
getTemplateMappings()
Get the template mappings for this section
|
PathResolutionDetails |
resolvePath(String path) |
SearchResults |
search(Query query)
Carry out a search for resources below this section
|
SearchResults |
search(String phrase,
int maxResults,
int resultsToSkip)
Carry out a search for resources below this section that contain all the
words in the supplied phrase
|
SearchResults |
searchByTag(String tag,
int maxResults,
int resultsToSkip)
Carry out a search for resources below this section that are tagged with
the specified tag
|
getContainingSection, getDescription, getId, getName, getProperties, getProperty, getTitle, getTypestatic final String PROPERTY_SECTION_CONFIG
static final String PROPERTY_EXCLUDE_FROM_NAV
static final String PROPERTY_REDIRECT_CONFIG
Section getSection(String sectionName)
sectionName - The name of the section that the caller is asking forMap<String,String> getTemplateMappings()
Asset getAsset(String name)
String - the name of the required asset. If null or empty then the
section's index page is returnedString getTemplate(String type)
type - typeString getPath()
Asset getIndexPage()
boolean getExcludeFromNav()
SearchResults search(Query query)
query - The query attributes to useSearchResults search(String phrase, int maxResults, int resultsToSkip)
phrase - The words to search for. This is considered to be a
space-separated set of words that must all appear in an asset
for it to match.maxResults - The maximum number of results to returnresultsToSkip - The number of results to skip over before returning. In
combination with maxResults, this is useful for pagination of
results. For example, calling this operation with maxResults
set to 10 and resultsToSkip set to 0 will return the first
"page" of 10 results. Calling it with maxResults set to 10 and
resultsToSkip set to 10 will return the second "page" of 10
results, and so on.List<Tag> getTags()
SearchResults searchByTag(String tag, int maxResults, int resultsToSkip)
phrase - The words to search for. This is considered to be a
space-separated set of words that must all appear in an asset
for it to match.maxResults - The maximum number of results to returnresultsToSkip - The number of results to skip over before returning. In
combination with maxResults, this is useful for pagination of
results. For example, calling this operation with maxResults
set to 10 and resultsToSkip set to 0 will return the first
"page" of 10 results. Calling it with maxResults set to 10 and
resultsToSkip set to 10 will return the second "page" of 10
results, and so on.Query createQuery()
AssetCollection getAssetCollection(String name)
name - AssetCollection getAssetCollection(String name, int resultsToSkip, int maxResults)
PathResolutionDetails resolvePath(String path)
Copyright © 2005–2014 Alfresco Software. All rights reserved.