set names and fixed user id bug
This commit is contained in:
parent
d26d75b9fa
commit
797930a0e4
|
@ -8,6 +8,8 @@
|
|||
<groupId>com.idcanet.vasc</groupId>
|
||||
<artifactId>vasc-backend-jpa</artifactId>
|
||||
<version>0.3.3-SNAPSHOT</version>
|
||||
<name>vasc-backend-jpa</name>
|
||||
<description>vasc-backend-jpa</description>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.idcanet.vasc</groupId>
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
<groupId>com.idcanet.vasc</groupId>
|
||||
<artifactId>vasc-backend-ldap</artifactId>
|
||||
<version>0.3.3-SNAPSHOT</version>
|
||||
|
||||
<name>vasc-backend-ldap</name>
|
||||
<description>vasc-backend-ldap</description>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.idcanet.vasc</groupId>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
<groupId>com.idcanet.vasc</groupId>
|
||||
<artifactId>vasc-core</artifactId>
|
||||
<version>0.3.3-SNAPSHOT</version>
|
||||
<name>vasc-core</name>
|
||||
<description>vasc-core</description>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.idcanet.x4o</groupId>
|
||||
|
|
|
@ -50,6 +50,9 @@ public class SetParameterBackendListener implements VascEntryBackendEventListene
|
|||
if (value==null) {
|
||||
value="id";
|
||||
}
|
||||
if (value.isEmpty()) {
|
||||
value="id";
|
||||
}
|
||||
if ("id".equals(value)) {
|
||||
if ("int".equals(type)) {
|
||||
state.setDataParameter(name, userId.intValue());
|
||||
|
|
|
@ -28,15 +28,12 @@ package com.idcanet.vasc.impl.x4o;
|
|||
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.idcanet.vasc.core.VascController;
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
|
||||
import com.idcanet.x4o.element.AbstractElement;
|
||||
import com.idcanet.x4o.element.ElementException;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Handles the diffent EntryParameter xml tags
|
||||
*
|
||||
* @author Willem Cazander
|
||||
* @version 1.0 Mar 24, 2009
|
||||
|
@ -54,19 +51,19 @@ public class SetParameterElement extends AbstractElement {
|
|||
String value = getAttributes().get("value");
|
||||
String type = getAttributes().get("type");
|
||||
VascEntry entry = (VascEntry)getParent().getElementObject();
|
||||
VascController cont = VascParser.getVascController(getElementContext());
|
||||
logger.fine("Setting parameter name: "+name+" value: "+value+" type: "+type);
|
||||
|
||||
if ("setUserParameter".equals(getElementClass().getTag())) {
|
||||
if (value==null) {
|
||||
value="id"; // default to ids
|
||||
}
|
||||
entry.setEntryParameter(name, "userPara:"+type+":"+value);
|
||||
return;
|
||||
}
|
||||
|
||||
if (type==null) {
|
||||
entry.setEntryParameter(name, value);
|
||||
return;
|
||||
}
|
||||
|
||||
if ("long".equalsIgnoreCase(type)) {
|
||||
entry.setEntryParameter(name, new Long(value));
|
||||
return;
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
<groupId>com.idcanet.vasc</groupId>
|
||||
<artifactId>vasc-ejb3</artifactId>
|
||||
<version>0.3.3-SNAPSHOT</version>
|
||||
<name>vasc-ejb3</name>
|
||||
<description>vasc-ejb3</description>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.idcanet.vasc</groupId>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
<groupId>com.idcanet.vasc</groupId>
|
||||
<artifactId>vasc-frontend-swing</artifactId>
|
||||
<version>0.3.3-SNAPSHOT</version>
|
||||
<name>vasc-frontend-swing</name>
|
||||
<description>vasc-frontend-swing</description>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.idcanet.vasc</groupId>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
<groupId>com.idcanet.vasc</groupId>
|
||||
<artifactId>vasc-frontend-swt</artifactId>
|
||||
<version>0.3.3-SNAPSHOT</version>
|
||||
<name>vasc-frontend-swt</name>
|
||||
<description>vasc-frontend-swt</description>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.idcanet.vasc</groupId>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
<groupId>com.idcanet.vasc</groupId>
|
||||
<artifactId>vasc-frontend-web-jsf</artifactId>
|
||||
<version>0.3.3-SNAPSHOT</version>
|
||||
<name>vasc-frontend-web-jsf</name>
|
||||
<description>vasc-frontend-web-jsf</description>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.idcanet.vasc</groupId>
|
||||
|
|
Loading…
Reference in a new issue