Auditor Service Cover
Code Insight 6.14.2 SP2
The AuditorServiceCover is the entry point for auditor APIs related to groups and tags. To use these APIs, the AuditorServiceCover must be instantiated by passing the Code Insight Core Server IP address. An example is shown below.
Constructor
AuditorServiceCover(String Code InsightCoreServerIpAddress)
Sample Code
import com.Code Insight.script.AuditorServiceCover;
// Enter core server IP address
String coreServerIpAddress = System.getProperty("core.server.url");
AuditorServiceCover auditCover = new AuditorServiceCover(coreServerIpAddress);
if (auditCover != null) {
try {
// Print all groups for project
int projectId = 1;
auditCover.getGroupIds(projectId).each {
groupId ->
println("Group: " + auditCover.getGroupDetails(groupId).getName());
}
} catch (Exception e) {
e.printStackTrace();
}
} else {
println("Unable to connect to Code Insight Core server: " + coreServerIpAddress);
}