Changeset 3805
- Timestamp:
- Oct 4, 2007, 4:33:45 PM (16 years ago)
- Location:
- branches/webservices
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/webservices/src/core/net/sf/basedb/core/Application.java
r3695 r3805 617 617 618 618 /** 619 Gets the maximum number of minutes before an active session 620 is logged out. 621 @return An integer with number of minutes 622 @since 2.5 623 */ 624 public static int sessionCacheTimeout() 625 { 626 return sessionCacheTimeout; 627 } 628 629 /** 619 630 Checks if the server has configured a secondary storage or not. 620 631 -
branches/webservices/src/test/TestWebservices.java
r3063 r3805 27 27 import net.sf.basedb.ws.client.SessionClient; 28 28 import net.sf.basedb.ws.info.ItemInfo; 29 import net.sf.basedb.ws.info.QueryOptions; 29 30 import net.sf.basedb.ws.info.RawBioAssayInfo; 30 31 … … 144 145 { 145 146 ProjectClient projectClient = new ProjectClient(client); 146 ItemInfo[] projects = projectClient.getProjects(); 147 QueryOptions qOp = new QueryOptions(); 148 ItemInfo[] projects = projectClient.getProjects(qOp); 147 149 if (projects != null) 148 150 { -
branches/webservices/src/test/set_classpath.sh
r3803 r3805 99 99 CP=$CP:$WS_LIB/activation-1.1.jar 100 100 CP=$CP:$WS_LIB/backport-util-concurrent-2.2.jar 101 CP=$CP:$WS_LIB/annogen-0.1.0.jar 101 102 102 103 # Affymetrix Fusion SDK -
branches/webservices/src/webservices/client/java/net/sf/basedb/ws/client/ProjectClient.java
r3039 r3805 25 25 26 26 import net.sf.basedb.ws.info.ItemInfo; 27 import net.sf.basedb.ws.info.QueryOptions; 27 28 28 29 import org.apache.axis2.AxisFault; … … 47 48 } 48 49 49 public ItemInfo[] getProjects( )50 public ItemInfo[] getProjects(QueryOptions qOptions) 50 51 throws AxisFault 51 52 { 52 53 RPCServiceClient service = getService(); 53 ItemInfo[] result = invokeBlocking("getProjects", ItemInfo[].class, session.getId()); 54 QueryOptions qOpt = new QueryOptions(); 55 ItemInfo[] result = invokeBlocking("getProjects", ItemInfo[].class, session.getId(), qOpt); 54 56 return result; 55 } 56 57 } 57 58 } -
branches/webservices/src/webservices/server/net/sf/basedb/ws/server/ProjectService.java
r3135 r3805 24 24 package net.sf.basedb.ws.server; 25 25 26 import java.util.ArrayList; 26 27 import java.util.LinkedList; 27 28 import java.util.List; … … 33 34 import net.sf.basedb.core.SessionControl; 34 35 import net.sf.basedb.ws.info.ItemInfo; 36 import net.sf.basedb.ws.info.QueryOptions; 35 37 36 38 public class ProjectService … … 59 61 } 60 62 61 public ItemInfo[] getProjects(String ID )63 public ItemInfo[] getProjects(String ID, QueryOptions qOpt) 62 64 { 63 65 SessionControl sc = getSessionControl(ID); … … 67 69 { 68 70 ItemQuery<Project> query = Project.getQuery(); 69 query.include(Include.MINE, Include.SHARED, Include.OTHERS); 71 List<Include> includes = new ArrayList<Include>(); 72 if (qOpt.getIncludeMine()) includes.add(Include.MINE); 73 if (qOpt.getIncludeShared()) includes.add(Include.SHARED); 74 if (qOpt.getIncludeOthers()) includes.add(Include.OTHERS); 75 76 Include incl[] = new Include[includes.size()]; 77 includes.toArray(incl); 78 query.include(incl); 70 79 for (Project project : query.list(dc)) 71 80 { -
branches/webservices/src/webservices/server/net/sf/basedb/ws/server/SessionService.java
r3006 r3805 57 57 } 58 58 59 /** 60 Gets the time in minutes when a session 61 is automatically logged out. 62 @return An integer with number of minutes 63 */ 64 public int getSessionTimeOut() 65 { 66 return Application.sessionCacheTimeout(); 67 } 68 69 /** 70 Refresh a session so it wont be automatically logged out. 71 @param ID The session id as a string 72 */ 73 public void refreshSession(String ID) 74 { 75 SessionControl sc = getSessionControl(ID); 76 sc.updateLastAccess(); 77 } 59 78 } -
branches/webservices/www/WEB-INF
- Property svn:ignore
-
old new 1 2 1 classes 3 2 lib 4 3 web.xml 4 conf 5 services
-
- Property svn:ignore
Note: See TracChangeset
for help on using the changeset viewer.