public interface PublicAPI
PublicAPI
interface identifies the basic functionality
available to all Java generated from defining Rule- instances. It maintains
an execution context, associated with a particular PRThread
,
which varies during the course of processing.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
void |
applyCollection(StringMap aCollectionKeys,
ClipboardPage aPage,
ParameterPage aParams)
Applies a Collection to an instance.
|
void |
applyModel(ClipboardPage aClipboardPage,
ParameterPage aNewParamPage,
java.lang.String aModelName)
Apply a model to the specified clipboard page.
|
void |
applyModel(ClipboardPage aClipboardPage,
StringMap aKeys,
ParameterPage aNewParamPage)
Apply a model to the specified clipboard page.
|
boolean |
checkCachingHeaders(long aLastModifiedDate,
long aFileLength)
Validate the headers submitted as part of the request match the inputs provided.
|
void |
closeHTMLDoc()
This must be called after getting a stream that is a top-level
document.
|
ClipboardPage |
createPage(java.lang.String aClassName,
java.lang.String aPageName)
Create a new page of the specified class.
|
void |
doAction(StringMap aKeys,
ClipboardPage aNewStepPage,
ParameterPage aNewParam)
Executes the identified (typically custom) rule which uses the activity access
interface by implementing com.pega.pegarules.pub.runtime.Activity.
|
void |
doActivity(StringMap aKeys,
ClipboardPage aNewPrimaryPage,
ParameterPage aNewParam)
Executes the identified processing, which is typically defined by class
Rule-Obj-Activity.
|
void |
editInput(ClipboardProperty aTarget,
java.lang.String aValue,
java.lang.String aEditName)
Applies Rule-Edit-Input processing (if any) to the specified value before
assigning it to the specified (scalar) property.
|
boolean |
editValidate(ClipboardProperty aTarget,
java.lang.String aValidateName)
Evaluates the named Rule-Edit-Validate for the specified (scalar)
property.
|
java.lang.String |
entryHandle2Reference(java.lang.String aEntryHandle)
Convert an entry handle back into its corresponding reference.
|
boolean |
eTagMatches(long aLastModifiedDate)
Deprecated.
|
boolean |
evaluateWhen(StringMap aKeys)
Evaluates the identified conditional.
|
ClipboardPage |
findPage(java.lang.String aPageReference)
Locates the specified page, which can be either top-level or embedded..
|
ClipboardPage |
findPage(java.lang.String aPageReference,
boolean aIfPresent)
Locates the specified page, which can be either top-level or embedded..
|
ClipboardPage |
findPage(java.lang.String aPageReference,
ParameterPage aParameterPage)
Locates the specified page, which can be either top-level or embedded..
|
ClipboardPage |
findPage(java.lang.String aPageReference,
ParameterPage aParameterPage,
boolean aIfPresent)
Locates the specified page, which can be either top-level or embedded..
|
ClipboardPage |
findPageByHandle(java.lang.String aInsKey)
Locates the specified page, which must be top-level, by instance handle.
|
ClipboardPage |
findPageWithException(java.lang.String aPageReference)
Locates the specified page, which can be either top-level or embedded.
|
java.lang.String |
formatMessage(java.lang.String aKey,
Database aDb)
Return localized value for Text.
|
ClipboardPage |
generateAgentDataPage(ClipboardPage aRuleAgentQueue)
Create a Data-Agent-Queue page, based on the specified Rule-Agent-Queue instance.
|
java.lang.String |
getActivityClassName()
Returns a string representing the Java class file name of the currently
executing activity.
|
ProcessingStatus |
getActivityStatus()
Returns the cumulative
ProcessingStatus instance to which
the current instance will be added. |
AgentUtils |
getAgentUtils()
Returns an instance of the AgentUtils class.
|
java.lang.Object |
getAliasValue(ClipboardPage aPage,
ImmutablePropertyAliasInfo aPropertyAliasInfo)
Resolve the identified property alias, by evaluating the alias
on the specified clipboard page.
|
java.lang.Object |
getAliasValue(ClipboardPage aPage,
java.lang.String aClassName,
java.lang.String aAliasName)
Resolve the identified property alias, by evaluating the alias
on the specified clipboard page.
|
java.lang.Object |
getAliasValue(java.lang.String aClassName,
java.lang.String aAliasName)
Resolve the identified property alias, by evaluating the alias
on the step page.
|
PRAuthorization |
getAuthorizationHandle()
Get PRAuthorization instance handle.
|
java.lang.String |
getCSRFSessionToken()
returns CSRF attack mitigation token for the given thread.
|
Database |
getDatabase()
Identifies a
Database instance that can be used for this processing. |
DateTimeUtils |
getDateTimeUtils()
Returns the DateTime utility object for this Node.
|
Dictionary |
getDictionary()
Provides the
Dictionary instance associated with this Thread. |
EFormUtils |
getEFormUtils()
Returns an instance of the EFormUtils class.
|
ClipboardProperty |
getIfPresent(java.lang.String aReference)
Provides the
ClipboardProperty instance identified by the
specified reference, using the current Step Page as the default. |
GeneratedJava |
getImplementation(StringMap aKeys)
Deprecated.
use one of the specific interface methods such as
doAction(com.pega.pegarules.pub.util.StringMap, com.pega.pegarules.pub.clipboard.ClipboardPage, com.pega.pegarules.pub.runtime.ParameterPage) |
com.pega.pegarules.priv.InfEngUtils |
getInfEngUtils()
Returns an instance of the InfEngUtils class.
|
java.lang.String |
getLocalizedText(java.lang.String aRef)
Get the localized text for the property named by the given reference
|
java.lang.String |
getLocalizedTextForParameterizedString(java.lang.String aRef,
java.lang.String aString) |
java.lang.String |
getLocalizedTextForString(java.lang.String aRef,
java.lang.String aString)
Get the localized version of the given string, using the localization
information from the given property.
|
java.lang.String |
getLocalizedTextForString(java.lang.String aRef,
java.lang.String aString,
boolean aReturnEmptyForLocalisedString)
Get the localized version of the given string, using the localization
information from the given property.
|
java.lang.String |
getLocalizedTextForString(java.lang.String aRef,
java.lang.String aString,
byte aMode)
Get the localized version of the given string, using the localization
information from the given property.
|
java.lang.String |
getLocalizedTextForString(java.lang.String aRef,
java.lang.String aString,
byte aMode,
boolean aReturnEmptyForLocalisedString)
Get the localized version of the given string, using the localization
information from the given property.
|
java.util.Map |
getMetadata(StringMap aKeys,
ClipboardPage aPrimaryPage)
Returns metadata if available from the rule instance.
|
java.lang.String |
getObfuscationKey()
returns key to encrypt the URL through safeURL js
|
PAL |
getPAL()
Returns an instance of the PAL class.
|
com.pega.ibm.icu.math.BigDecimal |
getParamAsBigDecimal(char aType,
java.lang.String aName)
Returns the value, if any, of the named parameter on the current
ParameterPage . |
boolean |
getParamAsBoolean(char aType,
java.lang.String aName)
Returns the value, if any, of the named parameter on the current
ParameterPage . |
java.util.Date |
getParamAsDate(char aType,
java.lang.String aName)
Returns the value, if any, of the named parameter on the current
ParameterPage . |
double |
getParamAsDouble(char aType,
java.lang.String aName)
Returns the value, if any, of the named parameter on the current
ParameterPage . |
int |
getParamAsInteger(char aType,
java.lang.String aName)
Returns the value, if any, of the named parameter on the current
ParameterPage . |
java.lang.String |
getParamCSF(java.lang.String aSource)
Applies StringUtils.crossScriptingFilter() to
tools.getParamValue(aSource) and returns filtered value
|
ParameterPage |
getParameterPage()
Identifies the current
ParameterPage . |
java.lang.String |
getParamValue(java.lang.String aName)
Returns the value, if any, of the named parameter on the current
ParameterPage . |
ParseState |
getParseState(java.io.InputStream stream)
Returns a new instance of ParseState on an InputStream.
|
ParseState |
getParseState(java.io.Reader reader)
Returns a new instance of ParseState on a Reader.
|
ParseUtils |
getParseUtils()
Returns an instance of the ParseUtils class.
|
PDFUtils |
getPDFUtils()
Returns an instance of PDFUtils class
|
IPRCrypto |
getPRCrypto()
Returns an instance of PegaRules cryptography interface
|
ClipboardPage |
getPrimaryPage()
Identifies the current Primary Page.
|
ClipboardProperty |
getProperty(java.lang.String aReference)
Provides the
ClipboardProperty instance identified by the
specified reference, using the current Step Page as the default. |
PRRequestor |
getRequestor()
Identifies the Requestor that 'owns' the current processing.
|
java.lang.String |
getRuleMessage(java.lang.String aMsgDescr)
Given a Rule-Message descriptor (which consists of a Rule-Message
key and a list of tab-separated parameters), produce a verbose
message.
|
java.lang.String |
getRuleMessage(java.lang.String aMsgDescr,
java.lang.String messageClass)
Given a Rule-Message descriptor (which consists of a Rule-Message
key and a list of tab-separated parameters), produce a verbose
message.
|
java.lang.String |
getRuleSecurityMode()
returns the rule execution mode of the access group
|
ServiceUtils |
getServiceUtils()
Returns an instance of the ServiceUtils class.
|
PRStackFrame |
getStackFrame()
Identifies the current (top)
PRStackFrame instance. |
ClipboardPage |
getStepPage()
Identifies the current Step Page.
|
ProcessingStatus |
getStepStatus()
Returns the
ProcessingStatus associated with the current
stack frame. |
java.lang.String |
getStream(StringMap aKeys,
ClipboardPage aNewPrimary)
Builds the stream identified by a set of keys.
|
java.lang.String |
getStream(StringMap aKeys,
ClipboardPage aNewPrimary,
long aMode)
Builds the stream identified by a set of keys.
|
StructuredUtils |
getStructuredUtils()
Returns an instance of the StructuredUtils class.
|
PRSystemSettings |
getSystemSettings()
Returns the SystemSettings interface
|
PRThread |
getThread()
Identifies the Thread that 'owns' the current processing.
|
TracerUserWatchList |
getTracerUserWatchList()
Get the TracerUserWatchList instance.
|
XMLUtils |
getXMLUtils()
Returns an instance of the XMLUtils class.
|
boolean |
hasIfNoneMatch()
Did the request that came in have an If-None-Match request header?
|
boolean |
hasImplicitPrivilege(com.pega.pegarules.priv.tracer.RuleTraceInfo aRuleInUse)
Check user executing the rule has implicit privilege
|
boolean |
hasImplicitPrivilege(java.lang.String objClass,
java.lang.String appliesToClassName,
java.lang.String instanceName,
java.lang.String ruleSetName,
java.lang.String ruleSetVersion) |
boolean |
interpretBoolean(java.lang.String aBooleanString)
Interpret a string as a either boolean true or false.
|
boolean |
isAsciiEncodable(char aCharacter)
checks whether the character passed is valid or not
|
boolean |
isCSRFMitigationEnabled()
Check if CSRF Mitigation is enabled
|
boolean |
isFirstActivity()
Check if current activity is first activity in the execution stack
|
boolean |
isNotModifiedSet() |
boolean |
isValidDataPage(java.lang.String dataPageName)
returns a boolean to indicate if the name of the page represents a data page.
|
void |
openHTMLDoc()
This must be called before getting a stream that is a top-level
document.
|
void |
preventStaleHTTPRequestProcessing(java.lang.String aFrameName)
Prevent the outgoing HTML frame from being resubmitted by the client
after initial submission.
|
void |
putParamValue(java.lang.String aName,
boolean aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
java.lang.Boolean aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
char aType,
com.pega.ibm.icu.math.BigDecimal aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
char aType,
boolean aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
char aType,
java.lang.Boolean aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
char aType,
java.util.Date aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
char aType,
double aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
char aType,
java.lang.Double aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
char aType,
int aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
char aType,
java.lang.Integer aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
char aType,
java.lang.Object aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
char aType,
java.lang.String aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
ClipboardProperty aValue)
Assigns the specified value (by reference) to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
double aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
java.lang.Double aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
int aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
java.lang.Integer aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
java.lang.Object aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
void |
putParamValue(java.lang.String aName,
java.lang.String aValue)
Assigns the specified value to the named parameter, on the current
ParameterPage . |
boolean |
removeDataPage(java.lang.String aDataPageName)
deletes the given Data page
|
boolean |
removeDataPage(java.lang.String aDataPageName,
ParameterPage aParamPage)
deletes the given Data page
|
void |
resetNotModified()
Sets the clears the result code (if set) for the servlet to 200.
|
java.lang.String |
sendFile(byte[] aFileData,
java.lang.String aFileName,
boolean aPersistFileToServiceExport,
StringMap aHttpHeaders,
boolean aSendForDownload)
Send file data in aFileData.
|
java.lang.String |
sendFile(ClipboardPage aInstancePage,
java.lang.String aFileSourceReference,
boolean aIsBase64Encoded,
java.lang.String aFileNameReference,
java.lang.String aFileName,
boolean aPersistFileToServiceExport,
StringMap aHttpHeaders,
boolean aSendForDownload)
Send file data designated by aFileSourceReference in the clipboard page aInstancePage.
|
java.lang.String |
sendFile(PRFile aFile,
boolean aDeleteFile,
StringMap aHttpHeaders,
boolean aSendForDownload)
Send file designated by aFile to the client.
|
java.lang.String |
sendFile(StringMap aInstanceKeys,
java.lang.String aFileSourceReference,
boolean aIsBase64Encoded,
java.lang.String aFileNameReference,
java.lang.String aFileName,
boolean aPersistFileToServiceExport,
StringMap aHttpHeaders,
boolean aSendForDownload)
Send file data designated by aFileSourceReference in the instance keyed by aInstanceKeys.
|
java.lang.String |
sendFile(java.lang.String aInstanceHandle,
java.lang.String aFileSourceReference,
boolean aIsBase64Encoded,
java.lang.String aFileNameReference,
java.lang.String aFileName,
boolean aPersistFileToServiceExport,
StringMap aHttpHeaders,
boolean aSendForDownload)
Send file data designated by aFileSourceReference in the instance keyed by aInstanceHandle.
|
void |
sendHTTPRedirect(java.lang.String aLocation)
Redirect a user to a new location (HTTP 303)
This function is only meaningful in the context of a HTTP interaction.
|
void |
setCachingHeaders(long aLastModifiedDate)
Sets the ETag and Last-Modified headers to contain values appropriate for client side caching.
|
void |
setETag(long aLastModifiedDate)
Deprecated.
|
void |
setNotModified()
Sets the result code for the servlet to 304.
|
void |
setNotModified(boolean aModified)
Sets the result code for the servlet to 304.
|
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
ProcessingStatus getActivityStatus()
ProcessingStatus
instance to which
the current instance will be added.ProcessingStatus
instance that includes
current processingPRAuthorization getAuthorizationHandle()
ProcessingStatus getStepStatus()
ProcessingStatus
associated with the current
stack frame.ProcessingStatus
PRStackFrame getStackFrame()
PRStackFrame
instance.PRStackFrame
for the current processingClipboardPage getPrimaryPage()
ClipboardPage getStepPage()
ClipboardProperty getProperty(java.lang.String aReference)
ClipboardProperty
instance identified by the
specified reference, using the current Step Page as the default.aReference
- property reference that either names its top-level
page or is relative to the current Step PageClipboardProperty
instanceClipboardProperty getIfPresent(java.lang.String aReference)
ClipboardProperty
instance identified by the
specified reference, using the current Step Page as the default. If
the property is not found, this method returns null.aReference
- property reference that either names its top-level
page or is relative to the current Step PageClipboardProperty
instance, or null if not found.ParameterPage getParameterPage()
ParameterPage
.ParameterPage
java.lang.String getParamValue(java.lang.String aName)
ParameterPage
.aName
- parameter whose value is to be returned""
if this
parameter is not definedjava.lang.String getParamCSF(java.lang.String aSource)
aSource
- name of parameter whose value is to be filteredvoid putParamValue(java.lang.String aName, java.lang.String aValue)
ParameterPage
.aName
- parameter to receive the specified valueaValue
- value to be assigned to the named parameter. An empty
String
will be used if the value is null
.void putParamValue(java.lang.String aName, ClipboardProperty aValue)
ParameterPage
.aName
- parameter to receive the specified valueaValue
- value (by reference) to be assigned to the
named parameter.void putParamValue(java.lang.String aName, double aValue)
ParameterPage
.aName
- parameter to receive the specified valueaValue
- value to be assigned to the named parameter. An empty
String
will be used if the value is null
.void putParamValue(java.lang.String aName, java.lang.Double aValue)
ParameterPage
.aName
- parameter to receive the specified valueaValue
- value to be assigned to the named parameter. An empty
String
will be used if the value is null
.void putParamValue(java.lang.String aName, int aValue)
ParameterPage
.aName
- parameter to receive the specified valueaValue
- value to be assigned to the named parameter. An empty
String
will be used if the value is null
.void putParamValue(java.lang.String aName, java.lang.Integer aValue)
ParameterPage
.aName
- parameter to receive the specified valueaValue
- value to be assigned to the named parameter. An empty
String
will be used if the value is null
.void putParamValue(java.lang.String aName, boolean aValue)
ParameterPage
.aName
- parameter to receive the specified valueaValue
- value to be assigned to the named parameter. An empty
String
will be used if the value is null
.void putParamValue(java.lang.String aName, java.lang.Boolean aValue)
ParameterPage
.aName
- parameter to receive the specified valueaValue
- value to be assigned to the named parameter. An empty
String
will be used if the value is null
.void putParamValue(java.lang.String aName, java.lang.Object aValue)
ParameterPage
.aName
- parameter to receive the specified valueaValue
- value to be assigned to the named parameter.PRRequestor getRequestor()
PRRequestor
instance associated with the current processingPRThread getThread()
PRThread
instance associated with the current processingClipboardPage createPage(java.lang.String aClassName, java.lang.String aPageName)
aClassName
- object classaPageName
- name of pageClipboardPage findPage(java.lang.String aPageReference)
aPageReference
- name of a top-level page, or reference to an
embedded pageClipboardPage
instance, or
null
if the referenced page is not known to this ThreadClipboardPage findPage(java.lang.String aPageReference, boolean aIfPresent)
aPageReference
- name of a top-level page, or reference to an
embedded page.aIfPresent
- true
if the page should only be
returned if it is present, false
if the page
should be created and returned if it isn't already presentClipboardPage
instance or
null
if the referenced page could not be created
(when aIfPresent
is false
), or if the
page does not exist (when aIfPresent
is
true
)ClipboardPage findPage(java.lang.String aPageReference, ParameterPage aParameterPage)
aPageReference
- aPageReference name of a top-level page, or reference to an
embedded page.aParameterPage
- parameters to be passed to the page, used while loading itClipboardPage
instance or
null
if the referenced page could not be createdClipboardPage findPage(java.lang.String aPageReference, ParameterPage aParameterPage, boolean aIfPresent)
aPageReference
- aPageReference name of a top-level page, or reference to an
embedded page.aParameterPage
- parameters to be passed to the page, used while loading itaIfPresent
- true
if the page should only be
returned if it is present, false
if the page
should be created and returned if it isn't already presentClipboardPage
instance or
null
if the referenced page could not be created
(when aIfPresent
is false
), or if the
page does not exist (when aIfPresent
is
true
)ClipboardPage findPageWithException(java.lang.String aPageReference)
aPageReference
- name of a top-level page, or reference to an
embedded pageClipboardPage
instanceInvalidReferenceException
- if the referenced page
is not known to this ThreadDatabase getDatabase()
Database
instance that can be used for this processing.Database
instance associated with current processingDictionary getDictionary()
Dictionary
instance associated with this Thread.DateTimeUtils getDateTimeUtils()
com.pega.pegarules.priv.InfEngUtils getInfEngUtils()
ServiceUtils getServiceUtils()
TracerUserWatchList getTracerUserWatchList()
AgentUtils getAgentUtils()
IPRCrypto getPRCrypto()
ParseState getParseState(java.io.InputStream stream)
stream
- InputStream to use as source of data.ParseState getParseState(java.io.Reader reader)
reader
- Reader to use as source of data.ParseUtils getParseUtils()
EFormUtils getEFormUtils()
StructuredUtils getStructuredUtils()
XMLUtils getXMLUtils()
PAL getPAL()
PRSystemSettings getSystemSettings()
void doAction(StringMap aKeys, ClipboardPage aNewStepPage, ParameterPage aNewParam)
aKeys
- specifies the desired Rule- reference. A value must be
specified for pxObjClass, which determines the other values that are
used. If the named class is subject to class inheritance, a value
specified for pyClassName must be consistent with the class of the Step
Page, or pyClassName will be defaulted to the class of the Step Page.StringMap
which is
implemented by HashStringMap
and ClipboardPage
.aNewStepPage
- new Step Page, or null
to retain current oneaNewParam
- new ParameterPage
, or null
to retain current onevoid doActivity(StringMap aKeys, ClipboardPage aNewPrimaryPage, ParameterPage aNewParam)
Activity
interface should be invoked
using the doAction(com.pega.pegarules.pub.util.StringMap, com.pega.pegarules.pub.clipboard.ClipboardPage, com.pega.pegarules.pub.runtime.ParameterPage)
method.aKeys
- specifies the desired Rule- reference. Recognized values
are:
StringMap
which is
implemented by HashStringMap
and ClipboardPage
.aNewPrimaryPage
- new Primary Page, or null
to retain current one. NOTE: the current value of the Primary
Page is used as the basis for evaluating circumstance, so care must
be taken in determining when this value should be modified, hence when
this method should be used.aNewParam
- new ParameterPage
, or null
to retain current oneRuleGenerationException
- An error that indicates there was a
problem during generation of the activity.java.lang.String getStream(StringMap aKeys, ClipboardPage aNewPrimary)
The keys must be the key properties of a stream rule. (If the
pxObjClass
property is missing, then it is assumed to be
Rule-Obj-HTML
.)
In addition to the rule's key properties, the special
pzInput
property may be specified to indicate whether the
stream should be displayed with input enabled. The value of this property
may be set to StreamBuilder.sInputEnabled
, which is the default,
or StreamBuilder.sNoInput
. If you need this property, consider using
the getStream(StringMap, ClipboardPage, long)
method instead.
aKeys
- specifies the desired streamaNewPrimary
- new Primary Page, or null
to retain
current onejava.lang.String getStream(StringMap aKeys, ClipboardPage aNewPrimary, long aMode)
The keys must be the key properties of a stream rule. (If the
pxObjClass
property is missing, then it is assumed to be
Rule-Obj-HTML
.)
aKeys
- specifies the desired streamaNewPrimary
- new Primary Page, or null
to retain
current oneaMode
- mode in which the stream should be displayed. This must be one
or more of the MODE_
constants specified in
StreamBuilder
, or'd together.boolean evaluateWhen(StringMap aKeys)
aKeys
- specifies the desired conditional. Recognized values are:
boolean
result of the conditionalIndeterminateConditionalException
- if any processing error
prevents reliable evaluation of the conditionalvoid applyModel(ClipboardPage aClipboardPage, ParameterPage aNewParamPage, java.lang.String aModelName)
aClipboardPage
- Reference to target clipboard pageaNewParamPage
- New parameter page to use. null
will use current parameter page.aModelName
- Name of a Rule-Obj-Model instance to executevoid applyModel(ClipboardPage aClipboardPage, StringMap aKeys, ParameterPage aNewParamPage)
aClipboardPage
- Reference to target clipboard pageaKeys
- Specifies the desired model instance.aNewParamPage
- New parameter page to use. null
will use current
parameter page.void editInput(ClipboardProperty aTarget, java.lang.String aValue, java.lang.String aEditName)
aTarget
- property to receive a new valueaValue
- input String
to be processed and assignedaEditName
- name of the Rule-Edit-Input to use, or null
to use the one defined for this propertyInvalidParameterException
- if the property is null
WrongModeException
- if the property is not scalarboolean editValidate(ClipboardProperty aTarget, java.lang.String aValidateName)
aTarget
- property to be checkedaValidateName
- name of the Rule-Edit-Validate to usetrue
if validation successfulInvalidParameterException
- if the property is null
or no Rule-Edit-Validate is namedWrongModeException
- if the property is not scalarIndeterminateConditionalException
- if the named Rule-Edit-Validate
cannot be processedjava.util.Map getMetadata(StringMap aKeys, ClipboardPage aPrimaryPage)
null
.aKeys
- keys to the desired Rule- instance for which metadata is
retrievedaPrimaryPage
- primary page on which the rule is being applied. Some rules
(such as Rule-Obj-Validate) require that this page be a named
page.Map
of metadata from the rule instanceGeneratedJava getImplementation(StringMap aKeys) throws FirstUseAssemblerException
doAction(com.pega.pegarules.pub.util.StringMap, com.pega.pegarules.pub.clipboard.ClipboardPage, com.pega.pegarules.pub.runtime.ParameterPage)
GeneratedJava
implementation
class, that implements the specified Rule- reference. This is the
recommended method to use for custom rules that do not use the Activity
access interface or are otherwise incompatible with the details of the
defined methods therein.aKeys
- specifies the desired Rule- reference. A value must be
specified for pxObjClass, which determines the other values
that are used. If the named class is subject to class
inheritance, a value specified for pyClassName must be
consistent with the class of the Step Page, or pyClassName
will be defaulted to the class of the Step Page.FirstUseAssemblerException
- when unable to provide the requested instanceClipboardPage generateAgentDataPage(ClipboardPage aRuleAgentQueue)
aRuleAgentQueue
- The Rule-Agent-Queue instance to useboolean interpretBoolean(java.lang.String aBooleanString)
aBooleanString
- String to interpretjava.lang.String getActivityClassName()
LockManager.lock()
to ensure exclusive
execution of the given activity across all running Requestors.void preventStaleHTTPRequestProcessing(java.lang.String aFrameName)
aFrameName
- Name of frame, or null
for current incoming frame, or "*"
for all frames.boolean hasIfNoneMatch()
true
if it was present, otherwise false
boolean eTagMatches(long aLastModifiedDate)
aLastModifiedDate
- date to use in computing the eTagtrue
if the computeded eTag matched the one supplied with the request,
otherwise false
void setCachingHeaders(long aLastModifiedDate)
aLastModifiedDate
- The last modified date/time of the target in question. Typically, this
is a File.lastModified()boolean checkCachingHeaders(long aLastModifiedDate, long aFileLength)
aLastModifiedDate
- the last time the resource was modified, typically a File.lastModified()aFileLength
- size of the target in question, typically a File.length()true
if headers matchvoid setETag(long aLastModifiedDate)
aLastModifiedDate
- void setNotModified()
void setNotModified(boolean aModified)
aModified
- true
to send a 304, false
otherwise.boolean isNotModifiedSet()
true
if the current processing is set to return an HTTP 304,
otherwise false
.void resetNotModified()
java.lang.String formatMessage(java.lang.String aKey, Database aDb)
aKey
- Rule-Message keyaDb
- java.lang.String getRuleMessage(java.lang.String aMsgDescr)
aMsgDescr
- a message descriptor. Consists of a Rule-Message key followed by
optional parameters in the format of "\\tparam".java.lang.String getRuleMessage(java.lang.String aMsgDescr, java.lang.String messageClass)
aMsgDescr
- a message descriptor. Consists of a Rule-Message key followed by
optional parameters in the format of "\\tparam".messageClass
- the class key of the message object.java.lang.Object getAliasValue(java.lang.String aClassName, java.lang.String aAliasName)
aClassName
- the pyClassName of the desired alias instance.aAliasName
- the pyPropertyName of the desired alias instance.Object
The computed value of the aliasjava.lang.Object getAliasValue(ClipboardPage aPage, java.lang.String aClassName, java.lang.String aAliasName)
aPage
- Clipboard page used to evaluate the alias, or null to use current step page.aClassName
- the pyClassName of the desired alias instance.aAliasName
- the pyPropertyName of the desired alias instance.Object
The computed value of the aliasjava.lang.Object getAliasValue(ClipboardPage aPage, ImmutablePropertyAliasInfo aPropertyAliasInfo)
aPage
- Clipboard page used to evaluate the alias, or null to use current step page.aPropertyAliasInfo
- An ImmutablePropertyAliasInfo instance representing the alias to use.Object
The computed value of the aliasjava.lang.String getLocalizedText(java.lang.String aRef)
aRef
- A reference to the propertyjava.lang.String getLocalizedTextForString(java.lang.String aRef, java.lang.String aString)
aRef
- A reference to the propertyaString
- The string to localizejava.lang.String getLocalizedTextForString(java.lang.String aRef, java.lang.String aString, boolean aReturnEmptyForLocalisedString)
aRef
- A reference to the propertyaString
- The string to localizeaReturnEmptyForLocalisedString
- if true returns localized string as-isjava.lang.String getLocalizedTextForString(java.lang.String aRef, java.lang.String aString, byte aMode)
aRef
- A reference to the propertyaString
- The string to localizeaMode
- if StreamBuilder.FMT_NORMAL
, then the stream is
encoded for HTML. If StreamBuilder.FMT_LITERAL
, then
no encoding is performed.java.lang.String getLocalizedTextForString(java.lang.String aRef, java.lang.String aString, byte aMode, boolean aReturnEmptyForLocalisedString)
aRef
- A reference to the propertyaString
- The string to localizeaMode
- if StreamBuilder.FMT_NORMAL
, then the stream is
encoded for HTML. If StreamBuilder.FMT_LITERAL
, then
no encoding is performed.aReturnEmptyForLocalisedString
- if true retuens the localized string as-isjava.lang.String getLocalizedTextForParameterizedString(java.lang.String aRef, java.lang.String aString)
com.pega.ibm.icu.math.BigDecimal getParamAsBigDecimal(char aType, java.lang.String aName)
ParameterPage
.aType
- declared PropertyInfo type code for parameter. See
ImmutablePropertyInfo
documentation for valid types.aName
- parameter whose value is to be returnedBigDecimal.ZERO
if
this parameter is not definedjava.lang.NullPointerException
- if there is no current ParameterPage
boolean getParamAsBoolean(char aType, java.lang.String aName)
ParameterPage
.aType
- declared PropertyInfo type code for parameter. See
ImmutablePropertyInfo
documentation for valid types.aName
- parameter whose value is to be returnedfalse
if this
parameter is not definedjava.lang.NullPointerException
- if there is no current ParameterPage
java.util.Date getParamAsDate(char aType, java.lang.String aName)
ParameterPage
.aType
- declared PropertyInfo type code for parameter. See
ImmutablePropertyInfo
documentation for valid types.aName
- parameter whose value is to be returnedDate(0)
if this
parameter is not definedjava.lang.NullPointerException
- if there is no current ParameterPage
double getParamAsDouble(char aType, java.lang.String aName)
ParameterPage
.aType
- declared PropertyInfo type code for parameter. See
ImmutablePropertyInfo
documentation for valid types.aName
- parameter whose value is to be returned0.0
if this
parameter is not definedjava.lang.NullPointerException
- if there is no current ParameterPage
int getParamAsInteger(char aType, java.lang.String aName)
ParameterPage
.aType
- declared PropertyInfo type code for parameter. See
ImmutablePropertyInfo
documentation for valid types.aName
- parameter whose value is to be returned0
if this parameter
is not definedjava.lang.NullPointerException
- if there is no current ParameterPage
void putParamValue(java.lang.String aName, char aType, com.pega.ibm.icu.math.BigDecimal aValue)
ParameterPage
.aName
- parameter to receive the specified valueaType
- declared PropertyInfo type code for the parameter. See
ImmutablePropertyInfo
documentation for valid types.aValue
- value to be assigned to the named parameter.java.lang.NullPointerException
- if there is no current ParameterPage
void putParamValue(java.lang.String aName, char aType, boolean aValue)
ParameterPage
.aName
- parameter to receive the specified valueaType
- declared PropertyInfo type code for the parameter. See
ImmutablePropertyInfo
documentation for valid types.aValue
- value to be assigned to the named parameter.java.lang.NullPointerException
- if there is no current ParameterPage
void putParamValue(java.lang.String aName, char aType, java.lang.Boolean aValue)
ParameterPage
.aName
- parameter to receive the specified valueaType
- declared PropertyInfo type code for the parameter. See
ImmutablePropertyInfo
documentation for valid types.aValue
- value to be assigned to the named parameter.java.lang.NullPointerException
- if there is no current ParameterPage
void putParamValue(java.lang.String aName, char aType, java.util.Date aValue)
ParameterPage
.aName
- parameter to receive the specified valueaType
- declared PropertyInfo type code for the parameter. See
ImmutablePropertyInfo
documentation for valid types.aValue
- value to be assigned to the named parameter.java.lang.NullPointerException
- if there is no current ParameterPage
void putParamValue(java.lang.String aName, char aType, double aValue)
ParameterPage
.aName
- parameter to receive the specified valueaType
- declared PropertyInfo type code for the parameter. See
ImmutablePropertyInfo
documentation for valid types.aValue
- value to be assigned to the named parameter.java.lang.NullPointerException
- if there is no current ParameterPage
void putParamValue(java.lang.String aName, char aType, java.lang.Double aValue)
ParameterPage
.aName
- parameter to receive the specified valueaType
- declared PropertyInfo type code for the parameteraValue
- value to be assigned to the named parameter.java.lang.NullPointerException
- if there is no current ParameterPage
void putParamValue(java.lang.String aName, char aType, int aValue)
ParameterPage
.aName
- parameter to receive the specified valueaType
- declared PropertyInfo type code for the parameter. See
ImmutablePropertyInfo
documentation for valid types.aValue
- value to be assigned to the named parameter.java.lang.NullPointerException
- if there is no current ParameterPage
void putParamValue(java.lang.String aName, char aType, java.lang.Integer aValue)
ParameterPage
.aName
- parameter to receive the specified valueaType
- declared PropertyInfo type code for the parameter. See
ImmutablePropertyInfo
documentation for valid types.aValue
- value to be assigned to the named parameter.java.lang.NullPointerException
- if there is no current ParameterPage
void putParamValue(java.lang.String aName, char aType, java.lang.Object aValue)
ParameterPage
.aName
- parameter to receive the specified valueaType
- declared PropertyInfo type code for the parameter (ignored).
See ImmutablePropertyInfo
documentation for valid
types.aValue
- value to be assigned to the named parameter.java.lang.NullPointerException
- if there is no current ParameterPage
void putParamValue(java.lang.String aName, char aType, java.lang.String aValue)
ParameterPage
.aName
- parameter to receive the specified valueaType
- declared PropertyInfo type code for the parameter (ignored).
See ImmutablePropertyInfo
documentation for valid
types.aValue
- value to be assigned to the named parameter. An empty
String
will be used if the value is
null
.java.lang.NullPointerException
- if there is no current ParameterPage
void sendHTTPRedirect(java.lang.String aLocation)
aLocation
- the query string part of the redirect, or null if the engine should recalculate based off of the incoming URL
based off of the one that spawned this operationvoid openHTMLDoc()
void closeHTMLDoc()
void applyCollection(StringMap aCollectionKeys, ClipboardPage aPage, ParameterPage aParams)
aCollectionKeys
- the keys to the Collection Rule to applyaPage
- the instanceaParams
- the parameter page to use, or null if the same one should be
usedClipboardPage findPageByHandle(java.lang.String aInsKey)
aInsKey
- Instance handle of a top-level page.ClipboardPage
instance, or
null
if the referenced page is not known to this Thread.PDFUtils getPDFUtils()
java.lang.String sendFile(PRFile aFile, boolean aDeleteFile, StringMap aHttpHeaders, boolean aSendForDownload)
aFile
- the file abstract pathnameaDeleteFile
- should this file be deleted after it gets sent to the client.
set to true
to avoid to have to cleanup after, and set it
to false
if the file will be accessed multiple times.aHttpHeaders
- specifies custom http headers to use when sending this file data (overrides aSendForDownload).aSendForDownload
- should this file be sent for download (if true, appropriate HTTP headers get added).java.lang.String sendFile(byte[] aFileData, java.lang.String aFileName, boolean aPersistFileToServiceExport, StringMap aHttpHeaders, boolean aSendForDownload)
aFileData
- file data to be sent to client.aFileName
- file name to use when sending or writing to server's ServiceExport directory the file data.aPersistFileToServiceExport
- should this file be written to server's ServiceExport directory.
set this to true
only if the file will be accessed multiple times.aHttpHeaders
- specifies custom http headers to use when sending this file data (overrides aSendForDownload).aSendForDownload
- should this file be sent for download (if true
, appropriate HTTP headers get added).java.lang.String sendFile(StringMap aInstanceKeys, java.lang.String aFileSourceReference, boolean aIsBase64Encoded, java.lang.String aFileNameReference, java.lang.String aFileName, boolean aPersistFileToServiceExport, StringMap aHttpHeaders, boolean aSendForDownload)
aInstanceKeys
- keys of the instance to be opened.aFileSourceReference
- property reference name to data file in the instance.aIsBase64Encoded
- was the file data in the instance to opened encoded using base64 encoding.aFileNameReference
- property reference name to file name in the instance.aFileName
- file name to use when sending or writing to server's ServiceExport directory the file data.
if set to null, content of the clipboad property referenced by aFileNameReference will get used instead.aPersistFileToServiceExport
- should this file be written to server's ServiceExport directory.
set this to true
only if the file will be accessed multiple times.aHttpHeaders
- specifies custom http headers to use when sending this file data (overrides aSendForDownload).aSendForDownload
- should this file be sent for download (if true
, appropriate HTTP headers get added.)java.lang.String sendFile(java.lang.String aInstanceHandle, java.lang.String aFileSourceReference, boolean aIsBase64Encoded, java.lang.String aFileNameReference, java.lang.String aFileName, boolean aPersistFileToServiceExport, StringMap aHttpHeaders, boolean aSendForDownload)
aInstanceHandle
- aInstanceHandle key handle of the instance to be opened.aFileSourceReference
- property reference name to file data in the instance.aIsBase64Encoded
- was the file data in the instance to be opened encoded using base64 encoding.aFileNameReference
- property reference name to file name in the instance.aFileName
- file name to use when sending or writing to server's ServiceExport directory the file data.
if set to null, content of the clipboad property referenced by aFileNameReference will get used instead.aPersistFileToServiceExport
- should this file be written to server's ServiceExport directory.
set this to true
only if the file will be accessed multiple timesaHttpHeaders
- specifies custom http headers to use when sending this file data (overrides aSendForDownload).aSendForDownload
- should this file be sent for download (if true
, appropriate HTTP headers get added).java.lang.String sendFile(ClipboardPage aInstancePage, java.lang.String aFileSourceReference, boolean aIsBase64Encoded, java.lang.String aFileNameReference, java.lang.String aFileName, boolean aPersistFileToServiceExport, StringMap aHttpHeaders, boolean aSendForDownload)
aInstancePage
- reference to instnace clipboard page that contains file data.aFileSourceReference
- property reference name to file data in the instance.aIsBase64Encoded
- was the file data in the instance to be opened encoded using base64 encoding.aFileNameReference
- property reference name to file name in the instance.aFileName
- file name to use when sending or writing to server's ServiceExport directory the file data.
if set to null, content of the clipboad property referenced by aFileNameReference will get used instead.aPersistFileToServiceExport
- should this file be written to server's ServiceExport directory.
set this to true
only if the file will be accessed multiple timesaHttpHeaders
- specifies custom http headers to use when sending this file data (overrides aSendForDownload).aSendForDownload
- should this file be sent for download (if true
, appropriate HTTP headers get added).java.lang.String entryHandle2Reference(java.lang.String aEntryHandle)
aEntryHandle
- The entry handle to convertboolean isFirstActivity()
boolean hasImplicitPrivilege(com.pega.pegarules.priv.tracer.RuleTraceInfo aRuleInUse)
aRuleInUse
- RuleTraceInfo for the ruleboolean hasImplicitPrivilege(java.lang.String objClass, java.lang.String appliesToClassName, java.lang.String instanceName, java.lang.String ruleSetName, java.lang.String ruleSetVersion)
java.lang.String getCSRFSessionToken()
java.lang.String getObfuscationKey()
boolean isCSRFMitigationEnabled()
java.lang.String getRuleSecurityMode()
boolean isValidDataPage(java.lang.String dataPageName)
dataPageName
- name of the datapage.boolean removeDataPage(java.lang.String aDataPageName)
aDataPageName
- name or decorated name of the Data pageboolean removeDataPage(java.lang.String aDataPageName, ParameterPage aParamPage)
aDataPageName
- name or decorated name of the Data pageaParamPage
- map of parametersboolean isAsciiEncodable(char aCharacter)
aCharacter
- a character from the rule name that is to be createdCopyright © 2015 Pegasystems Inc. All Rights Reserved.