new dev configs
parent
a028f782fd
commit
56e08ede2b
|
|
@ -41,10 +41,10 @@ public class RemedyJavaAPI {
|
|||
*/
|
||||
public RemedyJavaAPI() throws ARException, NotFoundError {
|
||||
server = new ARServerUser();
|
||||
server.setServer("itsm-app-dev.asfinag.at");
|
||||
server.setServer("itsm-app-dev-neu.asfinag.at");
|
||||
server.setUser("changecalender_integration");
|
||||
server.setPassword("VXrvLm4q#8P#MXthfZNc");
|
||||
server.setPort(50000);
|
||||
server.setPort(46262);
|
||||
this.connect();
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public class Approval {
|
|||
* @throws ARException If an error occurs during the update
|
||||
*/
|
||||
public String update(ApprovalUpdateRequest request) throws ARException {
|
||||
remedyJavaAPI.impersonateUser("ext_StanzPa");
|
||||
remedyJavaAPI.impersonateUser("btwien_test");
|
||||
String action = "APPROVAL";
|
||||
|
||||
var queryUpdate = new Query.QueryBuilder("ASF:CHG_CAL_Interactions")
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public class Presets {
|
|||
.build();
|
||||
|
||||
this.presets = new ArrayList<>();
|
||||
api.impersonateUser("ext_StanzPa");
|
||||
api.impersonateUser("btwien_test");
|
||||
}
|
||||
|
||||
public Object initPresets() throws ARException, NotFoundError {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public class SupportGroup {
|
|||
*/
|
||||
public void querySupportGroups(RemedyJavaAPI api) throws ARException, NotFoundError {
|
||||
|
||||
api.impersonateUser("ext_StanzPa");
|
||||
api.impersonateUser("btwien_test");
|
||||
var querySupportGroups = new Query.QueryBuilder(formAssoc)
|
||||
.addFieldId("SupportGroup", 1000000015)
|
||||
.addFieldId("SupportGroupId", 1000000079)
|
||||
|
|
@ -86,13 +86,12 @@ public class SupportGroup {
|
|||
throw new NotFoundError("No support groups found in this context");
|
||||
}
|
||||
|
||||
System.out.println("NEUE ABFRAGE");
|
||||
api.impersonateUser("ext_StanzPa");
|
||||
var a = new Query.QueryBuilder("CTM:PeopleUserSupportGroupFunctionalRoleLookup")
|
||||
.addFieldId("SupportGroupId", 1000000015).build();
|
||||
// System.out.println("NEUE ABFRAGE");
|
||||
// var a = new Query.QueryBuilder("CTM:PeopleUserSupportGroupFunctionalRoleLookup")
|
||||
// .addFieldId("SupportGroupId", 1000000015).build();
|
||||
|
||||
var q = api.queryFieldsById("\'1000000015\' != \"_\"", a.getFieldIds(), a.getFormName(), null, 0, 0);
|
||||
System.out.println(q);
|
||||
// var q = api.queryFieldsById("\'1000000015\' != \"_\"", a.getFieldIds(), a.getFormName(), null, 0, 0);
|
||||
// System.out.println(q);
|
||||
|
||||
|
||||
api.freeImpersonatedUser();
|
||||
|
|
@ -107,7 +106,7 @@ public class SupportGroup {
|
|||
* @throws ARException if an error occurs during the query
|
||||
*/
|
||||
public void queryUserSupportGroup(RemedyJavaAPI api) throws ARException {
|
||||
api.impersonateUser("ext_StanzPa");
|
||||
api.impersonateUser("btwien_test");
|
||||
|
||||
var querySupportGroups = new Query.QueryBuilder("CTM:Support Group Association")
|
||||
.addFieldId("SupportGroupId", 1000000079).build();
|
||||
|
|
|
|||
Loading…
Reference in New Issue