freeResourceSearch (Session - Java)

Searches for free resource slots for calendaring and scheduling.

Defined in

Session

Syntax

public Vector freeResourceSearch(DateTime start, DateTime end, String site, int type, int maxresult)
		throws NotesException
public java.util.Vector freeResourceSearch(DateTime start, DateTime end, String site, int type, int maxresult, String user, int mincapacity, String apptUNID, String server, int outputversion
    throws NotesException

Parameters


start

DateTime. The start time of the resource.


end

DateTime. The start time of the resource.


site

String. Site name information.


type
Integer. Indicates the resource type:
  • CAL_RESOURCE_TYPE_ROOM(1)
  • CAL_RESOURCE_TYPE_OTHER(2)

maxresult

Integer. The maximum number of results you want returned from this search. Default is set to 1.


user

String. Option. The user who is searching for the resource. The default is the current user.


mincapacity

Integer. Option. The minimum capacity limit of the resource. Set this to 0 to ignore the capacity limit. The default is 0.


apptUNID

String. Option. The UNID for a specific appointment. If you search a resource for a reschedule, this parameter is useful. The default is NULL.


server

String. Option. The name of the server which includes the directory and busy-time for your search. The default is "".


outputversion

Integer. Option. Function version number. For example, public static final int AVAILABLERESOURCESLOOKUP_VERSION_0 = 0;

Return value

java.util.Vector

You are returned a vector of strings - one for each room available in the given time range. The format of each string is: ResourceName;Capacity;Email. This represents a sample string: CN=Room 2001/O=Boston Building 1;50;bos1-room2001@swg.usma.ibm.com.

Language cross-reference

FreeResourceSearch method in LotusScript® NotesSession class

freeResourceSearch method in JavaScript NotesSession class

Examples