incubator-hise-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r.@apache.org
Subject svn commit: r982262 [1/2] - in /incubator/hise/trunk: hise-services/src/main/java/org/apache/hise/dao/ hise-services/src/main/java/org/apache/hise/engine/jaxws/ hise-services/src/main/java/org/apache/hise/utils/ hise-services/src/test/java/org/apache/h...
Date Wed, 04 Aug 2010 14:22:35 GMT
Author: rr
Date: Wed Aug  4 14:22:33 2010
New Revision: 982262

URL: http://svn.apache.org/viewvc?rev=982262&view=rev
Log:
HISE-57: Task filtering feature (Thanks to PaweĊ‚ Byszewski)

Added:
    incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToBooleanConverter.java
    incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToConverter.java
    incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToConverterFabric.java
    incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToDateConverter.java
    incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToIntConverter.java
    incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToStringConverter.java
    incubator/hise/trunk/itest/filtering.xml
Modified:
    incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/dao/HISEDao.java
    incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/engine/jaxws/TaskOperationsImpl.java
    incubator/hise/trunk/hise-services/src/test/java/org/apache/hise/DaoTest.java

Modified: incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/dao/HISEDao.java
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/dao/HISEDao.java?rev=982262&r1=982261&r2=982262&view=diff
==============================================================================
--- incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/dao/HISEDao.java (original)
+++ incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/dao/HISEDao.java Wed
Aug  4 14:22:33 2010
@@ -19,8 +19,13 @@
 
 package org.apache.hise.dao;
 
+import java.text.DateFormat;
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
 import java.util.Date;
 import java.util.List;
+import java.util.StringTokenizer;
+import java.util.Vector;
 
 import javax.persistence.EntityManager;
 import javax.persistence.PersistenceException;
@@ -30,6 +35,9 @@ import org.apache.commons.lang.Validate;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.hise.dao.JpaQueryBuilder.JQBParam;
+import org.apache.hise.dao.Task.Status;
+import org.apache.hise.utils.StringToConverter;
+import org.apache.hise.utils.StringToConverterFabric;
 import org.springframework.orm.jpa.JpaCallback;
 import org.springframework.orm.jpa.JpaTemplate;
 import org.springframework.orm.jpa.support.JpaDaoSupport;
@@ -57,56 +65,138 @@ public class HISEDao extends JpaDaoSuppo
      * @param query
      * @return
      */
