public interface PageDirectory
PageDirectory
interface provides methods to associate
ClipboardPage
instances with a name and to sever that
association. To maintain consistency with internal data members of
ClipboardPage
instances, page names should be modified
only via methods in the page instance.
Implemented by PRThread
and PRReqeustor
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static int |
SCOPE_NODE
constant to indicate Node-scope
|
static int |
SCOPE_REQUESTOR
constant to indicate Requestor-scope
|
static int |
SCOPE_THREAD
constant to indicate Thread-scope
|
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
findName(ClipboardPage aPage)
Returns the name of the specified page.
|
java.util.Set<java.lang.String> |
getDeclarativePageNames()
Returns all Data pages in the directory.
|
ClipboardPage |
getPage(java.lang.String aName)
Returns the page with the specified name.
|
ClipboardPage |
getPage(java.lang.String aName,
ParameterPage aParameterPage)
Returns the page with the specified name and parameters.
|
ClipboardPage |
getPage(java.lang.String aName,
ParameterPage aParameterPage,
boolean aCreateIfMissing) |
java.util.Set |
getPageNames()
Returns the set of top-level page names defined in this directory.
|
int |
getScope()
Returns the scope of the implementor of PageDirectory
|
boolean |
pageExists(java.lang.String aName)
Checks if a page with the given name exists.
|
boolean |
pageExists(java.lang.String aName,
ParameterPage aParameterPage)
Checks if a page with the given name exists.
|
boolean |
removeDeclarativePage(java.lang.String aPageToBeFlushed)
Removes the given data page instance from memory.
|
boolean |
removePage(ClipboardPage aPage)
Removes the association between the specified ClipboardPage and any name
it has been given.
|
boolean |
removePage(java.lang.String aName)
Removes the association between the specified name and the ClipboardPage.
|
boolean |
removePage(java.lang.String aName,
ParameterPage aParameterPage)
Removes the association between the specified name and the ClipboardPage.
|
boolean |
renamePage(ClipboardPage aPage,
java.lang.String aName)
Renames the page to the specified new name.
|
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
static final int SCOPE_NODE
static final int SCOPE_REQUESTOR
static final int SCOPE_THREAD
java.lang.String findName(ClipboardPage aPage)
aPage
- ClipboardPage getPage(java.lang.String aName)
aName
- String name of page, if null or blank, a new page is
always created.ClipboardPage getPage(java.lang.String aName, ParameterPage aParameterPage)
aName
- String name of page, if null or blank, a new page is
always created.aParameterPage
- parameters to be passed to page, can be nullClipboardPage getPage(java.lang.String aName, ParameterPage aParameterPage, boolean aCreateIfMissing)
int getScope()
java.util.Set getPageNames()
boolean pageExists(java.lang.String aName)
aName
- boolean pageExists(java.lang.String aName, ParameterPage aParameterPage)
aName
- aParameterPage
- boolean removePage(java.lang.String aName)
aName
- String name of page to removetrue
if successfulboolean removePage(java.lang.String aName, ParameterPage aParameterPage)
aName
- String name of page to removeaParameterPage
- Parameter when the page being removed is a data page.true
if successfulboolean removePage(ClipboardPage aPage)
aPage
- ClipboardPage to removetrue
if successfulboolean renamePage(ClipboardPage aPage, java.lang.String aName)
aPage
- ClipboardPage to be renamedaName
- String with new nametrue
if successfuljava.util.Set<java.lang.String> getDeclarativePageNames()
boolean removeDeclarativePage(java.lang.String aPageToBeFlushed)
aPageToBeFlushed
- A decorated page name or just definition name.true
if data page instance is found and removed.Copyright © 2015 Pegasystems Inc. All Rights Reserved.