public interface Folder extends Node, SecuredResource
PATH_SEPARATOR, PATH_SEPARATOR_CHAR
Modifier and Type | Method and Description |
---|---|
NodeSet |
getAll()
getAll
|
String |
getDefaultDecorator(String fragmentType)
Returns the name of the default decorator that applies to page
fragments in this folder or subfolders.
|
String |
getDefaultPage()
getDefaultPage
|
List<String> |
getDocumentOrder()
getDocumentOrder
|
DynamicPage |
getDynamicPage(String name)
getDynamicPage
|
NodeSet |
getDynamicPages()
getDynamicPages
|
String |
getEffectiveDefaultDecorator(String fragmentType)
Returns the name of the default decorator as set here or
in parent folders that applies to page fragments
in this folder or subfolders.
|
Folder |
getFolder(String name)
getFolder
|
NodeSet |
getFolders()
getFolders
|
FragmentDefinition |
getFragmentDefinition(String name)
getFragmentDefinition
|
NodeSet |
getFragmentDefinitions()
getFragmentDefinitions
|
Link |
getLink(String name)
getLink
|
NodeSet |
getLinks()
getLinks
|
List<MenuDefinition> |
getMenuDefinitions()
getMenuDefinitions - get list of menu definitions
|
Page |
getPage(String name)
getPage
|
NodeSet |
getPages()
getPages
|
PageSecurity |
getPageSecurity()
getPageSecurity
|
PageTemplate |
getPageTemplate(String name)
getPageTemplate
|
NodeSet |
getPageTemplates()
getPageTemplates
|
int |
getReservedType()
Returns a valid reserved folder type:
RESERVED_FOLDER_SUBSITES
RESERVED_FOLDER_USERS
RESERVED_FOLDER_ROLES
RESERVED_FOLDER_GROUPS
RESERVED_FOLDER_MEDIATYPE
RESERVED_FOLDER_LANGUAGE
RESERVED_FOLDER_COUNTRY
|
String |
getSkin()
Returns the name of the skin that applies to this
folder.
|
boolean |
isReserved()
Determines if a folder is a reserved folder.
|
MenuDefinition |
newMenuDefinition()
newMenuDefinition - creates a new empty menu definition
|
MenuExcludeDefinition |
newMenuExcludeDefinition()
newMenuExcludeDefinition - creates a new empty menu exclude definition
|
MenuIncludeDefinition |
newMenuIncludeDefinition()
newMenuIncludeDefinition - creates a new empty menu include definition
|
MenuOptionsDefinition |
newMenuOptionsDefinition()
newMenuOptionsDefinition - creates a new empty menu options definition
|
MenuSeparatorDefinition |
newMenuSeparatorDefinition()
newMenuSeparatorDefinition - creates a new empty menu separator definition
|
void |
setDefaultDecorator(String decoratorName,
String fragmentType)
Modifies the default decorator for the specified fragment type.
|
void |
setDefaultPage(String defaultPage)
setDefaultPage
|
void |
setDocumentOrder(List<String> docIndexes)
setDocumentOrder
|
void |
setMenuDefinitions(List<MenuDefinition> definitions)
setMenuDefinitions - set list of menu definitions
|
void |
setSkin(String skinName)
Modifies the skin for this folder.
|
getMetadata, getName, getParent, getPath, getShortTitle, getTitle, getType, getUrl, isHidden, setHidden, setParent, setPath
getId, getShortTitle, getTitle, isStale, setShortTitle, setTitle
checkAccess, checkConstraints, checkPermissions, getConstraintsEnabled, getPermissionsEnabled, getSecurityConstraints, newSecurityConstraint, newSecurityConstraints, setSecurityConstraints
static final String FOLDER_TYPE
static final String FALLBACK_DEFAULT_PAGE
static final String PAGE_NOT_FOUND_PAGE
static final String RESERVED_SUBSITE_FOLDER_PREFIX
static final String RESERVED_FOLDER_PREFIX
static final String RESERVED_USER_FOLDER_NAME
static final String RESERVED_ROLE_FOLDER_NAME
static final String RESERVED_GROUP_FOLDER_NAME
static final String RESERVED_MEDIATYPE_FOLDER_NAME
static final String RESERVED_LANGUAGE_FOLDER_NAME
static final String RESERVED_COUNTRY_FOLDER_NAME
static final String RESERVED_USER_TEMPLATE_FOLDER_NAME
static final String USER_FOLDER
static final String ROLE_FOLDER
static final String GROUP_FOLDER
static final String MEDIATYPE_FOLDER
static final String LANGUAGE_FOLDER
static final String COUNTRY_FOLDER
static final String SUBSITE_ROOT_FOLDER
static final String USER_TEMPLATE_FOLDER
static final int RESERVED_FOLDER_NONE
static final int RESERVED_FOLDER_SUBSITES
static final int RESERVED_FOLDER_USERS
static final int RESERVED_FOLDER_ROLES
static final int RESERVED_FOLDER_GROUPS
static final int RESERVED_FOLDER_MEDIATYPE
static final int RESERVED_FOLDER_LANGUAGE
static final int RESERVED_FOLDER_COUNTRY
static final int RESERVED_FOLDER_OTHER
String getSkin()
void setSkin(String skinName)
skinName
- the name of the new skin for the folderString getEffectiveDefaultDecorator(String fragmentType)
fragmentType
- the type of fragment consideredString getDefaultDecorator(String fragmentType)
fragmentType
- the type of fragment consideredvoid setDefaultDecorator(String decoratorName, String fragmentType)
decoratorName
- the name of the new decorator for the typefragmentType
- the type of fragment consideredList<String> getDocumentOrder()
void setDocumentOrder(List<String> docIndexes)
docIndexes
- list of ordered document names in folderString getDefaultPage()
getDefaultPage
void setDefaultPage(String defaultPage)
setDefaultPage
defaultPage
- NodeSet getFolders() throws DocumentException
getFolders
NodeSet
containing all sub-folders directly under
this folder.DocumentException
Folder getFolder(String name) throws FolderNotFoundException, DocumentException
getFolder
name
- FolderNotFoundException
DocumentException
NodeSet getPages() throws NodeException
getPages
NodeException
PageNotFoundException
- if any of the Pages referenced by this Folder
could not be found.NodeSet getPageTemplates() throws NodeException
getPageTemplates
NodeException
PageNotFoundException
- if any of the PageTemplates referenced by this Folder
could not be found.NodeSet getDynamicPages() throws NodeException
getDynamicPages
NodeException
PageNotFoundException
- if any of the DynamicPages referenced by this Folder
could not be found.NodeSet getFragmentDefinitions() throws NodeException
getFragmentDefinitions
NodeException
PageNotFoundException
- if any of the FragmentDefinitions referenced by this Folder
could not be found.Page getPage(String name) throws PageNotFoundException, NodeException
getPage
name
- PageNotFoundException
- if the Page requested could not be found.DocumentException
NodeException
PageTemplate getPageTemplate(String name) throws PageNotFoundException, NodeException
getPageTemplate
name
- PageNotFoundException
- if the PageTemplate requested could not be found.DocumentException
NodeException
DynamicPage getDynamicPage(String name) throws PageNotFoundException, NodeException
getDynamicPage
name
- PageNotFoundException
- if the DynamicPage requested could not be found.DocumentException
NodeException
FragmentDefinition getFragmentDefinition(String name) throws PageNotFoundException, NodeException
getFragmentDefinition
name
- PageNotFoundException
- if the FragmentDefinition requested could not be found.DocumentException
NodeException
NodeSet getLinks() throws NodeException
getLinks
DocumentException
NodeException
Link getLink(String name) throws DocumentNotFoundException, NodeException
getLink
name
- DocumentNotFoundException
- if the document requested could not be found.NodeException
PageSecurity getPageSecurity() throws DocumentNotFoundException, NodeException
getPageSecurity
DocumentNotFoundException
- if the document requested could not be found.NodeException
NodeSet getAll() throws DocumentException
getAll
NodeSet
containing all sub-folders and documents directly under
this folder.DocumentException
List<MenuDefinition> getMenuDefinitions()
MenuDefinition newMenuDefinition()
MenuExcludeDefinition newMenuExcludeDefinition()
MenuIncludeDefinition newMenuIncludeDefinition()
MenuOptionsDefinition newMenuOptionsDefinition()
MenuSeparatorDefinition newMenuSeparatorDefinition()
void setMenuDefinitions(List<MenuDefinition> definitions)
definitions
- definition listboolean isReserved()
int getReservedType()
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.