Manuel Tauber 2024-04-17 14:17:42 +02:00
parent 6c0143d419
commit 22bac99689
3 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ public class Approval {
* @throws ARException If an error occurs during the update * @throws ARException If an error occurs during the update
*/ */
public String update(ApprovalUpdateRequest request) throws ARException { public String update(ApprovalUpdateRequest request) throws ARException {
remedyJavaAPI.impersonateUser("btwien_test"); remedyJavaAPI.impersonateUser("WuiQualityKV");
String action = "APPROVAL"; String action = "APPROVAL";
var queryUpdate = new Query.QueryBuilder("ASF:CHG_CAL_Interactions") var queryUpdate = new Query.QueryBuilder("ASF:CHG_CAL_Interactions")

View File

@ -55,7 +55,7 @@ public class Presets {
.build(); .build();
this.presets = new ArrayList<>(); this.presets = new ArrayList<>();
api.impersonateUser("btwien_test"); api.impersonateUser("WuiQualityKV");
} }
public Object initPresets() throws ARException, NotFoundError { public Object initPresets() throws ARException, NotFoundError {

View File

@ -51,7 +51,7 @@ public class SupportGroup {
*/ */
public void querySupportGroups(RemedyJavaAPI api) throws ARException, NotFoundError { public void querySupportGroups(RemedyJavaAPI api) throws ARException, NotFoundError {
api.impersonateUser("btwien_test"); api.impersonateUser("WuiQualityKV");
applicationLogger.info("\n\n\nRequest: querySupportGroups (Initial)\nUser: " + api.getUser() + "\nAdmin? " applicationLogger.info("\n\n\nRequest: querySupportGroups (Initial)\nUser: " + api.getUser() + "\nAdmin? "
+ (api.isAdministrator() ? "Yes" : "No")); + (api.isAdministrator() ? "Yes" : "No"));
@ -112,7 +112,7 @@ public class SupportGroup {
* @throws ARException if an error occurs during the query * @throws ARException if an error occurs during the query
*/ */
public void queryUserSupportGroup(RemedyJavaAPI api) throws ARException { public void queryUserSupportGroup(RemedyJavaAPI api) throws ARException {
api.impersonateUser("btwien_test"); api.impersonateUser("WuiQualityKV");
var querySupportGroups = new Query.QueryBuilder("CTM:Support Group Association") var querySupportGroups = new Query.QueryBuilder("CTM:Support Group Association")
.addFieldId("SupportGroupId", 1000000079).build(); .addFieldId("SupportGroupId", 1000000079).build();