public abstract class BasePagePropertyBean extends PropertyBean
PropertyBean.SimpleValueHolder<T>
Constructor and Description |
---|
BasePagePropertyBean() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInputFileName()
Get the input file name for use in the MDS path of Page View and Page Definition files.
|
java.io.Reader |
getPageDefinitionContent()
Get a Reader for the contents of the Page Definition associated with this page.
|
ValueHolder<java.io.Reader> |
getPageDefinitionContentValueHolder()
Get the contents of the Page Definition associated with this page as as a ValueHolder.
|
java.lang.String |
getPageDefinitionPath()
Get Page Definition file path in MDS.
|
java.lang.String |
getPagePath()
Get JSPx file path in MDS.
|
PageViewType |
getPageViewType()
Gets the page view type.
|
java.lang.String |
getSourcePageDefinitionPath()
Deprecated.
|
java.lang.String |
getSourcePath()
Deprecated.
|
java.io.Reader |
getViewDefinitionContent()
Get a Reader for the contents of the View Definition associated with this page.
|
ValueHolder<java.io.Reader> |
getViewDefinitionContentValueHolder()
Get the contents of the View Definition associated with this page as as a ValueHolder.
|
abstract java.lang.String |
linkPath()
Set the link prefix for the underlying class to generate correct REST Links.
|
void |
populateLinks(oracle.webcenter.jaxrs.framework.uri.UriService service)
Used By REST API to pass in UriService to create auxiliary links
|
void |
setInputFileName(java.lang.String inputFileName)
Set the input file name for use in the MDS path of Page View and Page Definition files.
|
void |
setPageDefinitionContent(java.io.Reader input)
Set the contents of the Page Definition associated with this page, as a Reader.
|
void |
setPageDefinitionContentFromString(java.lang.String input)
Set the contents of the Page Definition associated with this page, as a String.
|
void |
setPageDefinitionContentValueHolder(ValueHolder<java.io.Reader> input)
Set the contents of the Page Definition associated with this page, as a ValueHolder.
|
void |
setPageDefinitionPath(java.lang.String pageDefinitionPath)
Set Page Definition file path in MDS.
|
void |
setPagePath(java.lang.String pagePath)
Set JSPx file path in MDS.
|
void |
setPageViewType(PageViewType pageViewType)
Sets the page view type.
|
void |
setSourcePageDefinitionPath(java.lang.String sourcePageDefinitionPath)
Deprecated.
|
void |
setSourcePath(java.lang.String sourcePath)
Deprecated.
|
void |
setViewDefinitionContent(java.io.Reader input)
Set the contents of the View Definition associated with this page, as a Reader.
|
void |
setViewDefinitionContentFromString(java.lang.String input)
Set the contents of the View Definition associated with this page, as a String.
|
void |
setViewDefinitionContentValueHolder(ValueHolder<java.io.Reader> input)
Set the contents of the View Definition associated with this page, as a ValueHolder.
|
getCreated, getCreator, getCreatorGuid, getCurrentVersionId, getDescription, getDocumentRef, getId, getLocale, getModified, getModifier, getModifierGuid, getName, getNamespace, getNewVersionId, getPortalShortId, getReference, getSecurityId, getShortId, populateSubLinks, resourceType, setCreated, setCreator, setCurrentVersionId, setDescription, setDocumentRef, setId, setLocale, setModified, setModifier, setName, setNamespace, setNewVersionId, setPortalShortId, setReference, setSecurityId, setShortId
public void populateLinks(oracle.webcenter.jaxrs.framework.uri.UriService service)
populateLinks
in class PropertyBean
service
- UriServicepublic abstract java.lang.String linkPath()
public void setViewDefinitionContentValueHolder(ValueHolder<java.io.Reader> input)
input
- A Value Holder holding a Reader for the view definitionpublic ValueHolder<java.io.Reader> getViewDefinitionContentValueHolder()
The view definition document will not be fetched from backend storage until getValue() is called on the ValueHolder.
public void setViewDefinitionContent(java.io.Reader input)
input
- A Reader for the view definition contents.public void setViewDefinitionContentFromString(java.lang.String input)
input
- A String containing the view definition contents.public java.io.Reader getViewDefinitionContent()
public void setPageDefinitionContentValueHolder(ValueHolder<java.io.Reader> input)
input
- A Value Holder holding a Reader for the page definitionpublic ValueHolder<java.io.Reader> getPageDefinitionContentValueHolder()
The page definition document will not be fetched from backend storage until getValue() is called on the ValueHolder.
public void setPageDefinitionContent(java.io.Reader input)
input
- A Reader for the page definition contents.public void setPageDefinitionContentFromString(java.lang.String input)
input
- A String containing the page definition contents.public java.io.Reader getPageDefinitionContent()
public java.lang.String getInputFileName()
By default, the file name in the MDS path is an internal name. If an input file name is provided, then it is used to override the internal name.
public void setInputFileName(java.lang.String inputFileName)
By default, the file name in the MDS path is an internal name. If an input file name is provided, then it is used to override the internal name.
@Deprecated public java.lang.String getSourcePath()
@Deprecated public void setSourcePath(java.lang.String sourcePath)
setSourcePath is used for create only. When a page is created, the JSPx and Page Definition will be copied from the source path location to the target location in MDS. Each type has a pre-defined target location.
Both the JSPx file and Page Definition file are expected to at the same location. E.g. 1. /oracle/webcenter/page/templates/PortalsTemplate.jspx 2. /oracle/webcenter/page/templates/PortalsTemplatePageDef.xml The source path specifies the value of 1.
public java.lang.String getPagePath()
public void setPagePath(java.lang.String pagePath)
setPagePath is used for update only. If the JSPx and PageDefinition have moved to a new location in MDS, use setPagePath to specify the new MDS location. No new MDS document is created by update of this object.
Both the JSPx file and Page Definition file are expected to at the same location. E.g. 1. /oracle/webcenter/page/templates/PortalsTemplate.jspx 2. /oracle/webcenter/page/templates/PortalsTemplatePageDef.xml The page path specifies the value of 1.
public java.lang.String getPageDefinitionPath()
public void setPageDefinitionPath(java.lang.String pageDefinitionPath)
This property is read only; setting this value has no effect. Use setPagePath instead of this method to set the new location in MDS.
@Deprecated public java.lang.String getSourcePageDefinitionPath()
@Deprecated public void setSourcePageDefinitionPath(java.lang.String sourcePageDefinitionPath)
@SetOnce public PageViewType getPageViewType()
public void setPageViewType(PageViewType pageViewType)
Note that the page view type is normally derived from the suffix of the path of the page view in MDS. However, when setting the page content for the first time you can set the page view type at the same time and that will be used to deterimne the suffix of the path used to store the document in MDS.
pageViewType
- the page view typegetPagePath()