public class CmsJspContentAttachmentsBean extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected CmsContainerPageBean |
m_page
The container page bean.
|
| Constructor and Description |
|---|
CmsJspContentAttachmentsBean()
Creates an 'undefined' attachments bean.
|
CmsJspContentAttachmentsBean(CmsObject cms,
CmsResource pageResource)
Initializes this bean with the contents of a detail-only page.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
getAttachmentLocales(CmsObject cms,
CmsResource content)
Gets the list of locales for which attachments / detail-only containers are available.
|
static CmsJspContentAttachmentsBean |
getAttachmentsForCurrentPage(CmsObject cms,
CmsResource content)
Gets the attachments / detail-only contents for the current page (i.e. cms.getRequestContext().getUri()).
|
static CmsJspContentAttachmentsBean |
getAttachmentsForLocale(CmsObject cms,
CmsResource content,
java.lang.String locale)
Loads the attachments for a given content.
|
java.util.Map<?,?> |
getByContainer()
Gets lazy map that returns lists of element beans for the container whose name is given as a key.
|
java.util.Map<?,?> |
getByType()
Gets lazy map that maps type names to lists of container elements of that type.
|
java.util.Set<java.lang.String> |
getContainers()
Gets the set of container names.
|
protected CmsContainerPageBean |
getPage()
Gets the container page bean for the detail-only page.
|
boolean |
isUndefined()
Returns true if the attachments are undefined.
|
protected CmsContainerPageBean m_page
public CmsJspContentAttachmentsBean()
public CmsJspContentAttachmentsBean(CmsObject cms, CmsResource pageResource) throws CmsException
cms - the CMS contextpageResource - the detail-only container pageCmsException - if something goes wrongpublic static java.util.List<java.lang.String> getAttachmentLocales(CmsObject cms, CmsResource content)
cms - the current CMS contextcontent - the content resourcepublic static CmsJspContentAttachmentsBean getAttachmentsForCurrentPage(CmsObject cms, CmsResource content) throws CmsException
cms - the CMS contextcontent - the content for which to get the attachmentsCmsException - if something goes wrongpublic static CmsJspContentAttachmentsBean getAttachmentsForLocale(CmsObject cms, CmsResource content, java.lang.String locale)
cms - the CMS contextcontent - the contentlocale - the localepublic java.util.Map<?,?> getByContainer()
public java.util.Map<?,?> getByType()
public java.util.Set<java.lang.String> getContainers()
public boolean isUndefined()
protected CmsContainerPageBean getPage()