aboutsummaryrefslogtreecommitdiff
path: root/id/server/moa-id-commons
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2013-10-01 14:18:25 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2013-10-01 14:18:25 +0200
commita49bdd53d713a73f706d120f3e386a1ed71ae67e (patch)
tree55160b6d3157e29460c215fa40afccfe5731df5a /id/server/moa-id-commons
parent1dbab6b07a8996a7f291e0ddc4b02c0d3e15a64d (diff)
downloadmoa-id-spss-a49bdd53d713a73f706d120f3e386a1ed71ae67e.tar.gz
moa-id-spss-a49bdd53d713a73f706d120f3e386a1ed71ae67e.tar.bz2
moa-id-spss-a49bdd53d713a73f706d120f3e386a1ed71ae67e.zip
@MOA-ID ConfigWebTool:
--update commercial-register number input validator --some short bugfixes @MOA-ID: --update advanced statistic logger --Move Exception classes to a special package --add to Exception types
Diffstat (limited to 'id/server/moa-id-commons')
-rw-r--r--id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/ConfigurationDBRead.java7
-rw-r--r--id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/statistic/StatisticLog.java141
2 files changed, 145 insertions, 3 deletions
diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/ConfigurationDBRead.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/ConfigurationDBRead.java
index 038dcb6cf..058ad3ad0 100644
--- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/ConfigurationDBRead.java
+++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/ConfigurationDBRead.java
@@ -82,7 +82,12 @@ public class ConfigurationDBRead {
Logger.trace("No entries found.");
return null;
}
-
+
+ if (result.size() > 1) {
+ Logger.warn("OAIdentifier match to more then one DB-entry!");
+ return null;
+ }
+
return (OnlineApplication) result.get(0);
}
diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/statistic/StatisticLog.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/statistic/StatisticLog.java
index 7639fd29e..b725544f8 100644
--- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/statistic/StatisticLog.java
+++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/statistic/StatisticLog.java
@@ -35,12 +35,24 @@ public class StatisticLog implements Serializable{
@Column(name = "timestamp", nullable=false)
Date timestamp;
+ @Column(name = "OAID", unique=false)
+ private long oaID;
+
@Column(name = "OAURLPrefix", unique=false)
private String oaurlprefix;
+ @Column(name = "OAFriendlyName", unique=false)
+ private String oafriendlyName;
+
+ @Column(name = "OATarget", unique=false)
+ private String oatarget;
+
@Column(name = "BKUURL", unique=false)
private String bkuurl;
+ @Column(name = "BKUType", unique=false)
+ private String bkutype;
+
@Column(name = "isSSOLogin", unique=false)
private boolean ssosession;
@@ -53,15 +65,27 @@ public class StatisticLog implements Serializable{
@Column(name = "MandateType", unique=false)
private String mandatetype;
- @Column(name = "ProtocolSubType", unique=false)
- private String protocolsubtype;
+ @Column(name = "MandatorType", unique=false)
+ private String mandatortype;
+
+ @Column(name = "isPV", unique=false)
+ private boolean pv;
+
+ @Column(name = "PVOID", unique=false)
+ private String pvOID;
@Column(name = "ProtocolType", unique=false)
private String protocoltype;
+ @Column(name = "ProtocolSubType", unique=false)
+ private String protocolsubtype;
+
@Column(name = "ExceptionCode", unique=false)
private String errorcode;
+ @Column(name = "ExceptionType", unique=false)
+ private String errortype;
+
@Column(name = "ExceptionMessage", unique=false)
private String errormessage;
@@ -232,6 +256,119 @@ public class StatisticLog implements Serializable{
public void setBusinessservice(boolean businessservice) {
this.businessservice = businessservice;
}
+
+ /**
+ * @return the oaID
+ */
+ public long getOaID() {
+ return oaID;
+ }
+
+ /**
+ * @param oaID the oaID to set
+ */
+ public void setOaID(long oaID) {
+ this.oaID = oaID;
+ }
+
+ /**
+ * @return the oafriendlyName
+ */
+ public String getOafriendlyName() {
+ return oafriendlyName;
+ }
+
+ /**
+ * @param oafriendlyName the oafriendlyName to set
+ */
+ public void setOafriendlyName(String oafriendlyName) {
+ this.oafriendlyName = oafriendlyName;
+ }
+
+ /**
+ * @return the oatarget
+ */
+ public String getOatarget() {
+ return oatarget;
+ }
+
+ /**
+ * @param oatarget the oatarget to set
+ */
+ public void setOatarget(String oatarget) {
+ this.oatarget = oatarget;
+ }
+
+ /**
+ * @return the bkutype
+ */
+ public String getBkutype() {
+ return bkutype;
+ }
+
+ /**
+ * @param bkutype the bkutype to set
+ */
+ public void setBkutype(String bkutype) {
+ this.bkutype = bkutype;
+ }
+
+ /**
+ * @return the mandatortype
+ */
+ public String getMandatortype() {
+ return mandatortype;
+ }
+
+ /**
+ * @param mandatortype the mandatortype to set
+ */
+ public void setMandatortype(String mandatortype) {
+ this.mandatortype = mandatortype;
+ }
+
+ /**
+ * @return the pv
+ */
+ public boolean isPv() {
+ return pv;
+ }
+
+ /**
+ * @param pv the pv to set
+ */
+ public void setPv(boolean pv) {
+ this.pv = pv;
+ }
+
+ /**
+ * @return the pvOID
+ */
+ public String getPvOID() {
+ return pvOID;
+ }
+
+ /**
+ * @param pvOID the pvOID to set
+ */
+ public void setPvOID(String pvOID) {
+ this.pvOID = pvOID;
+ }
+
+ /**
+ * @return the errortype
+ */
+ public String getErrortype() {
+ return errortype;
+ }
+
+ /**
+ * @param errortype the errortype to set
+ */
+ public void setErrortype(String errortype) {
+ this.errortype = errortype;
+ }
+