I created a security policy and I want the admin to run a batch that can disable it...
[SysOperationJournaledParametersAttribute(true)]
final class DYNADDVDisableBatch extends SysOperationServiceController
{
public ClassDescription defaultCaption()
{
return "Disable Data Validation";
}
public void new()
{
super(classStr(DYNADataValidationClass),methodStr(DYNADataValidationClass,disableXDS),SysOperationExecutionMode::Synchronous);
}
public static DYNADDVDisableBatch construct(SysOperationExecutionMode _executionMode = SysOperationExecutionMode::Synchronous)
{
DYNADDVDisableBatch controller = new DYNADDVDisableBatch();
controller.parmExecutionMode(_executionMode);
return controller;
}
public static void main(Args _args)
{
DYNADDVDisableBatch controller = DYNADDVDisableBatch::construct();
controller.parmArgs(_args);
controller.startOperation();
}
}
and this is disableXDS method code:
public void disableXDS()
{
unchecked(Uncheck::XDS)
{
}
}
what's missing?!