com.google.gwt.gadgets.client.osapi
Class OsapiRequestBuilder<T extends OsapiRequestBuilder<?>>

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.gadgets.client.osapi.OsapiRequestBuilder<T>
Type Parameters:
T - Specific request builder implementation.
Direct Known Subclasses:
CollectionRequestBuilder, GetPersonRequestBuilder

public abstract class OsapiRequestBuilder<T extends OsapiRequestBuilder<?>>
extends com.google.gwt.core.client.JavaScriptObject

A superclass for all request builders.


Constructor Summary
protected OsapiRequestBuilder()
          Required by JavaScriptObject policy.
 
Method Summary
protected  T nativeSet(java.lang.String key, com.google.gwt.core.client.JsArrayString value)
          Helper method for setting key-value pair on the underlying JavaScript object.
protected  T nativeSet(java.lang.String key, java.lang.String value)
          Helper method for setting key-value pair on the underlying JavaScript object.
 T setGroupId(java.lang.String groupId)
          Sets the groupId parameter on the request.
 T setUpdatedSince(java.util.Date date)
          When specified the container should only return items whose updated date and time is equal to or more recent then the specified value.
 T setUserId(java.lang.String userId)
          Sets the userId parameter on the request.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OsapiRequestBuilder

protected OsapiRequestBuilder()
Required by JavaScriptObject policy.

Method Detail

setGroupId

public final T setGroupId(java.lang.String groupId)
Sets the groupId parameter on the request. This parameter specifies context for the built request.

Parameters:
groupId - group id to set.
Returns:
this request builder.

setUpdatedSince

public final T setUpdatedSince(java.util.Date date)
When specified the container should only return items whose updated date and time is equal to or more recent then the specified value.


setUserId

public final T setUserId(java.lang.String userId)
Sets the userId parameter on the request. This parameter specifies context for the built request.

Parameters:
userId - user id to set.
Returns:
this request builder.

nativeSet

protected final T nativeSet(java.lang.String key,
                            com.google.gwt.core.client.JsArrayString value)
Helper method for setting key-value pair on the underlying JavaScript object.


nativeSet

protected final T nativeSet(java.lang.String key,
                            java.lang.String value)
Helper method for setting key-value pair on the underlying JavaScript object.