|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.ram.policy.Policy
com.ibm.ram.policy.AssetPolicy
com.ibm.ram.policy.PendingTimerPolicy
public abstract class PendingTimerPolicy
Subclasses of this policy can run on a given interval specified in the policy configuration.
| Nested Class Summary | |
|---|---|
protected static class |
PendingTimerPolicy.Intervals
|
| Nested classes/interfaces inherited from class com.ibm.ram.policy.Policy |
|---|
Policy.CustomReturnCode |
| Field Summary | |
|---|---|
protected static java.lang.String[] |
INTERVAL_TYPE_VALUES
|
| Fields inherited from class com.ibm.ram.policy.AssetPolicy |
|---|
ARTIFACT_ACCESSOR_KEY, MANIFEST_ACCESSOR_KEY, POLICY_CONTEXT_KEY, USER_KEY, WHEN_ACCESSOR_KEY |
| Constructor Summary | |
|---|---|
PendingTimerPolicy()
|
|
| Method Summary | |
|---|---|
abstract ConfigurationDetails[] |
doGetConfigurationDetails(java.util.Locale locale)
Subclasses should implement doGetConfigurationDetails(Locale locale) instead of getConfigurationDetails(Locale locale) |
abstract Result |
doTest()
Subclasses should implement doTest instead of test method. |
ConfigurationDetails[] |
getConfigurationDetails()
Get the custom fields of the policy |
ConfigurationDetails[] |
getConfigurationDetails(java.util.Locale locale)
Get the custom fields of the policy |
protected void |
setExecutionInterval(PendingTimerPolicy.Intervals intervalType,
java.lang.String intervalValue)
Allow implementers to reset the pending timer interval instead of the configured interval if they need to be a different time. |
Result |
test()
Run the policy's compliance test |
| Methods inherited from class com.ibm.ram.policy.AssetPolicy |
|---|
getArtifactAccessor, getEvent, getManifestAccessor, getPolicyContext, getUser, initialize |
| Methods inherited from class com.ibm.ram.policy.Policy |
|---|
getCustomReturnCodes, getDescription, getDescription, getID, getName, getName, getParameters, getPolicyGovernor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static java.lang.String[] INTERVAL_TYPE_VALUES
| Constructor Detail |
|---|
public PendingTimerPolicy()
| Method Detail |
|---|
public final Result test()
PolicyNote: This will be called with the Extension point's classloader as the thread context class loader.
test in class PolicyResult of the compliance testpublic abstract Result doTest()
public final ConfigurationDetails[] getConfigurationDetails()
Policy
getConfigurationDetails in class Policypublic final ConfigurationDetails[] getConfigurationDetails(java.util.Locale locale)
Policy
getConfigurationDetails in class Policylocale - The Locale of the user making the request.
public abstract ConfigurationDetails[] doGetConfigurationDetails(java.util.Locale locale)
locale -
protected void setExecutionInterval(PendingTimerPolicy.Intervals intervalType,
java.lang.String intervalValue)
intervalType - intervalValue -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||