Interface IPresentationData
- All Known Implementing Classes:
PresentationData
public interface IPresentationData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Data object is acom.webmethods.portal.service.directory.IDirectoryService
.static final int
Data object is acom.webmethods.portal.service.directory.IDirectoryPrincipal
.static final int
No data object.static final int
Data object isString
dispatch handler name to which to forward.static final int
Data object is aReader
.static final int
Data object isString
URL to which to redirect.static final int
Data object is anInputStream
.static final int
Data object is a rawString
.static final int
Data object is a portalIThing
.static final int
Data object is of unrecognized type.static final int
Data object is a portalIVersion
thing.static final int
Data object is a domNode
.static final String
Presentation data object identifier; used internally. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow copy of this.Deprecated.'/ui/app/'Deprecated.'/ui/app'Portal build version string, such as '6.0.1.1.172'.Web context path plus servlet path minus trailing slash.Current JSPPageContext
.Web context path.getCss()
Deprecated.'/ui/css/'Full path plus query string of current request, such as '/meta/default/folder/0000001241?layout=properties'.The primary object representing the requested resource.int
Type of the principal object in this presentation cycle.Deprecated.Name of default top-level JSP layout file for this data object type, such as 'folder' or 'default'.Deprecated.'/ui/editor/'Name of the top-level JSP layout file used if an error occurs handling the request.Name of top-level JSP layout file used for presentation, such as 'jsp'.Web context path plus servlet path plus trailing slash.getHelp()
Base help web-path, such as '/ui/help/'.Standard-images web-path: '/ui/images/'.Deprecated.'/ui/include/'Name of top-level JSP layout file used for presentation, such as '/ui/samplejsp/datatest' or 'default'.Deprecated.useIContext
.Media type of presentation, such as 'text/html'.IObjectPool<? extends IPresentationData>
getPool()
Deprecated.Gets this object's pool.Deprecated.'/ui/portlets/wm_active_portlet'Full path plus query string of previous request in the current session, such as '/meta/default/folder/0000001241?layout=wiring'.Deprecated.'/ui/'Actual server URL specified by client request, such as 'http://portal.webmethods.com:8080'.Deprecated.Full file-path of top-level JSP layout file used for presentation, such as '/ui/samplejsp/datatest.jsp' or '/ui/app/default.jsp'.If this data object is an addressable portal object, its addressable ID as aString
; otherwise, null.If this data object is an addressable portal object, its addressable ID as a portalIURI
; otherwise, null.Deprecated.'/ui/scripts/'Configured cluster server URL, such as 'http://www.webmethods.com:8080'.Servlet path.getShell()
Deprecated.hack for test-auto current shell idgetStyle()
Deprecated.web-path to skin folder '/ui/skins/wm_skin_modern/'Portal system title, such as 'webMethods Portal'.Deprecated.'/ui/portlets/'Deprecated.'/ui/workspaces/'getXslt()
Deprecated.'/ui/xslt/'Initializes this.void
Copies all of the mappings from the specified map to this map These mappings will replace any mappings that this map had for any of the keys currently in the specified map.void
release()
Deprecated.Cleans up this object's member resources, preparing it to be added back into the pool.void
setApplication
(String applicationPath) Deprecated.'/ui/app/'void
setBaseResource
(String baseResource) Deprecated.'/ui/app'void
setContext
(Object context) Current JSPPageContext
.void
setContextPath
(String contextPath) Web context path.void
Deprecated.'/ui/css/'void
Full path plus query string of current request, such as '/meta/default/folder/0000001241?layout=properties'.void
setDataObject
(Object obj) The primary object representing the requested resource.void
setDataType
(int dataType) Type of the principal object in this presentation cycle.void
setDefaultLayout
(String defaultLayout) Deprecated.Name of default top-level JSP layout file for this data object type, such as 'folder' or 'default'.void
Deprecated.'/ui/editor/'void
setErrorLayout
(String errorLayout) Name of the top-level JSP layout file used if an error occurs handling the request.void
setExtension
(String extension) Name of top-level JSP layout file used for presentation, such as 'jsp'.void
Base help web-path, such as '/ui/help/'.void
Standard-images web-path: '/ui/images/'.void
setIncludes
(String includesPath) Deprecated.'/ui/include/'void
Name of top-level JSP layout file used for presentation, such as '/ui/samplejsp/datatest' or 'default'.void
setLoginName
(String loginName) Deprecated.useIContext
.void
setMimeType
(String mimeType) Media type of presentation, such as 'text/html'.void
setPool
(IObjectPool<? extends IPresentationData> pool) Deprecated.Sets this object's pool.void
setPortlet
(String portletPath) Deprecated.'/ui/portlets/wm_active_portlet'void
Full path plus query string of previous request in the current session, such as '/meta/default/folder/0000001241?layout=wiring'.void
setRelativeTheme
(String relativeTheme) Deprecated.'/ui/'void
setRequestedServerURL
(String serverURL) Actual server URL specified by client request, such as 'http://portal.webmethods.com:8080'.void
setResource
(String resource) Deprecated.Full file-path of top-level JSP layout file used for presentation, such as '/ui/samplejsp/datatest.jsp' or '/ui/app/default.jsp'.void
setResourceURI
(IURI resourceURI) If this data object is an addressable portal object, its addressable ID as a portalIURI
; otherwise, null.void
setScripts
(String scriptsPath) Deprecated.'/ui/scripts/'void
setServerURL
(String serverURL) SConfigured cluster server URL, such as 'http://www.webmethods.com:8080'.void
setServletPath
(String servletPath) Servlet path.void
Deprecated.web-path to skin folder '/ui/skins/wm_skin_modern/'void
setWidgets
(String widgetsPath) Deprecated.'/ui/portlets/'void
setWorkspaces
(String workSpacesPath) Deprecated.'/ui/workspaces/'void
Deprecated.'/ui/xslt/'
-
Field Details
-
ID
Presentation data object identifier; used internally.- See Also:
-
DATA_EMPTY
static final int DATA_EMPTYNo data object.- See Also:
-
DATA_UNKNOWN
static final int DATA_UNKNOWNData object is of unrecognized type.- See Also:
-
DATA_REDIRECT
static final int DATA_REDIRECTData object isString
URL to which to redirect.- See Also:
-
DATA_FORWARD
static final int DATA_FORWARDData object isString
dispatch handler name to which to forward.- See Also:
-
DATA_STREAM
static final int DATA_STREAMData object is anInputStream
.- See Also:
-
DATA_STRING
static final int DATA_STRINGData object is a rawString
.- See Also:
-
DATA_W3C_NODE
static final int DATA_W3C_NODEData object is a domNode
.- See Also:
-
DATA_THING
static final int DATA_THINGData object is a portalIThing
.- See Also:
-
DATA_DS_PRINCIPAL
static final int DATA_DS_PRINCIPALData object is acom.webmethods.portal.service.directory.IDirectoryPrincipal
.- See Also:
-
DATA_DIRECTORY
static final int DATA_DIRECTORYData object is acom.webmethods.portal.service.directory.IDirectoryService
.- See Also:
-
DATA_VERSION
static final int DATA_VERSIONData object is a portalIVersion
thing.- See Also:
-
DATA_READER
static final int DATA_READERData object is aReader
.- See Also:
-
-
Method Details
-
init
Initializes this.- Parameters:
dataObject
- Object to be presented.dataType
- Type of object to be presented.attributes
- (optional) Map of attributes associated with the presentation.
-
getDataObject
Object getDataObject()The primary object representing the requested resource. Of type specified bygetDataType()
.- Returns:
- Data object or null.
- See Also:
-
setDataObject
The primary object representing the requested resource. Of type specified bysetDataType(int)
.- Parameters:
obj
- Data object or null.- See Also:
-
getDataType
int getDataType()Type of the principal object in this presentation cycle. -
setDataType
void setDataType(int dataType) Type of the principal object in this presentation cycle.- Parameters:
dataType
- Either:- See Also:
-
clone
Object clone()Creates a shallow copy of this.- Returns:
- Shallow copy of this.
- See Also:
-
putAll
Copies all of the mappings from the specified map to this map These mappings will replace any mappings that this map had for any of the keys currently in the specified map.- Parameters:
t
- mappings to be stored in this map.- Throws:
NullPointerException
- if the specified map is null.- See Also:
-
getLayout
String getLayout()Name of top-level JSP layout file used for presentation, such as '/ui/samplejsp/datatest' or 'default'. May be null.- Returns:
- JSP layout name or null.
-
setLayout
Name of top-level JSP layout file used for presentation, such as '/ui/samplejsp/datatest' or 'default'. May be null.- Parameters:
layout
- JSP layout name or null.
-
getErrorLayout
String getErrorLayout()Name of the top-level JSP layout file used if an error occurs handling the request. May be null.- Returns:
- JSP layout name or null.
- See Also:
-
setErrorLayout
Name of the top-level JSP layout file used if an error occurs handling the request. May be null.- Parameters:
errorLayout
- JSP layout name or null.
-
getDefaultLayout
String getDefaultLayout()Deprecated.Name of default top-level JSP layout file for this data object type, such as 'folder' or 'default'. May be null.- Returns:
- JSP layout name or null.
- See Also:
-
setDefaultLayout
Deprecated.Name of default top-level JSP layout file for this data object type, such as 'folder' or 'default'. May be null.- Parameters:
defaultLayout
- JSP layout name or null.
-
getResource
String getResource()Deprecated.Full file-path of top-level JSP layout file used for presentation, such as '/ui/samplejsp/datatest.jsp' or '/ui/app/default.jsp'.- Returns:
- Full JSP layout name.
- See Also:
-
setResource
Deprecated.Full file-path of top-level JSP layout file used for presentation, such as '/ui/samplejsp/datatest.jsp' or '/ui/app/default.jsp'.- Parameters:
resource
- Full JSP layout name.
-
getExtension
String getExtension()Name of top-level JSP layout file used for presentation, such as 'jsp'. May be null.- Returns:
- File extension.
- See Also:
-
setExtension
Name of top-level JSP layout file used for presentation, such as 'jsp'. May be null.- Parameters:
extension
- File extension.
-
getBaseResource
String getBaseResource()Deprecated.'/ui/app' -
setBaseResource
Deprecated.'/ui/app' -
getHelp
String getHelp()Base help web-path, such as '/ui/help/'.- Returns:
- Base help web-path.
-
setHelp
Base help web-path, such as '/ui/help/'.- Parameters:
help
- Base help web-path.
-
getContextPath
String getContextPath()Web context path. Never null or empty. Always starts with a leading slash; never ends with a trailing slash -- unless the entire context path is simply '/'.- Returns:
- Web context path.
- See Also:
-
setContextPath
Web context path. Never null or empty. Always starts with a leading slash; never ends with a trailing slash -- unless the entire context path is simply '/'.- Parameters:
contextPath
- Web context path.- See Also:
-
getServletPath
String getServletPath()Servlet path. Never null; may be empty. Always starts with a leading slash -- unless the path is the empty string (""); never ends with a trailing slash.- Returns:
- Servlet path.
- See Also:
-
setServletPath
Servlet path. Never null; may be empty. Always starts with a leading slash -- unless the path is the empty string (""); never ends with a trailing slash.- Parameters:
servletPath
- Servlet path.- See Also:
-
getFullServletPath
String getFullServletPath()Web context path plus servlet path plus trailing slash. Never null or empty. Always starts with a leading-slash; always ends with a trailing slash.- Returns:
- Full servlet path.
-
getCanonicalServletPath
String getCanonicalServletPath()Web context path plus servlet path minus trailing slash. Never null; may be empty. Always starts with a leading slash; never ends with a trailing slash.- Returns:
- Canonical servlet path.
-
getResourceID
String getResourceID()If this data object is an addressable portal object, its addressable ID as aString
; otherwise, null.- Returns:
- Resource ID or null.
-
getResourceURI
IURI getResourceURI()If this data object is an addressable portal object, its addressable ID as a portalIURI
; otherwise, null.- Returns:
- Resource ID or null.
-
setResourceURI
If this data object is an addressable portal object, its addressable ID as a portalIURI
; otherwise, null.- Parameters:
resourceURI
- Resource ID or null.
-
getContext
Object getContext()Current JSPPageContext
.- Returns:
- JSP page context.
-
setContext
Current JSPPageContext
.- Parameters:
context
- JSP page context.
-
getRelativeTheme
String getRelativeTheme()Deprecated.'/ui/' -
setRelativeTheme
Deprecated.'/ui/' -
getApplication
String getApplication()Deprecated.'/ui/app/' -
setApplication
Deprecated.'/ui/app/' -
getScripts
String getScripts()Deprecated.'/ui/scripts/' -
setScripts
Deprecated.'/ui/scripts/' -
getCss
String getCss()Deprecated.'/ui/css/' -
setCss
Deprecated.'/ui/css/' -
getStyle
String getStyle()Deprecated.web-path to skin folder '/ui/skins/wm_skin_modern/' -
getShell
IThingID getShell()Deprecated.hack for test-auto current shell id -
setStyle
Deprecated.web-path to skin folder '/ui/skins/wm_skin_modern/' -
getXslt
String getXslt()Deprecated.'/ui/xslt/' -
setXslt
Deprecated.'/ui/xslt/' -
getImages
String getImages()Standard-images web-path: '/ui/images/'. Never null or empty. Always begins with a leading slash and ends with a trailing slash.- Returns:
- Standard images web-path.
-
setImages
Standard-images web-path: '/ui/images/'. Never null or empty. Always begins with a leading slash and ends with a trailing slash.- Parameters:
images
- Standard images web-path.
-
getEditor
String getEditor()Deprecated.'/ui/editor/' -
setEditor
Deprecated.'/ui/editor/' -
getWidgets
String getWidgets()Deprecated.'/ui/portlets/' -
setWidgets
Deprecated.'/ui/portlets/' -
getPortlet
String getPortlet()Deprecated.'/ui/portlets/wm_active_portlet' -
setPortlet
Deprecated.'/ui/portlets/wm_active_portlet' -
getWorkspaces
String getWorkspaces()Deprecated.'/ui/workspaces/' -
setWorkspaces
Deprecated.'/ui/workspaces/' -
getIncludes
String getIncludes()Deprecated.'/ui/include/' -
setIncludes
Deprecated.'/ui/include/' -
getLoginName
String getLoginName()Deprecated.useIContext
. -
setLoginName
Deprecated.useIContext
. -
getMimeType
String getMimeType()Media type of presentation, such as 'text/html'.- Returns:
- Media type.
-
setMimeType
Media type of presentation, such as 'text/html'.- Parameters:
mimeType
- Media type.
-
getServerURL
String getServerURL()Configured cluster server URL, such as 'http://www.webmethods.com:8080'. Never empty or null. Never ends with trailing slash.- Returns:
- Configured cluster server URL.
-
setServerURL
SConfigured cluster server URL, such as 'http://www.webmethods.com:8080'. Never empty or null. Never ends with trailing slash.- Parameters:
serverURL
- Configured cluster server URL.
-
getRequestedServerURL
String getRequestedServerURL()Actual server URL specified by client request, such as 'http://portal.webmethods.com:8080'. Never empty or null. Never ends with trailing slash.- Returns:
- Actual server URL.
-
setRequestedServerURL
Actual server URL specified by client request, such as 'http://portal.webmethods.com:8080'. Never empty or null. Never ends with trailing slash.- Parameters:
serverURL
- Actual server URL.
-
getCurrentRequestURL
String getCurrentRequestURL()Full path plus query string of current request, such as '/meta/default/folder/0000001241?layout=properties'. Never null, may be empty. If not empty, always begins with a leading slash.- Returns:
- Full path plus query string of current request.
-
setCurrentRequestURL
Full path plus query string of current request, such as '/meta/default/folder/0000001241?layout=properties'. Never null, may be empty. If not empty, always begins with a leading slash.- Parameters:
url
- Full path plus query string of current request.
-
getPreviousRequestURL
String getPreviousRequestURL()Full path plus query string of previous request in the current session, such as '/meta/default/folder/0000001241?layout=wiring'. Null if this is the first request in the current session; may be empty. If not empty, always begins with a leading slash.- Returns:
- Full path plus query string of previous request in the current session.
-
setPreviousRequestURL
Full path plus query string of previous request in the current session, such as '/meta/default/folder/0000001241?layout=wiring'. Null if this is the first request in the current session; may be empty. If not empty, always begins with a leading slash.- Parameters:
url
- Full path plus query string of previous request in the current session.
-
getBuildVersion
String getBuildVersion()Portal build version string, such as '6.0.1.1.172'.- Returns:
- Portal build version string.
-
getSystemTitle
Portal system title, such as 'webMethods Portal'. This property can be configured the portal resource whose alias is 'system.title'- Returns:
- Portal system title.
- Throws:
PortalException
-
release
void release()Deprecated.Cleans up this object's member resources, preparing it to be added back into the pool. This method should be called prior to checking this object back into the pool.- See Also:
-
getPool
IObjectPool<? extends IPresentationData> getPool()Deprecated.Gets this object's pool. May return null.- See Also:
-
setPool
Deprecated.Sets this object's pool. Implementing classes may choose not to allow this object's pool to be set. In that case,setPool(com.webmethods.portal.system.pool.IObjectPool<? extends com.webmethods.portal.framework.presentation.IPresentationData>)
does nothing.
-