-    public List<Task> getUserTasks(final TaskQuery query) {
+    @SuppressWarnings("unchecked")
+	public List<Task> getUserTasks(final TaskQuery query) {
         
         Validate.notNull(query);
         
-        switch (query.getGenericHumanRole()) {
-        case ACTUALOWNER:
             return (List<Task>) getJpaTemplate().executeFind(new JpaCallback() {
                 public Object doInJpa(EntityManager em) throws PersistenceException {
                     
                     Validate.notNull(em);
+   
                     
-                    return em.createQuery("select distinct t from Task t where t.actualOwner
= :user order by t.id")
-                    .setParameter("user", query.getUser())
-                    .setMaxResults(query.getMaxTasks())
+                    return buildSQLQueryForTaskQuery( query, em).setMaxResults(query.getMaxTasks())
                     .getResultList();
+                    
                 }
+
+
             });
 
+    }
+	public static  Query buildSQLQueryForTaskQuery(TaskQuery query, EntityManager em) {
+//		int tan[] = new int[5];
+		Vector<Object> q= new Vector<Object>();
+		q.add("select distinct t from Task t, TaskOrgEntity e where ");//t.actualOwner = :user");
+		//q.add(new JQBParam("user", query.getUser()));
+		if(addStatuses(q, query))
+			q.add(" and ");
+		if(addGenericHumanRole(q, query))
+			q.add(" and ");
+		if(addCreatedOnClause(q, query))
+			q.add(" and ");
+		if(!addWhereClause(q, query))
+			if(q.size()>1) q.setSize(q.size()-1);
+		q.add(" order by t.id");
+		
+		return new JpaQueryBuilder().buildQuery(em, q.toArray());
+
+		
+	}
+    
+	private static boolean addWhereClause(Vector<Object> q, TaskQuery query) {
+		String clause=query.getWhereClause();
+    	if(clause==null) return false;
+    	return (createWhereClause(q, clause, "addition"));
+    	
+	}
+
+	private static boolean addGenericHumanRole(Vector<Object> q, TaskQuery query){
+        if(query.getGenericHumanRole()==null) return false;
+        switch (query.getGenericHumanRole()) {
+        case ACTUALOWNER:
+        			q.add(" t.actualOwner = :user");
+        			q.add(new JQBParam("user", query.getUser()));
+        			return true;
         case POTENTIALOWNERS:
         case BUSINESSADMINISTRATORS:
         case EXCLUDEDOWNERS:
-            return (List<Task>) getJpaTemplate().executeFind(new JpaCallback() {
-                public Object doInJpa(EntityManager em) throws PersistenceException {
-                    
-                    Validate.notNull(em);
-                    
-                    return new JpaQueryBuilder().buildQuery(em, 
-                            new Object[] {
-                            "select distinct t from Task t, TaskOrgEntity e where e.task
= t and (e.name = :user and e.type = :constUser",
-                            new JQBParam("user", query.getUser()),
-                            new JQBParam("constUser", TaskOrgEntity.OrgEntityType.USER),
-                            new JQBParam("groups", query.getUserGroups(), 
+        case TASKSTAKEHOLDERS:
+
+                            q.add(" e.task = t and (e.name = :user and e.type = :constUser");
+                            q.add(new JQBParam("user", query.getUser()));
+                            q.add(new JQBParam("constUser", TaskOrgEntity.OrgEntityType.USER));
+                            q.add( new JQBParam("groups", query.getUserGroups(), 
                                 new Object[] {
                                     " or e.name in (:groups) and e.type = :constGroup", 
                                     new JQBParam("constGroup", TaskOrgEntity.OrgEntityType.GROUP)
-                                }),
-                            ") and e.genericHumanRole = :role order by t.id",
-                            new JQBParam("role", query.getGenericHumanRole())
-                    })
-                    .setMaxResults(query.getMaxTasks())
-                    .getResultList();
-                }
-            });
-            
+                                }));
+                                
+                            q.add(") and e.genericHumanRole = :role");
+                            q.add(new JQBParam("role", query.getGenericHumanRole()));
+                            return true;
+   
         default:
             throw new IllegalStateException("generic human role not supported");
         }
-    }
-    
-    public List<Job> listJobs(final Date until, final int maxResult) {
+	}
+	
+	private static boolean createWhereClause(Vector<Object> q, String clause, String name){
+    	StringTokenizer st = new StringTokenizer(clause, "<>=", true);
+    	Vector<String> tokens=new Vector<String>();
+    	System.out.println("pawelfiltering clause:"+clause+"**name:"+name);
+    	String operands=new String("");
+    	String value=new String("");
+    	if(st.countTokens()<3) return false;
+    	String entity=st.nextToken();
+    	while(st.hasMoreTokens()){
+    			String token=st.nextToken();
+    			if(st.hasMoreTokens()) operands+=token;
+    			else value=token;
+    	}
+    	
+    	StringToConverter conv=StringToConverterFabric.createConverter(value);
+		Object temp=conv.convert(value);
+		
+		q.add(new JQBParam(name, temp,
+					new Object[] {
+            			" t."+entity+" "+operands+" :"+name, 
+        			})
+		);
+		return true;
+		
+	}
+	
+    private static boolean addCreatedOnClause(Vector<Object> q, TaskQuery query) {
+    	if(query.getCreatedOnClause()==null)
+    		return false;
+    	String clause = new String("createdOn"+query.getCreatedOnClause());
+    	return createWhereClause(q, clause, "createdOn");
+    	
+	}
+	
+	
+    private static boolean addStatuses(Vector<Object> q, TaskQuery query) {
+    	if(!query.getStatuses().isEmpty()){
+    		q.add(" ( ");
+    		for(int i=0; i<query.getStatuses().size(); ++i){
+    			q.add(new JQBParam("status"+i, Task.Status.fromValue(query.getStatuses().get(i).name()),
+    					new Object[] {
+                			" t.status = :status"+i, 
+            			})
+    			);
+    			if(i<query.getStatuses().size()-1) q.add(" or ");
+    			
+    		}
+    		q.add(" ) ");
+    		return true;
+    	}
+    	return false;
+		
+	}
+
+	public List<Job> listJobs(final Date until, final int maxResult) {
         return (List<Job>) getJpaTemplate().executeFind(new JpaCallback() {
             public Object doInJpa(EntityManager em) throws PersistenceException {
                 return em.createQuery("select j from Job j where j.fire < :until order
by j.fire")

Modified: incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/engine/jaxws/TaskOperationsImpl.java
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/engine/jaxws/TaskOperationsImpl.java?rev=982262&r1=982261&r2=982262&view=diff
==============================================================================
--- incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/engine/jaxws/TaskOperationsImpl.java
(original)
+++ incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/engine/jaxws/TaskOperationsImpl.java
Wed Aug  4 14:22:33 2010
@@ -137,7 +137,10 @@ public class TaskOperationsImpl implemen
         query.setUser(user);
         query.setUserGroups(hiseEngine.getHiseUserDetails().getUserGroups(user));
         query.setTaskType(taskType);
-        query.setGenericHumanRole(GenericHumanRole.valueOf(genericHumanRole));
+        if(genericHumanRole==null)
+        	query.setGenericHumanRole(null);
+        else
+        	query.setGenericHumanRole(GenericHumanRole.valueOf(genericHumanRole));
         query.setWorkQueue(workQueue);
         query.setStatuses(status);
         query.setWhereClause(whereClause);
@@ -707,11 +710,77 @@ public class TaskOperationsImpl implemen
 
     public List<TTaskAbstract> getMyTaskAbstracts(String taskType, String genericHumanRole,
String workQueue, List<TStatus> status, String whereClause,
             String createdOnClause, Integer maxTasks) throws IllegalArgumentFault, IllegalStateFault
{
-        // TODO Auto-generated method stub
-        return null;
+        List<TTaskAbstract> result = new ArrayList<TTaskAbstract>();
+
+        String user = getUserString();
+
+        TaskQuery query = new TaskQuery();
+        query.setUser(user);
+        query.setUserGroups(hiseEngine.getHiseUserDetails().getUserGroups(user));
+        query.setTaskType(taskType);
+        query.setGenericHumanRole(GenericHumanRole.valueOf(genericHumanRole));
+        query.setWorkQueue(workQueue);
+        query.setStatuses(status);
+        query.setWhereClause(whereClause);
+        query.setCreatedOnClause(createdOnClause);
+
+        if (maxTasks != null) {
+            query.setMaxTasks(maxTasks);
+        }
+
+        List<org.apache.hise.dao.Task> tasks = hiseEngine.getHiseDao().getUserTasks(query);
+        for (org.apache.hise.dao.Task u : tasks) {
+        	TTaskAbstract t = convertTasktoTTaskAbstract(u.getId());
+            result.add(t);
+        }
+
+        return result;
     }
 
-    /**
+    private TTaskAbstract convertTasktoTTaskAbstract(Long id) {
+    	Task task = Task.load(hiseEngine, id);
+        org.apache.hise.dao.Task taskDto = task.getTaskDto();
+
+        TTaskAbstract result = new TTaskAbstract();
+        result.withId(taskDto.getId().toString()).
+            withTaskType(taskDto.isNotification() ? "NOTIFICATION" : "TASK").
+            withCreatedOn(taskDto.getCreatedOn()).
+            withActivationTime(taskDto.getActivationTime()).
+            withPresentationName(task.getTaskEvaluator().getPresentationName()).
+            withPresentationSubject(task.getTaskEvaluator().evalPresentationSubject()).
+            withName(taskDto.getTaskDefinitionName()).
+            withStatus(TStatus.fromValue(taskDto.getStatus().toString()));
+
+
+
+
+        
+//        TOrganizationalEntity tOrganizational = new TOrganizationalEntity();
+//        TUserlist users=new TUserlist();
+//        //TGrouplist groups=new TGrouplist();
+//        for(TaskOrgEntity o : taskDto.getPotentialOwners()){
+//        	if(o.getType()==OrgEntityType.USER)
+//        		users.getUser().add(o.getName());
+//        }
+//        if(!users.getUser().isEmpty())
+//        	tOrganizational.withUsers(users);
+//        if(!users.getUser().isEmpty() )
+//        	result.setPotentialOwners(tOrganizational);
+   
+             
+        result.setPriority(new BigInteger(new Integer(taskDto.getPriority()).toString()));
+        result.setIsSkipable(taskDto.isSkippable());
+
+             
+        result.setPriority(new BigInteger(new Integer(taskDto.getPriority()).toString()));
+        result.setIsSkipable(taskDto.isSkippable());
+
+
+        return result;
+		
+	}
+
+	/**
      * TODO extract converters to external class
      */
     private TTask convertTask(Long id) {

Added: incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToBooleanConverter.java
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToBooleanConverter.java?rev=982262&view=auto
==============================================================================
--- incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToBooleanConverter.java
(added)
+++ incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToBooleanConverter.java
Wed Aug  4 14:22:33 2010
@@ -0,0 +1,9 @@
+package org.apache.hise.utils;
+
+public class StringToBooleanConverter implements StringToConverter {
+
+	public Object convert(String expression) {
+		return Boolean.valueOf(expression);
+	}
+
+}

Added: incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToConverter.java
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToConverter.java?rev=982262&view=auto
==============================================================================
--- incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToConverter.java
(added)
+++ incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToConverter.java
Wed Aug  4 14:22:33 2010
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.hise.utils;
+
+public interface StringToConverter {
+	
+
+	
+
+	
+	public Object convert(String expression);
+	
+	
+	
+}

Added: incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToConverterFabric.java
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToConverterFabric.java?rev=982262&view=auto
==============================================================================
--- incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToConverterFabric.java
(added)
+++ incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToConverterFabric.java
Wed Aug  4 14:22:33 2010
@@ -0,0 +1,72 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.hise.utils;
+
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import org.apache.hise.dao.JpaQueryBuilder.JQBParam;
+
+public class StringToConverterFabric {
+	
+	public static StringToConverter createConverter( String expression){
+		if(isDataType(expression))
+			return new StringToDateConverter();
+		if(isBoolean(expression))
+			return new StringToBooleanConverter();
+		if(isInt(expression))
+			return new StringToIntConverter();
+		return  new StringToStringConverter();
+		
+	}
+
+	private static boolean isInt(String expression) {
+		try{
+			Integer.parseInt(expression);
+			return true;
+		}
+		catch (NumberFormatException e) {
+			return false;
+		}
+		
+	}
+
+	private static boolean isBoolean(String expression) {
+		String trueString=new String("true");
+		String falseString=new String("false");
+		if(trueString.equalsIgnoreCase(expression) || falseString.equalsIgnoreCase(expression)
)
+			return true;
+		return false;
+	}
+
+	private static boolean isDataType(String expression) {
+		Date date=null;
+		try {
+			SimpleDateFormat format = new SimpleDateFormat("dd-MM-yyyy HH:mm");
+			date = format.parse(expression);
+			if(date != null) return true;
+		} catch (ParseException e) {
+			return false;
+			
+		}
+		return false;
+	}
+	
+}

Added: incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToDateConverter.java
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToDateConverter.java?rev=982262&view=auto
==============================================================================
--- incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToDateConverter.java
(added)
+++ incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToDateConverter.java
Wed Aug  4 14:22:33 2010
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.hise.utils;
+
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import org.apache.hise.dao.JpaQueryBuilder.JQBParam;
+
+public class StringToDateConverter implements StringToConverter {
+
+	public Object convert(String expression) {
+		try {
+			SimpleDateFormat format = new SimpleDateFormat("dd-MM-yyyy HH:mm");
+			Date date = format.parse(expression);
+			return date;
+		} catch (ParseException e) {
+			
+		}
+		return null;
+	}
+
+}

Added: incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToIntConverter.java
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToIntConverter.java?rev=982262&view=auto
==============================================================================
--- incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToIntConverter.java
(added)
+++ incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToIntConverter.java
Wed Aug  4 14:22:33 2010
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.hise.utils;
+
+public class StringToIntConverter implements StringToConverter {
+
+	public Object convert(String expression) {
+		return new Integer(Integer.parseInt(expression));
+	}
+
+}

Added: incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToStringConverter.java
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToStringConverter.java?rev=982262&view=auto
==============================================================================
--- incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToStringConverter.java
(added)
+++ incubator/hise/trunk/hise-services/src/main/java/org/apache/hise/utils/StringToStringConverter.java
Wed Aug  4 14:22:33 2010
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.hise.utils;
+
+public class StringToStringConverter implements StringToConverter {
+
+	public Object convert(String expression) {
+		return new String(expression);
+	}
+
+}

Modified: incubator/hise/trunk/hise-services/src/test/java/org/apache/hise/DaoTest.java
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-services/src/test/java/org/apache/hise/DaoTest.java?rev=982262&r1=982261&r2=982262&view=diff
==============================================================================
--- incubator/hise/trunk/hise-services/src/test/java/org/apache/hise/DaoTest.java (original)
+++ incubator/hise/trunk/hise-services/src/test/java/org/apache/hise/DaoTest.java Wed Aug
 4 14:22:33 2010
@@ -69,7 +69,9 @@ public class DaoTest extends AbstractJUn
             public Object doInTransaction(TransactionStatus arg0) {
                 try {
                     TaskQuery query = new TaskQuery();
+                    
                     query.setUser(TaskCreationHelper.TASK1_OWNER);
+                    System.out.println("PAWELFILTERING where"+query.getWhereClause());
                     List<Task> r = hiseDao.getUserTasks(query);
                     Assert.assertEquals(TaskCreationHelper.TASK1_DEFINITION_KEY, r.get(0).getTaskDefinitionKey());
                     return null;



Mime
View raw message