|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ViolationReport
An interface for setting additional properties of a reported Audit violation. The violation reporting methods in AuditContext only allow a client to specify the rule and location properties of a violation. To allow a client to specify additional properties--variation, parameters, transforms, recommended transforms, focus location, and related location--the AuditContext report methods return an instance of this interface to the client.
| Method Summary | |
|---|---|
void |
addConstructParameter(java.lang.String name, ModelAdapter model, java.lang.Object construct)Adds a construct in a model as a parameter to the violation. |
void |
addConstructParameter(java.lang.String name, java.lang.Object construct)Adds a construct as a parameter to the violation. |
void |
addParameter(java.lang.String name, java.lang.Object value)Adds a parameter to the violation. |
void |
hideAllTransforms()Hides all the tranforms for this violation. |
void |
hideTransform(Transform transform)Hides a transform for this violation. |
void |
setDefaultTransform(Transform transform)Sets the default transform for this violation. |
void |
setFocusLocation(Location location)Sets the location at the focus of the violation. |
void |
setFocusLocation(java.lang.Object construct)Sets the construct at the focus of the violation. |
void |
setTransformFocusLocation(Transform transform, Location location)Sets the focus location of a transform for this violation. |
void |
setTransformFocusLocation(Transform transform, java.lang.Object construct)Sets the focus location of a transform for this violation. |
void |
setVariation(java.lang.String name)Sets the name of the rule variation which applies to this violation. |
void |
showTransform(Transform transform)Shows a transform for this violation. |
| Method Detail |
|---|
void addParameter(java.lang.String name,
java.lang.Object value)
void addConstructParameter(java.lang.String name,
java.lang.Object construct)
Locations to track constructs over time. This method is convenience method for:
addParameter(name, context.getModelAdapter().getLocation(construct));
Parameters:name - the name of the parameter.construct - the construct that is the intended parameter value.addParameter(java.lang.String, java.lang.Object)
void addConstructParameter(java.lang.String name,
ModelAdapter model,
java.lang.Object construct)
Locations to track constructs over time. This method is convenience method for:
model.beginRead(true);
try
{
addParameter(name, model.getLocation(construct));
}
finally
{
model.endRead(true);
}
Parameters:name - the name of the parameter.model - the model containing the construct that is the intended parameter value.construct - the construct that is the intended parameter value.addParameter(java.lang.String, java.lang.Object)void setFocusLocation(java.lang.Object construct)
Violation.getLocation().void setFocusLocation(Location location)
Violation.getLocation().void setVariation(java.lang.String name)
name - The name of the variation: one of the names returned by Rule.variations.void hideAllTransforms()
void showTransform(Transform transform)
void hideTransform(Transform transform)
void setTransformFocusLocation(Transform transform,
java.lang.Object construct)
Violation.getFocusLocation().transform - The transform for which to set the applicability.construct - The construct in which to focus the transform.
void setTransformFocusLocation(Transform transform,
Location location)
Violation.getFocusLocation().transform - The transform for which to set the applicability.location - The location in which to focus the transform.void setDefaultTransform(Transform transform)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||