|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PRRequestor
The PRRequestor interface encapsulates the information about a single user of PegaRULES via a specific connection to the outside world.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
static int |
ORIENTATION_LEFT_TO_RIGHT
Orientation of this user's text should be left-to-right |
static int |
ORIENTATION_RIGHT_TO_LEFT
Orientation of this user's text should be right-to-left |
static int |
ORIENTATION_UNKNOWN
Orientation of this user's text is unknown |
static java.lang.String |
sDefaultThread
Default thread name |
static java.lang.String |
sNewThread
Thread name that will force engine to create a unique thread |
static java.lang.String |
sTypeApplication
Requestor type: Application |
static java.lang.String |
sTypeBatch
Requestor type: Batch |
static java.lang.String |
sTypeBrowser
Requestor type: Browser |
static java.lang.String |
sTypePortal
Requestor type: Portal |
static java.lang.String |
VERSION
|
Fields inherited from interface com.pega.pegarules.pub.context.PageDirectory |
---|
SCOPE_NODE, SCOPE_REQUESTOR, SCOPE_THREAD |
Method Summary | |
---|---|
PRAuthorization |
getAuthorizationHandle()
Deprecated. Since PegaRULES 5.4 |
java.lang.String |
getDiagID()
Get this Requestor's diagnostic id string |
java.lang.String |
getEncodedRuleSetList()
Deprecated. since 5.4, use PRPRAuthorization.getEncodedRuleSetList() |
java.lang.String |
getEncodedUserId()
This returns an MD5 encoded copy of the users personal ruleset name. |
java.lang.String |
getId()
Get this Requestor's identification string |
java.lang.String |
getLocale()
|
PRNode |
getNode()
Identifies the Node that 'owns' this Requestor. |
PAL |
getPAL()
Returns the performance statistics manager for this Requestor. |
java.lang.String |
getProcessedRuleSetList()
Deprecated. since 5.4, use PRPRAuthorization.getEncodedRuleSetList() |
ClipboardPage |
getRequestorPage()
obtain a reference to the pxRequestor page |
boolean |
getSuppressShowMethod()
Get the 'suppress show method' flag value. |
int |
getTextOrientation()
Get the direction of text for this user |
PRThread |
getThread(java.lang.String aName)
obtain a reference to the specified PRThread instance. |
java.util.Set |
getThreadNames()
Returns a set of Strings for the PRThread objects contained within this Requestor. |
java.lang.String |
getTypeName()
Return the associated type name. |
boolean |
hasPersonalRuleset()
|
boolean |
isIgnoreDBByteGovernor()
Check if the ignore DBByte Governor flag value |
void |
queueBatchActivity(java.lang.String aClassName,
java.lang.String aActivityName,
ParameterPage aParamPage)
Queue an activity to be executed within a new batch requestor Note that v2 permitted the specification of another "dequeue" activity, but there are no uses of that parameter in existing code, so it is omitted. |
java.lang.Object |
queueBatchActivity(java.lang.String aClassName,
java.lang.String aActivityName,
ParameterPage aParamPage,
ClipboardPage aPrimaryPage)
Queue an activity to be executed within a new batch requestor |
java.lang.Object |
queueBatchActivity(java.lang.String aClassName,
java.lang.String aActivityName,
ParameterPage aParamPage,
ClipboardPage aPrimaryPage,
java.util.List aOtherPages,
boolean aIsDetachedTask)
Queue an activity to be executed within a new batch requestor |
void |
removeAllPages(java.util.Vector aKeepPages)
Remove all pages from Requestor level, except for those listed in aKeepPages |
void |
setIgnoreDBByteGovernor(boolean aIgnoreDBByteGovernor)
Set the ignore DBByte Governor flag value |
void |
setSuppressShowMethod(boolean value)
Set the 'suppress show method' flag |
void |
stopBatchActivities()
Send the stop command to all children of this requestor. |
void |
stopBatchActivity(java.lang.Object aChildIdentifier)
Ask a child requestor and all of its children to stop as soon as possible. |
void |
waitOnAllBatchActivities()
Wait forever for all batch activities to complete. |
void |
waitOnAllBatchActivities(long aTimeout)
Wait for all children requestors to complete their activities, or for a timeout, whichever comes first. |
void |
waitOnBatchActivity(java.lang.Object aChildIdentifier)
Wait forever for a child requestor to finish. |
void |
waitOnBatchActivity(java.lang.Object aChildIdentifier,
long aTimeout)
Wait for a child requestor to finish, or for some timeout to be reached. |
Methods inherited from interface com.pega.pegarules.pub.context.PageDirectory |
---|
findName, getPage, getPageNames, getScope, pageExists, removePage, removePage, renamePage |
Field Detail |
---|
static final java.lang.String COPYRIGHT
static final java.lang.String VERSION
static final java.lang.String sDefaultThread
static final java.lang.String sTypeApplication
static final java.lang.String sTypeBatch
static final java.lang.String sTypeBrowser
static final java.lang.String sTypePortal
static final java.lang.String sNewThread
static final int ORIENTATION_LEFT_TO_RIGHT
static final int ORIENTATION_RIGHT_TO_LEFT
static final int ORIENTATION_UNKNOWN
Method Detail |
---|
PRThread getThread(java.lang.String aName)
aName
- name of Thread
ClipboardPage getRequestorPage()
PRAuthorization getAuthorizationHandle()
void queueBatchActivity(java.lang.String aClassName, java.lang.String aActivityName, ParameterPage aParamPage)
aClassName
- class of ActivityaActivityName
- name of activityaParamPage
- parameter page for activtyjava.lang.Object queueBatchActivity(java.lang.String aClassName, java.lang.String aActivityName, ParameterPage aParamPage, ClipboardPage aPrimaryPage)
aClassName
- Class to which Activity belongsaActivityName
- Name of Activity to executeaParamPage
- Parameter page for activty. May be null.aPrimaryPage
- Primary page for the activity. Must be of the
type Code-Pega-Child, or null.
java.lang.Object queueBatchActivity(java.lang.String aClassName, java.lang.String aActivityName, ParameterPage aParamPage, ClipboardPage aPrimaryPage, java.util.List aOtherPages, boolean aIsDetachedTask) throws IncompatibleClassException
aClassName
- Class to which Activity belongsaActivityName
- Name of Activity to executeaParamPage
- Parameter page for activty. May be null.aPrimaryPage
- Primary page for the activity. Must be of the
type Code-Pega-Child, or null.aOtherPages
- list of ClipboardPages (which must be top level
named pages). Copies of these pages will be placed into the agents
clipboard before execution of this activity. May be null.aIsDetachedTask
- true if detached, false if a child requestor task
IncompatibleClassException
- The primary page is not of Code-Pega-Child classvoid stopBatchActivity(java.lang.Object aChildIdentifier) throws PRNoSuchChildException
Note that the caller should still follow this with a call to waitOnAllBatchActivities()
in order to properly finish its task.
aChildIdentifier
- The object handle representing a child requestor
PRNoSuchChildException
- The given child is not valid.void stopBatchActivities()
Unlike stopBatchActivity(Object)
, it is not necessary to call waitOnAllBatchActivities()
to cleanup the child requestors.
void waitOnBatchActivity(java.lang.Object aChildIdentifier) throws PRNoSuchChildException
aChildIdentifier
- The child to wait for
PRNoSuchChildException
- The given child is not valid.void waitOnBatchActivity(java.lang.Object aChildIdentifier, long aTimeout) throws PRNoSuchChildException, PRTimeoutExpiredException
aChildIdentifier
- The child requestor to wait foraTimeout
- the number of milliseonds to wait for the child. If the
timeout is reached before the child is done, a PRTimeoutOccurredException is
thrown
PRNoSuchChildException
- The given child is not valid.
PRTimeoutExpiredException
- Thrown when specified amount of time runs
out and the child has yet to terminatevoid waitOnAllBatchActivities()
void waitOnAllBatchActivities(long aTimeout) throws PRTimeoutExpiredException
aTimeout
-
PRTimeoutExpiredException
- when any of the activites fails
to complete before the timeout.void removeAllPages(java.util.Vector aKeepPages)
aKeepPages
- a list of page names that should be retained.java.lang.String getDiagID()
java.lang.String getId()
java.lang.String getTypeName()
boolean getSuppressShowMethod()
void setSuppressShowMethod(boolean value)
value
- new value for the flagPRNode getNode()
PRNode
instance associated with this Requestor.PAL getPAL()
PAL
instance)java.util.Set getThreadNames()
boolean hasPersonalRuleset()
true
if this requestor's rulesetlist contains a personal rulesetjava.lang.String getEncodedUserId()
java.lang.String getEncodedRuleSetList()
java.lang.String getProcessedRuleSetList()
int getTextOrientation()
void setIgnoreDBByteGovernor(boolean aIgnoreDBByteGovernor)
aIgnoreDBByteGovernor
- value for the flagboolean isIgnoreDBByteGovernor()
java.lang.String getLocale()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |