Add vpp token field

mssqldbscriptfix
osh 1 year ago
parent b576f3d9bb
commit dd7910268e

@ -26,6 +26,7 @@ public class DepConfig {
private String accessToken; private String accessToken;
private String accessSecret; private String accessSecret;
private String accessTokenExpiry; private String accessTokenExpiry;
private String vppToken;
public String getAgentPackageName() { public String getAgentPackageName() {
return agentPackageName; return agentPackageName;
@ -59,6 +60,14 @@ public class DepConfig {
this.accessToken = accessToken; this.accessToken = accessToken;
} }
public String getVppToken() {
return vppToken;
}
public void setVppToken(String vppToken) {
this.vppToken = vppToken;
}
public String getAccessSecret() { public String getAccessSecret() {
return accessSecret; return accessSecret;
} }

@ -174,7 +174,7 @@ public class GenericVppApplicationDAOImpl extends AbstractDAOImpl implements Vp
+ "CREATED_TIME, " + "CREATED_TIME, "
+ "LAST_UPDATED_TIME, " + "LAST_UPDATED_TIME, "
+ "MANAGED_ID, " + "MANAGED_ID, "
+ "TEMP_PASSWORD " + "TEMP_PASSWORD, "
+ "DM_USERNAME " + "DM_USERNAME "
+ "FROM AP_VPP_USER " + "FROM AP_VPP_USER "
+ "WHERE DM_USERNAME = ? AND TENANT_ID = ?"; + "WHERE DM_USERNAME = ? AND TENANT_ID = ?";

@ -591,7 +591,7 @@ public class VppApplicationManagerImpl implements VPPApplicationManager {
Gson g = new Gson(); Gson g = new Gson();
DepConfig depConfigs = g.fromJson(metadata.getMetaValue(), DepConfig.class); DepConfig depConfigs = g.fromJson(metadata.getMetaValue(), DepConfig.class);
token = depConfigs.getAccessToken(); token = depConfigs.getVppToken();
return token; return token;
} }
}catch (MetadataManagementException e) { }catch (MetadataManagementException e) {

Loading…
Cancel
Save