|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.ram.common.data.PolicyResult
public class PolicyResult
Contains the results of running a policy on an asset
| Field Summary | |
|---|---|
static int |
RETURN_CODE_ERROR
Policy compliance error |
static int |
RETURN_CODE_PENDING
Policy result pending |
static int |
RETURN_CODE_SUCCESS
Policy compliance success |
static int |
RETURN_CODE_SUCCESS_FORCE_APPROVE
Policy result success force approve. |
static int |
RETURN_CODE_WARNING
Policy compliance warning |
| Constructor Summary | |
|---|---|
PolicyResult()
|
|
| Method Summary | |
|---|---|
PolicyResultDetail[] |
getDetails()
|
java.lang.String |
getMessage()
|
Policy |
getPolicy()
The policy this result is associated with |
java.lang.String |
getResult()
Deprecated. never used |
int |
getReturnCode()
The overall return for for the policy result Values include: RETURN_CODE_SUCCESS_FORCE_APPROVE RETURN_CODE_SUCCESS RETURN_CODE_WARNING RETURN_CODE_ERROR RETURN_CODE_PENDING |
java.util.Date |
getTime()
|
boolean |
isObsolete()
A result is obsolete once it has been re-run in the current state. |
void |
setDetails(PolicyResultDetail[] details)
|
void |
setMessage(java.lang.String message)
|
void |
setObsolete(boolean obsolete)
A result is obsolete once it has been re-run in the current state. |
void |
setPolicy(Policy policy)
The policy this result is associated with |
void |
setResult(java.lang.String result)
Deprecated. never used |
void |
setReturnCode(int returnCode)
The overall return for for the policy result Values include: RETURN_CODE_SUCCESS_FORCE_APPROVE RETURN_CODE_SUCCESS RETURN_CODE_WARNING RETURN_CODE_ERROR RETURN_CODE_PENDING |
void |
setTime(java.util.Date time)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int RETURN_CODE_SUCCESS_FORCE_APPROVE
Will bypass review process if all other policies are at least WARNING or better.
public static final int RETURN_CODE_SUCCESS
public static final int RETURN_CODE_WARNING
public static final int RETURN_CODE_ERROR
public static final int RETURN_CODE_PENDING
| Constructor Detail |
|---|
public PolicyResult()
| Method Detail |
|---|
public java.lang.String getResult()
public void setResult(java.lang.String result)
result - The result to set.public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message - The message to set.public PolicyResultDetail[] getDetails()
public void setDetails(PolicyResultDetail[] details)
details - The details to set.public int getReturnCode()
public void setReturnCode(int returnCode)
returnCode - The returnCode to set.public Policy getPolicy()
public void setPolicy(Policy policy)
policy - The policy to set.public boolean isObsolete()
public void setObsolete(boolean obsolete)
obsolete - The obsolete to set.public java.util.Date getTime()
public void setTime(java.util.Date time)
time - The time to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||