public interface PageLayoutComponent
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_FRAGMENT_ID_SEPARATOR |
static String |
GLOBAL_PROPERTY_SCOPE
global standard property scope
|
static boolean |
GROUP_AND_ROLE_PROPERTY_SCOPES_ENABLED
group and role standard property scopes enabled flag
|
static String |
GROUP_PROPERTY_SCOPE
group standard property scope
|
static String |
ROLE_PROPERTY_SCOPE
role standard property scope
|
static String |
USER_PROPERTY_SCOPE
user standard property scope
|
| Modifier and Type | Method and Description |
|---|---|
ContentFragment |
addFragmentAtRowColumn(ContentPage contentPage,
ContentFragment contentFragment,
int row,
int column)
Add fragment to page at specified row column layout position
returning associated content fragment.
|
ContentFragment |
addFragmentReference(ContentFragment contentFragment,
String id)
Add fragment reference to fragment returning associated
content fragment.
|
ContentFragment |
addFragmentReference(ContentFragment contentFragment,
String id,
int row,
int column)
Add fragment reference to fragment with specified row and
column returning associated content fragment.
|
ContentFragment |
addFragmentReference(ContentPage contentPage,
String id)
Add fragment reference to page returning associated content
fragment.
|
ContentFragment |
addPortlet(ContentFragment contentFragment,
String type,
String name)
Add portlet to fragment returning associated content fragment.
|
ContentFragment |
addPortlet(ContentFragment contentFragment,
String type,
String name,
int row,
int column)
Add portlet to fragment with specified row and column returning
associated content fragment.
|
ContentFragment |
addPortlet(ContentPage contentPage,
String type,
String name)
Add portlet to page returning associated content fragment.
|
void |
decrementFolderInDocumentOrder(ContentPage contentPage)
Decrement position of folder in parent folder document order.
|
void |
decrementInDocumentOrder(ContentPage contentPage)
Decrement position of page in folder document order.
|
void |
incrementFolderInDocumentOrder(ContentPage contentPage)
Increment position of folder in parent folder document order.
|
void |
incrementInDocumentOrder(ContentPage contentPage)
Increment position of page in folder document order.
|
void |
moveFragment(ContentPage contentPage,
String fragmentId,
String toFragmentId)
Move fragment in page to another layout fragment in the same page.
|
void |
moveFragment(ContentPage contentPage,
String fragmentId,
String fromFragmentId,
String toFragmentId)
Move fragment from current parent layout fragment to another
layout fragment in the same page.
|
ContentPage |
newContentPage(BaseFragmentsElement pageOrTemplate,
PageTemplate pageTemplate,
Map<String,FragmentDefinition> fragmentDefinitions)
Construct a new content page hierarchy from PSML page or template,
page templates, and fragment definitions.
|
void |
newSiblingDynamicPage(ContentPage contentPage,
String pageName,
String contentType,
String layoutName,
String pageTitle,
String pageShortTitle)
Create new sibling dynamic page with specified configuration.
|
void |
newSiblingFolder(ContentPage contentPage,
String folderName,
String folderTitle,
String folderShortTitle,
String defaultPageLayoutName)
Create a new sibling folder with specified configuration and
new default page.
|
void |
newSiblingFragmentDefinition(ContentPage contentPage,
String definitionName,
String defId,
String portletName,
String definitionTitle,
String definitionShortTitle)
Create new sibling fragment definition with specified
configuration.
|
void |
newSiblingPage(ContentPage contentPage,
String pageName,
String layoutName,
String pageTitle,
String pageShortTitle)
Create new sibling page with specified configuration and add
new page at end of folder document order list.
|
void |
newSiblingPageTemplate(ContentPage contentPage,
String templateName,
String layoutName,
String templateTitle,
String templateShortTitle)
Create new sibling page template with specified configuration.
|
void |
remove(ContentPage contentPage)
Remove page and remove from folder document order list.
|
void |
removeFolder(ContentPage contentPage)
Remove folder and remove from parent folder document order list.
|
void |
removeFragment(ContentPage contentPage,
String fragmentId)
Remove fragment from page by id.
|
void |
reorderColumns(ContentFragment targetFragment,
int maxColumns)
Reorder portlet columns locations over maxColumns
|
void |
updateContent(ContentPage contentPage,
String contentType,
Boolean inheritable)
Update dynamic page content type and inheritable flag.
|
void |
updateDecorator(ContentFragment contentFragment,
String decoratorName)
Update global fragment portlet decorator.
|
void |
updateDecorator(ContentFragment contentFragment,
String decoratorName,
String scope,
String scopeValue)
Update fragment portlet decorator.
|
void |
updateDefaultDecorator(ContentPage contentPage,
String decoratorName,
String fragmentType)
Update page default decorator.
|
void |
updateFolderTitles(ContentPage contentPage,
String title,
String shortTitle)
Update folder titles.
|
void |
updateName(ContentFragment contentFragment,
String name)
Update fragment name.
|
void |
updatePosition(ContentFragment contentFragment,
float x,
float y,
float z,
float width,
float height)
Update global fragment layout position.
|
void |
updatePosition(ContentFragment contentFragment,
float x,
float y,
float z,
float width,
float height,
String scope,
String scopeValue)
Update fragment layout position.
|
void |
updatePreferences(ContentFragment contentFragment,
Map<String,?> preferences)
Update preferences with new preferences set, accepting
Map of strings, string arrays, FragmentPreference or
PortletPreference.
|
void |
updateProperty(ContentFragment contentFragment,
String propName,
String propValue)
Update global fragment property.
|
void |
updateProperty(ContentFragment contentFragment,
String propName,
String propValue,
String scope,
String scopeValue)
Update fragment property.
|
void |
updateRefId(ContentFragment contentFragment,
String refId)
Update fragment reference reference id.
|
void |
updateRowColumn(ContentFragment contentFragment,
int row,
int column)
Update global fragment row and column layout position.
|
void |
updateRowColumn(ContentFragment contentFragment,
int row,
int column,
String scope,
String scopeValue)
Update fragment row and column layout position.
|
void |
updateSecurityConstraints(ContentFragment contentFragment,
SecurityConstraints constraints)
Update fragment security constraints.
|
void |
updateStateMode(ContentFragment contentFragment,
String portletState,
String portletMode)
Update global fragment portlet state and/or mode.
|
void |
updateStateMode(ContentFragment contentFragment,
String portletState,
String portletMode,
String scope,
String scopeValue)
Update fragment portlet state and/or mode.
|
void |
updateTitles(ContentPage contentPage,
String title,
String shortTitle)
Update page titles.
|
static final String CONTENT_FRAGMENT_ID_SEPARATOR
static final String USER_PROPERTY_SCOPE
static final String GROUP_PROPERTY_SCOPE
static final String ROLE_PROPERTY_SCOPE
static final String GLOBAL_PROPERTY_SCOPE
static final boolean GROUP_AND_ROLE_PROPERTY_SCOPES_ENABLED
ContentFragment addFragmentAtRowColumn(ContentPage contentPage, ContentFragment contentFragment, int row, int column)
contentPage - content page contextcontentFragment - externally constructed fragment to addrow - fragment row positioncolumn - fragment column positionContentFragment addFragmentReference(ContentFragment contentFragment, String id, int row, int column)
contentFragment - content fragment contextid - fragment definition idrow - fragment row positioncolumn - fragment column positionContentFragment addFragmentReference(ContentFragment contentFragment, String id)
contentFragment - content fragment contextid - fragment definition idContentFragment addFragmentReference(ContentPage contentPage, String id)
contentPage - content page contextid - fragment definition idContentFragment addPortlet(ContentFragment contentFragment, String type, String name, int row, int column)
contentFragment - content fragment contexttype - portlet typename - portlet namerow - fragment row positioncolumn - fragment column positionContentFragment addPortlet(ContentFragment contentFragment, String type, String name)
contentFragment - content fragment contexttype - portlet typename - portlet nameContentFragment addPortlet(ContentPage contentPage, String type, String name)
contentPage - content page contexttype - portlet typename - portlet namevoid decrementFolderInDocumentOrder(ContentPage contentPage)
contentPage - content page contextvoid decrementInDocumentOrder(ContentPage contentPage)
contentPage - content page contextvoid incrementFolderInDocumentOrder(ContentPage contentPage)
contentPage - content page contextvoid incrementInDocumentOrder(ContentPage contentPage)
contentPage - content page contextvoid moveFragment(ContentPage contentPage, String fragmentId, String toFragmentId)
contentPage - content page contextfragmentId - fragment id of fragment to movetoFragmentId - fragment id of new parent layout fragmentvoid moveFragment(ContentPage contentPage, String fragmentId, String fromFragmentId, String toFragmentId)
contentPage - content page contextfragmentId - fragment id of fragment to movefromFragmentId - fragment id of current parent layout fragment or
or null if fragment to be found anywhere in pagetoFragmentId - fragment id of new parent layout fragmentContentPage newContentPage(BaseFragmentsElement pageOrTemplate, PageTemplate pageTemplate, Map<String,FragmentDefinition> fragmentDefinitions)
pageOrTemplate - PSML page or template to construct content page frompageTemplate - PSML page template to merge into content pagefragmentDefinitions - PSML fragment definitions referenced
by page and/or page templatevoid newSiblingFolder(ContentPage contentPage, String folderName, String folderTitle, String folderShortTitle, String defaultPageLayoutName)
contentPage - content page contextfolderName - unique new folder name, (also used as
default page title)folderTitle - new folder title or nullfolderShortTitle - new folder short title or nulldefaultPageLayoutName - root level layout fragment name
for default pagevoid newSiblingPage(ContentPage contentPage, String pageName, String layoutName, String pageTitle, String pageShortTitle)
contentPage - content page contextpageName - unique new page namelayoutName - root level layout fragment name or nullpageTitle - new page title or nullpageShortTitle - new page short title or nullvoid newSiblingDynamicPage(ContentPage contentPage, String pageName, String contentType, String layoutName, String pageTitle, String pageShortTitle)
contentPage - content page contextpageName - unique new dynamic page namecontentType - dynamic page content typelayoutName - root level layout fragment name or nullpageTitle - new page title or nullpageShortTitle - new page short title or nullvoid newSiblingPageTemplate(ContentPage contentPage, String templateName, String layoutName, String templateTitle, String templateShortTitle)
contentPage - content page contexttemplateName - unique new page template namelayoutName - root level layout fragment name or nulltemplateTitle - new page title or nulltemplateShortTitle - new page short title or nullvoid newSiblingFragmentDefinition(ContentPage contentPage, String definitionName, String defId, String portletName, String definitionTitle, String definitionShortTitle)
contentPage - content page contextdefinitionName - unique new fragment definition namedefId - unique new fragment definition id or nullportletName - root level portlet fragment name or nulldefinitionTitle - new page title or nulldefinitionShortTitle - new page short title or nullvoid removeFragment(ContentPage contentPage, String fragmentId)
contentPage - content page contextfragmentId - id of fragment to removevoid remove(ContentPage contentPage)
contentPage - content page contextvoid removeFolder(ContentPage contentPage)
contentPage - content page contextvoid updateContent(ContentPage contentPage, String contentType, Boolean inheritable)
contentPage - content page contextcontentType - dynamic page content typecontentType - dynamic page content typevoid updateDecorator(ContentFragment contentFragment, String decoratorName)
contentFragment - content fragment contextdecoratorName - portlet decorator namevoid updateDecorator(ContentFragment contentFragment, String decoratorName, String scope, String scopeValue)
contentFragment - content fragment contextdecoratorName - portlet decorator namescope - property scopescopeValue - property scope valuevoid updateDefaultDecorator(ContentPage contentPage, String decoratorName, String fragmentType)
contentPage - content page contextdecoratorName - decorator namefragmentType - decorator fragment typevoid updateFolderTitles(ContentPage contentPage, String title, String shortTitle)
contentPage - content page contexttitle - folder titleshortTitle - folder short titlevoid updateName(ContentFragment contentFragment, String name)
contentFragment - content fragment contextname - fragment namevoid updatePosition(ContentFragment contentFragment, float x, float y, float z, float width, float height)
contentFragment - content fragment contextx - fragment X coordinate or -1y - fragment Y coordinate or -1z - fragment Z level or -1width - fragment portlet width or -1height - fragment portlet height or -1void updatePosition(ContentFragment contentFragment, float x, float y, float z, float width, float height, String scope, String scopeValue)
contentFragment - content fragment contextx - fragment X coordinate or -1y - fragment Y coordinate or -1z - fragment Z level or -1width - fragment portlet width or -1height - fragment portlet height or -1scope - properties scopescopeValue - properties scope valuevoid updatePreferences(ContentFragment contentFragment, Map<String,?> preferences)
PortletPreference but can also be String, String[], or
FragmentPreferencecontentFragment - content fragment contextpreferences - map of new preferences set.void updateProperty(ContentFragment contentFragment, String propName, String propValue)
contentFragment - content fragment contextpropName - fragment property namepropValue - fragment property valuevoid updateProperty(ContentFragment contentFragment, String propName, String propValue, String scope, String scopeValue)
contentFragment - content fragment contextpropName - fragment property namepropValue - fragment property valuescope - property scopescopeValue - property scope valuevoid updateRefId(ContentFragment contentFragment, String refId)
contentFragment - content fragment contextrefId - referenced fragment definition idvoid updateRowColumn(ContentFragment contentFragment, int row, int column)
contentFragment - content fragment contextrow - fragment row positioncolumn - fragment column positionvoid updateRowColumn(ContentFragment contentFragment, int row, int column, String scope, String scopeValue)
contentFragment - content fragment contextrow - fragment row positioncolumn - fragment column positionscope - properties scopescopeValue - properties scope valuevoid updateSecurityConstraints(ContentFragment contentFragment, SecurityConstraints constraints)
contentFragment - content fragment contextconstraints - security constraintsvoid updateStateMode(ContentFragment contentFragment, String portletState, String portletMode)
contentFragment - content fragment contextportletState - fragment portlet state or nullportletMode - fragment portlet mode or nullvoid updateStateMode(ContentFragment contentFragment, String portletState, String portletMode, String scope, String scopeValue)
contentFragment - content fragment contextportletState - fragment portlet state or nullportletMode - fragment portlet mode or nullscope - properties scopescopeValue - properties scope valuevoid updateTitles(ContentPage contentPage, String title, String shortTitle)
contentPage - content page contexttitle - page titleshortTitle - page short titlevoid reorderColumns(ContentFragment targetFragment, int maxColumns)
targetFragment - maxColumns - Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.