Commit 8a9071c0 authored by Matija Obreza's avatar Matija Obreza

genesys-client-api 0.0.2-SNAPSHOT

parent 4e92aa9d
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>genesys.client-api</name>
<name>genesys.genesys-client-api</name>
<comment></comment>
<projects>
</projects>
......
......@@ -3,12 +3,13 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.genesys2</groupId>
<artifactId>client-api</artifactId>
<version>0.0.1</version>
<artifactId>genesys-client-api</artifactId>
<version>0.0.2-SNAPSHOT</version>
<name>Genesys Client</name>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.target>1.6</jdk.target>
<jdk.source>1.6</jdk.source>
<show.deprecations>true</show.deprecations>
......
......@@ -67,11 +67,11 @@ public class GenesysClient {
genesysApi.setBaseUrl(baseUrl);
return this;
}
public void setGenesysApi(GenesysApi genesysApi) {
this.genesysApi = genesysApi;
}
public GenesysApi getGenesysApi() {
return genesysApi;
}
......@@ -399,4 +399,16 @@ public class GenesysClient {
public String kpiExecute(long id) throws OAuthAuthenticationException, PleaseRetryException, GenesysApiException {
return query(Verb.POST, "/kpi/execution/" + id + "/execute", null, null);
}
public String deleteDimension(long id) throws OAuthAuthenticationException, PleaseRetryException, GenesysApiException {
return query(Verb.DELETE, "/kpi/dimension/" + id, null, null);
}
public String deleteExecution(long id) throws OAuthAuthenticationException, PleaseRetryException, GenesysApiException {
return query(Verb.DELETE, "/kpi/execution/" + id, null, null);
}
public String deleteParameter(String name) throws OAuthAuthenticationException, PleaseRetryException, GenesysApiException {
return query(Verb.DELETE, "/kpi/parameter/" + name, null, null);
}
}
......@@ -5,6 +5,7 @@ import java.util.List;
public class KPIExecution {
public String title;
public long parameterId;
public String parameter;
public List<KPIExecutionDimension> dimensions = new ArrayList<KPIExecutionDimension>();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment