public class PolicyActionContext extends Object implements Comparable
The context consists of key attributes from a PolicyListElement that references the PolicyAction, the containing PolicyList, and how that PolicyList became associated with a target object.
Note: this class has a natural ordering that is inconsistent with equals.
Modifier and Type | Field and Description |
---|---|
static int |
SUBSORTSEQUENCE_CLASSPOLICYLIST
The PolicyAction was introduced by the ClassPolicyList of the target
object's classobject.
|
static int |
SUBSORTSEQUENCE_POLICYLIST
The PolicyAction was introduced by the PolicyList of the target object.
|
Modifier | Constructor and Description |
---|---|
protected |
PolicyActionContext(S_PolicyListElement ple)
Constructs a PolicyActionContext from a PolicyListElement.
|
|
PolicyActionContext(String operation,
String policyAction,
int executionMode,
String[] filters,
long sortSequence,
int subsortSequence)
Constructs a PolicyActionContext in bootstrap mode.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object pac)
Determines the order of this PolicyActionContext with respect to another.
|
protected static PolicyAction |
constructPolicyAction(String className)
Constructs a PolicyAction specified by fully-qualified classname.
|
int |
getExecutionMode()
Gets the execution mode.
|
String[] |
getFilters()
Gets the input filters.
|
String |
getOperation()
Gets the operation.
|
String |
getPolicyAction()
Gets the fully-qualified classname of the PolicyAction.
|
protected static PolicyAction |
getPolicyAction(S_LibrarySession session,
String className)
Finds or Constructs a PolicyAction specified by fully-qualified classname.
|
PolicyListElementInterface |
getPolicyListElement(LibrarySessionInterface session)
Gets the PolicyListElement.
|
long |
getSortSequence()
Gets the sort sequence.
|
int |
getSubSortSequence()
Gets the sub-sort sequence.
|
void |
setSubSortSequence(int subSortSequence)
Sets the sub-sort sequence.
|
public static int SUBSORTSEQUENCE_POLICYLIST
public static int SUBSORTSEQUENCE_CLASSPOLICYLIST
protected PolicyActionContext(S_PolicyListElement ple) throws IfsException
ple
- the PolicyListElementIfsException
- if the operation failspublic PolicyActionContext(String operation, String policyAction, int executionMode, String[] filters, long sortSequence, int subsortSequence) throws IfsException
operation
- operation namepolicyAction
- fully qualified class name of the PolicyActionexecutionMode
- execution modefilters
- execution filterssortSequence
- sort sequencesubsortSequence
- subsort sequenceIfsException
- if the operation failspublic PolicyListElementInterface getPolicyListElement(LibrarySessionInterface session) throws IfsException
session
- the session contextIfsException
- if the operation failspublic String getOperation() throws IfsException
IfsException
- if the operation failspublic long getSortSequence() throws IfsException
IfsException
- if the operation failspublic int getSubSortSequence() throws IfsException
IfsException
- if the operation failspublic String[] getFilters() throws IfsException
IfsException
- if the operation failspublic int getExecutionMode() throws IfsException
IfsException
- if the operation failspublic String getPolicyAction() throws IfsException
IfsException
- if the operation failspublic void setSubSortSequence(int subSortSequence) throws IfsException
subSortSequence
- the sub-sort sequenceIfsException
- if the operation failsprotected static PolicyAction getPolicyAction(S_LibrarySession session, String className) throws IfsException
session
- the session contextclassName
- the fully-qualified class name of the PolicyActionIfsException
- (IFS-36033) if the operation failsprotected static PolicyAction constructPolicyAction(String className) throws IfsException
className
- the fully-qualified class name of the PolicyActionIfsException
- (IFS-36033) if the operation failspublic int compareTo(Object pac) throws ClassCastException
Note: this class has a natural ordering that is inconsistent with equals.
compareTo
in interface Comparable
pac
- the PolicyActionContext against which to compareClassCastException
- if pac is not a PolicyActionContextCopyright © 2023. All rights reserved.