From: Thad Hughes Date: Sat, 25 May 2013 17:19:03 +0000 (-0700) Subject: Remove jars/gss-lib for Google Spreadsheets. X-Git-Url: http://gitweb.fperrin.net/?p=Dictionary.git;a=commitdiff_plain;h=0ab59d3f8497042fd7c10209c4e00e1716c5be9e Remove jars/gss-lib for Google Spreadsheets. --- diff --git a/.classpath b/.classpath index 7ef3eba..89d6ebd 100644 --- a/.classpath +++ b/.classpath @@ -1,11 +1,10 @@ - - + diff --git a/jars/gss-lib-2.2/gss_lib_2.2.jar b/jars/gss-lib-2.2/gss_lib_2.2.jar deleted file mode 100644 index af79a75..0000000 Binary files a/jars/gss-lib-2.2/gss_lib_2.2.jar and /dev/null differ diff --git a/jars/gss-lib-2.2/javadoc/allclasses-frame.html b/jars/gss-lib-2.2/javadoc/allclasses-frame.html deleted file mode 100644 index ca22325..0000000 --- a/jars/gss-lib-2.2/javadoc/allclasses-frame.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - -All Classes - - - - - - - - - - -All Classes -
- - - - - -
Account -
-Authenticator -
-BasicAuthenticatorImpl -
-Collaborator -
-Entry -
-Feed -
-Field -
-HttpConHandler -
-Log -
-ParseFeed -
-Record -
-Response -
-SpreadSheet -
-SpreadSheetFactory -
-Table -
-WorkSheet -
-WorkSheetCell -
-WorkSheetRow -
-
- - - diff --git a/jars/gss-lib-2.2/javadoc/allclasses-noframe.html b/jars/gss-lib-2.2/javadoc/allclasses-noframe.html deleted file mode 100644 index c73f569..0000000 --- a/jars/gss-lib-2.2/javadoc/allclasses-noframe.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - -All Classes - - - - - - - - - - -All Classes -
- - - - - -
Account -
-Authenticator -
-BasicAuthenticatorImpl -
-Collaborator -
-Entry -
-Feed -
-Field -
-HttpConHandler -
-Log -
-ParseFeed -
-Record -
-Response -
-SpreadSheet -
-SpreadSheetFactory -
-Table -
-WorkSheet -
-WorkSheetCell -
-WorkSheetRow -
-
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/Collaborator.html b/jars/gss-lib-2.2/javadoc/com/pras/Collaborator.html deleted file mode 100644 index 892a1bb..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/Collaborator.html +++ /dev/null @@ -1,568 +0,0 @@ - - - - - - -Collaborator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras -
-Class Collaborator

-
-java.lang.Object
-  extended by com.pras.Collaborator
-
-
-
-
public class Collaborator
extends java.lang.Object
- - -

-ACL details of a SpreadSheet -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Field Summary
-static java.lang.StringROLE_OWNER - -
-          Owner of a SpreadSheet
-static java.lang.StringROLE_READER - -
-          Able to Read
-static java.lang.StringROLE_WRITER - -
-          Able to Read/Write and Further Share as Reader/Writer
-static java.lang.StringSCOPE_DEFAULT - -
-          Use this scope to make the SpreadSheet publicly accessible to anyuser
-static java.lang.StringSCOPE_DOMAIN - -
-          Use this scope to share it with a Domain
-static java.lang.StringSCOPE_GROUP - -
-          Use this scope to share it with a Group
-static java.lang.StringSCOPE_USER - -
-          Use this scope to share it with an Email account
-  - - - - - - - - - - -
-Constructor Summary
Collaborator() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- java.lang.StringgetEditLink() - -
-          Get Edit Link
- java.lang.StringgetRole() - -
-          Get Role - {"owner", "writer", "reader"}
- java.lang.StringgetScopeType() - -
-          Get Scope Type - {"user", "group", "domain", "default"}
- java.lang.StringgetScopeValue() - -
-          Get Scope Value e.g.
- voidsetEditLink(java.lang.String editLink) - -
-          Set Edit Link
- voidsetRole(java.lang.String role) - -
-          Set Role - {"owner", "writer", "reader"}
- voidsetScopeType(java.lang.String scopeType) - -
-          Set Scope Type {"user", "group", "domain", "default"}
- voidsetScopeValue(java.lang.String scopeValue) - -
-          Set Scope Value
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-ROLE_OWNER

-
-public static java.lang.String ROLE_OWNER
-
-
Owner of a SpreadSheet -

-

-
-
-
- -

-ROLE_WRITER

-
-public static java.lang.String ROLE_WRITER
-
-
Able to Read/Write and Further Share as Reader/Writer -

-

-
-
-
- -

-ROLE_READER

-
-public static java.lang.String ROLE_READER
-
-
Able to Read -

-

-
-
-
- -

-SCOPE_USER

-
-public static java.lang.String SCOPE_USER
-
-
Use this scope to share it with an Email account -

-

-
-
-
- -

-SCOPE_GROUP

-
-public static java.lang.String SCOPE_GROUP
-
-
Use this scope to share it with a Group -

-

-
-
-
- -

-SCOPE_DOMAIN

-
-public static java.lang.String SCOPE_DOMAIN
-
-
Use this scope to share it with a Domain -

-

-
-
-
- -

-SCOPE_DEFAULT

-
-public static java.lang.String SCOPE_DEFAULT
-
-
Use this scope to make the SpreadSheet publicly accessible to anyuser -

-

-
-
- - - - - - - - -
-Constructor Detail
- -

-Collaborator

-
-public Collaborator()
-
-
- - - - - - - - -
-Method Detail
- -

-getRole

-
-public java.lang.String getRole()
-
-
Get Role - {"owner", "writer", "reader"} -

-

- -
Returns:
-
-
-
- -

-setRole

-
-public void setRole(java.lang.String role)
-
-
Set Role - {"owner", "writer", "reader"} -

-

-
Parameters:
role - {ROLE_OWNER, ROLE_WRITER, ROLE_READER}
-
-
-
- -

-getScopeType

-
-public java.lang.String getScopeType()
-
-
Get Scope Type - {"user", "group", "domain", "default"} -

-

- -
Returns:
-
-
-
- -

-setScopeType

-
-public void setScopeType(java.lang.String scopeType)
-
-
Set Scope Type {"user", "group", "domain", "default"} -

-

-
Parameters:
scopeType - {SCOPE_USER, SCOPE_GROUP, SCOPE_DOMAIN, SCOPE_DEFAULT}
-
-
-
- -

-getScopeValue

-
-public java.lang.String getScopeValue()
-
-
Get Scope Value e.g. -

-

- -
Returns:
-
-
-
- -

-setScopeValue

-
-public void setScopeValue(java.lang.String scopeValue)
-
-
Set Scope Value -

-

-
Parameters:
scopeValue - Email Address
-
-
-
- -

-getEditLink

-
-public java.lang.String getEditLink()
-
-
Get Edit Link -

-

- -
Returns:
-
-
-
- -

-setEditLink

-
-public void setEditLink(java.lang.String editLink)
-
-
Set Edit Link -

-

-
Parameters:
editLink -
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/Log.html b/jars/gss-lib-2.2/javadoc/com/pras/Log.html deleted file mode 100644 index adab970..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/Log.html +++ /dev/null @@ -1,308 +0,0 @@ - - - - - - -Log - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras -
-Class Log

-
-java.lang.Object
-  extended by com.pras.Log
-
-
-
-
public class Log
extends java.lang.Object
- - -

-Based on your target platform- edit this file and add appropriate Log console - e.g. - for Android, android.util.Log - for J2ME, Desktop File based logging. -
- By default Logging will be enabled -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - -
-Constructor Summary
Log() - -
-           
-  - - - - - - - - - - - - - - - - - - - -
-Method Summary
-static voiddisableLog() - -
-          Disable logging.
-static voidenableLog() - -
-          Enable logging
-static voidp(java.lang.String tag, - java.lang.String msg) - -
-          Pring Log message
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-Log

-
-public Log()
-
-
- - - - - - - - -
-Method Detail
- -

-enableLog

-
-public static void enableLog()
-
-
Enable logging -

-

-
-
-
-
- -

-disableLog

-
-public static void disableLog()
-
-
Disable logging. Good for production release. -

-

-
-
-
-
- -

-p

-
-public static void p(java.lang.String tag,
-                     java.lang.String msg)
-
-
Pring Log message -

-

-
Parameters:
tag - Log TAG
msg - Log Message
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/SpreadSheet.html b/jars/gss-lib-2.2/javadoc/com/pras/SpreadSheet.html deleted file mode 100644 index ea12e54..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/SpreadSheet.html +++ /dev/null @@ -1,714 +0,0 @@ - - - - - - -SpreadSheet - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras -
-Class SpreadSheet

-
-java.lang.Object
-  extended by com.pras.SpreadSheet
-
-
-
-
public class SpreadSheet
extends java.lang.Object
- - -

-This class represents a given Spreadsheet. You can add multiple WorkSheets into a Spreadsheet. - It provides methods to Add/Retrieve/Delete WorkSheet and Share SpreadSheet. - -
API Ref:
- http://code.google.com/apis/spreadsheets/data/3.0/developers_guide.html -
- Feed Ref: -
- http://code.google.com/apis/documents/docs/3.0/reference.html -
-
- NOTE: - Resource ID is required to delete a SpreadSheet -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - -
-Constructor Summary
SpreadSheet(Entry entry) - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidaddCollaborator(Collaborator c) - -
-          Add a Collaborator
- WorkSheetaddListWorkSheet(java.lang.String name, - int rowCount, - java.lang.String[] cols) - -
-          Create List feed based WorkSheet
- voidaddWorkSheet(java.lang.String name) - -
-          This will create an WorkSheet without Table.
- voidaddWorkSheet(java.lang.String name, - java.lang.String[] cols) - -
-          Add WorkSheet - This will create an Internal Table and manage WorkSheet data in that Table.
- voidaddWorkSheet(java.lang.String name, - java.lang.String description, - int row, - java.lang.String[] cols) - -
-          Add WorkSheet
- It will create a Table for this WorkSheet.
- voidclearCollaboratorList() - -
-          Clear existing list of Collaborators
- voiddeleteWorkSheet(WorkSheet wk) - -
-          Delete this WorkSheet
- booleanequals(java.lang.Object obj) - -
-           
- java.util.ArrayList<WorkSheet>getAllWorkSheets() - -
-          It will retrieve all WorkSheets of this SpreadSheet from Server
- java.util.ArrayList<WorkSheet>getAllWorkSheets(boolean doRefresh) - -
-          It will retrieve all WorkSheets of this SpreadSheet either from Server or from Local Cache
- java.util.ArrayList<WorkSheet>getAllWorkSheets(boolean doRefresh, - java.lang.String title, - boolean isTitleExact) - -
-          It will retrieve WorkSheets with matching title either from Server or from Local Cache
- java.util.ArrayList<Collaborator>getCollaborators() - -
-          Get the list of all Collaborator details (users/groups and their access rights) for a given SpreadSheet
- EntrygetEntry() - -
-          Get Entry Object of SpreadSheet Feed.
- java.lang.StringgetKey() - -
-          Get SpreadSheet Feed Key
- java.lang.StringgetResourceID() - -
-          Get SpreadSheet Resource ID.
- java.lang.StringgetTitle() - -
-          Get SpreadSheet Title
- java.util.ArrayList<WorkSheet>getWorkSheet(java.lang.String title, - boolean isTitleExact) - -
-          It will retrieve WorkSheets with matching title from Server
- inthashCode() - -
-           
- voidsetCollaborators(java.util.ArrayList<Collaborator> collaborators) - -
-          Set a list of Collaborators
- voidsetEntry(Entry entry) - -
-          Set Entry Object of SpreadSheet Feed.
- - - - - - - -
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-SpreadSheet

-
-public SpreadSheet(Entry entry)
-
-
- - - - - - - - -
-Method Detail
- -

-equals

-
-public boolean equals(java.lang.Object obj)
-
-
-
Overrides:
equals in class java.lang.Object
-
-
-
-
-
-
- -

-hashCode

-
-public int hashCode()
-
-
-
Overrides:
hashCode in class java.lang.Object
-
-
-
-
-
-
- -

-getEntry

-
-public Entry getEntry()
-
-
Get Entry Object of SpreadSheet Feed. Entry holds all SpreadSheet Feed details -

-

- -
Returns:
-
-
-
- -

-setEntry

-
-public void setEntry(Entry entry)
-
-
Set Entry Object of SpreadSheet Feed. -

-

-
Parameters:
entry -
-
-
-
- -

-getTitle

-
-public java.lang.String getTitle()
-
-
Get SpreadSheet Title -

-

- -
Returns:
-
-
-
- -

-getResourceID

-
-public java.lang.String getResourceID()
-
-
Get SpreadSheet Resource ID. Each SpreadSheet has an unique Resource ID. - This ID is required to Delete this SpreadSheet. -

-

- -
Returns:
-
-
-
- -

-getKey

-
-public java.lang.String getKey()
-
-
Get SpreadSheet Feed Key -

-

- -
Returns:
-
-
-
- -

-getCollaborators

-
-public java.util.ArrayList<Collaborator> getCollaborators()
-
-
Get the list of all Collaborator details (users/groups and their access rights) for a given SpreadSheet -

-

- -
Returns:
-
-
-
- -

-addCollaborator

-
-public void addCollaborator(Collaborator c)
-
-
Add a Collaborator -

-

-
Parameters:
c -
-
-
-
- -

-clearCollaboratorList

-
-public void clearCollaboratorList()
-
-
Clear existing list of Collaborators -

-

-
-
-
-
- -

-setCollaborators

-
-public void setCollaborators(java.util.ArrayList<Collaborator> collaborators)
-
-
Set a list of Collaborators -

-

-
Parameters:
collaborators -
-
-
-
- -

-addWorkSheet

-
-public void addWorkSheet(java.lang.String name)
-
-
This will create an WorkSheet without Table. It will create WorkSheet with 1 Column and 1 Row. It can - be accessed/modified by Web Interface. - - IMPORTANT: - This Library supports Record Handling only through Table. If you use this method, it will not - create Table internally and thus unable to add/edit/delete record from this WorkSheet. Instead, - use addWorkSheet(String name, String[] cols) -

-

-
Parameters:
name - WorkSheet name
-
-
-
- -

-addWorkSheet

-
-public void addWorkSheet(java.lang.String name,
-                         java.lang.String[] cols)
-
-
Add WorkSheet - This will create an Internal Table and manage WorkSheet data in that Table. - This Lib supports only Table based record Add/Edit/Delete -

-

-
Parameters:
name - name of WorkSheet
cols - name of Columns
-
-
-
- -

-addWorkSheet

-
-public void addWorkSheet(java.lang.String name,
-                         java.lang.String description,
-                         int row,
-                         java.lang.String[] cols)
-
-
Add WorkSheet
- It will create a Table for this WorkSheet. WorkSheet and Table Name will be the same - The Table will be used for Add/Edit/Delete Records -
-

-

-
Parameters:
name - Name of the WorkSheet
description - Description of the WorkSheet
row - Number of Rows
cols - Name of Columns
-
-
-
- -

-addListWorkSheet

-
-public WorkSheet addListWorkSheet(java.lang.String name,
-                                  int rowCount,
-                                  java.lang.String[] cols)
-
-
Create List feed based WorkSheet -

-

-
Parameters:
name - Name of the WorkSheet
rowCount - Number of row. This doesn't limit future row addition.
cols - Array of column name. First row of the WorkSheet is header row. -
Returns:
-
-
-
- -

-getAllWorkSheets

-
-public java.util.ArrayList<WorkSheet> getAllWorkSheets()
-
-
It will retrieve all WorkSheets of this SpreadSheet from Server -

-

- -
Returns:
-
-
-
- -

-getAllWorkSheets

-
-public java.util.ArrayList<WorkSheet> getAllWorkSheets(boolean doRefresh)
-
-
It will retrieve all WorkSheets of this SpreadSheet either from Server or from Local Cache -

-

-
Parameters:
doRefresh - Do you want to Synch with Server ? -
Returns:
list of available WorkSheets
-
-
-
- -

-getWorkSheet

-
-public java.util.ArrayList<WorkSheet> getWorkSheet(java.lang.String title,
-                                                   boolean isTitleExact)
-
-
It will retrieve WorkSheets with matching title from Server -

-

-
Parameters:
title - SpreadSheet title. null means all SpreadSheets. No need to do URL encode.
isTitleExact - whether title string should be an exact match -
Returns:
-
-
-
- -

-getAllWorkSheets

-
-public java.util.ArrayList<WorkSheet> getAllWorkSheets(boolean doRefresh,
-                                                       java.lang.String title,
-                                                       boolean isTitleExact)
-
-
It will retrieve WorkSheets with matching title either from Server or from Local Cache -

-

-
Parameters:
doRefresh - Do you want to Synch with Server ?
title - SpreadSheet title. null means all SpreadSheets. No need to do URL encode.
isTitleExact - Whether title string should be an exact match -
Returns:
list of available WorkSheets
-
-
-
- -

-deleteWorkSheet

-
-public void deleteWorkSheet(WorkSheet wk)
-
-
Delete this WorkSheet -

-

-
Parameters:
wk - WorkSheet to be deleted
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/SpreadSheetFactory.html b/jars/gss-lib-2.2/javadoc/com/pras/SpreadSheetFactory.html deleted file mode 100644 index 104eb99..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/SpreadSheetFactory.html +++ /dev/null @@ -1,573 +0,0 @@ - - - - - - -SpreadSheetFactory - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras -
-Class SpreadSheetFactory

-
-java.lang.Object
-  extended by com.pras.SpreadSheetFactory
-
-
-
-
public class SpreadSheetFactory
extends java.lang.Object
- - -

-

- It is a SpreadSheet Generator Class. It accepts Gmail User ID and PassWord - to generate Authentication Token. -
- It uses 2 Google APIs- -
- SpreadSheet Create/Delete - Google Document API -
- WorkSheet Create/Delete, Record Add - Google SpreadSheet API -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - -
-Field Summary
-static java.lang.StringauthToken - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidaddSharePermission(SpreadSheet sp, - Collaborator[] collaborators) - -
-          Share a SpreadSheet with a given list of Collaborators.
- voidchangeSharePermission(Collaborator c, - java.lang.String role) - -
-          Change Share permission for a particular ACL entry
- voidcreateSpreadSheet(java.lang.String spName) - -
-          Create SpreadSheet with the given name
- voiddeleteSpreadSheet(java.lang.String resID) - -
-          Delete a SpreadSheet
- voidflushMe() - -
-          Deallocate SpreadSheetFactory instance
- java.util.ArrayList<Collaborator>getAllCollaborators(SpreadSheet sp) - -
-          Get list of all Collaborators to whom this SpreadSheet is shared
- java.util.ArrayList<SpreadSheet>getAllSpreadSheets() - -
-          Get All stored SpreadSheets from Server
- java.util.ArrayList<SpreadSheet>getAllSpreadSheets(boolean doRefresh) - -
-          Get All stored SpreadSheets either from Server or Local Cache
- java.util.ArrayList<SpreadSheet>getAllSpreadSheets(boolean doRefresh, - java.lang.String title, - boolean isTitleExact) - -
-          Get All stored SpreadSheets either from Server or Local Cache
-static SpreadSheetFactorygetInstance() - -
-          This will return an existing SpreadSheetFactory instance or null -
- Note: - Make sure you have previously called getInstance(String userName, String password)
-static SpreadSheetFactorygetInstance(Authenticator authenticator) - -
-          This will create SpreadSheetFactory Instance using your custom Authenticatior.
-static SpreadSheetFactorygetInstance(java.lang.String email, - java.lang.String password) - -
-          This will create SpreadSheetFactory Instance with valid User ID (e.g.
- java.util.ArrayList<SpreadSheet>getSpreadSheet(java.lang.String title, - boolean isTitleExact) - -
-          Get list of SpreadSheet with matching title.
- voidremoveSharePermission(Collaborator c) - -
-          Remove Share access of a selected user.
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-authToken

-
-public static java.lang.String authToken
-
-
-
-
- - - - - - - - -
-Method Detail
- -

-getInstance

-
-public static SpreadSheetFactory getInstance()
-
-
This will return an existing SpreadSheetFactory instance or null -
- Note: - Make sure you have previously called getInstance(String userName, String password) -

-

- -
Returns:
-
-
-
- -

-getInstance

-
-public static SpreadSheetFactory getInstance(java.lang.String email,
-                                             java.lang.String password)
-
-
This will create SpreadSheetFactory Instance with valid User ID (e.g. abc@gmail.com) and password -

-

-
Parameters:
userName - Gmail account id e.g. abc@gmail.com
password - Gmail account password -
Returns:
-
-
-
- -

-getInstance

-
-public static SpreadSheetFactory getInstance(Authenticator authenticator)
-
-
This will create SpreadSheetFactory Instance using your custom Authenticatior. - - Use this if you want to use your custom Authenticator e.g. in Android you can use AccountManager - to create a custom Authenticator. -

-

-
Parameters:
authenticator - Your Custom Authenticator. -
Returns:
-
-
-
- -

-flushMe

-
-public void flushMe()
-
-
Deallocate SpreadSheetFactory instance -

-

-
-
-
-
- -

-createSpreadSheet

-
-public void createSpreadSheet(java.lang.String spName)
-
-
Create SpreadSheet with the given name -

-

-
Parameters:
spName - SpreadSheet name
-
-
-
- -

-deleteSpreadSheet

-
-public void deleteSpreadSheet(java.lang.String resID)
-
-
Delete a SpreadSheet -

-

-
Parameters:
resID - Resource ID of the SpreadSheet you want to Delete
-
-
-
- -

-getSpreadSheet

-
-public java.util.ArrayList<SpreadSheet> getSpreadSheet(java.lang.String title,
-                                                       boolean isTitleExact)
-
-
Get list of SpreadSheet with matching title. It will do Synch with Server -

-

-
Parameters:
title - SpreadSheet title
isTitleExact - Whether title string should be an exact match -
Returns:
-
-
-
- -

-getAllSpreadSheets

-
-public java.util.ArrayList<SpreadSheet> getAllSpreadSheets()
-
-
Get All stored SpreadSheets from Server -

-

- -
Returns:
-
-
-
- -

-getAllSpreadSheets

-
-public java.util.ArrayList<SpreadSheet> getAllSpreadSheets(boolean doRefresh)
-
-
Get All stored SpreadSheets either from Server or Local Cache -

-

-
Parameters:
doRefresh - Do you want to Synch with Server ? -
Returns:
List of Entry. Each Entry represents a SpreadSheet
-
-
-
- -

-getAllSpreadSheets

-
-public java.util.ArrayList<SpreadSheet> getAllSpreadSheets(boolean doRefresh,
-                                                           java.lang.String title,
-                                                           boolean isTitleExact)
-
-
Get All stored SpreadSheets either from Server or Local Cache -

-

-
Parameters:
doRefresh -
title - SpreadSheet title. null means all SpreadSheets. No need to do URL encode.
isTitleExact - Whether title string should be an exact match -
Returns:
-
-
-
- -

-addSharePermission

-
-public void addSharePermission(SpreadSheet sp,
-                               Collaborator[] collaborators)
-
-
Share a SpreadSheet with a given list of Collaborators. - NOTE: You need not to mention editLink of Collaborator -

-

-
Parameters:
sp - The SpreadSheet you want to share
collaborators - List of Collaborators with whim you want to share this.
-
-
-
- -

-getAllCollaborators

-
-public java.util.ArrayList<Collaborator> getAllCollaborators(SpreadSheet sp)
-
-
Get list of all Collaborators to whom this SpreadSheet is shared -

-

-
Parameters:
sp - SpreadSheet -
Returns:
-
-
-
- -

-changeSharePermission

-
-public void changeSharePermission(Collaborator c,
-                                  java.lang.String role)
-
-
Change Share permission for a particular ACL entry -

-

-
Parameters:
c - Collaborator instance stored in SpreadSheet. It should have a valid EditLink URL
role - {owner, writer, reader}
-
-
-
- -

-removeSharePermission

-
-public void removeSharePermission(Collaborator c)
-
-
Remove Share access of a selected user. -

-

-
Parameters:
c - Collaborator Instance. It should have the Edit Link.
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/WorkSheet.html b/jars/gss-lib-2.2/javadoc/com/pras/WorkSheet.html deleted file mode 100644 index 79432a5..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/WorkSheet.html +++ /dev/null @@ -1,883 +0,0 @@ - - - - - - -WorkSheet - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras -
-Class WorkSheet

-
-java.lang.Object
-  extended by com.pras.WorkSheet
-
-
-
-
public class WorkSheet
extends java.lang.Object
- - -

-This class represents an WorkSheet and utility methods to manage WorkSheet data. - WorkSheets will manage (Add/Edit/Delete) data in Tables. It also supports List - based Feed, but only to retrieve data. At present it doesn't provide any method to Add/Edit/Delete - data in List based Feed. -
-
- Table Feed -
- To Add/Edit/Delete Data, you need to use addRecord(), updateRecord() and deleteRecord(). It - internally stores data in a single Table. -
- Note: Table Feed will ignore data entered through Web UI. - So, if you want all data records irrespective of from where those are inserted/updated, you should use List Feed. - -
-
- List Feed -
- To Retrieve data using List based Feed, use getData() method. -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - -
-Constructor Summary
WorkSheet() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- WorkSheetRowaddListRow(java.util.HashMap<java.lang.String,java.lang.String> records) - -
-          Add List Feed row.
- voidaddRecord(java.lang.String key, - java.util.HashMap<java.lang.String,java.lang.String> records) - -
-          Add record into WorkSheet.
- voiddelete() - -
-          Delete this WorkSheet.
- voiddeleteListRow(java.lang.String key, - WorkSheetRow r) - -
-          Delete List Row
- voiddeleteRecord(Record record) - -
-          Delete a Record
- intgetColCount() - -
-          Get column count of this WorkSheet
- java.lang.String[]getColumns() - -
-          Get columns of the WorkSheet.
- java.util.ArrayList<WorkSheetRow>getData(boolean isCachedData) - -
-          Get all data of this WorkSheet (List based Feed)
- java.util.ArrayList<WorkSheetRow>getData(boolean isCachedData, - boolean doReverse, - java.lang.String sq, - java.lang.String orderBy) - -
-          List based Feed for a particular Work Sheet.
- EntrygetEntry() - -
-          Get Entry instance for this WorkSheet.
- java.util.ArrayList<Record>getRecords() - -
-          Get Cached Data (previously retrieved from server)
- java.util.ArrayList<Record>getRecords(java.lang.String key) - -
-          Get data stored in this WorkSheet
- java.util.ArrayList<Record>getRecords(java.lang.String key, - boolean doReverse, - java.lang.String sq, - java.lang.String orderBy) - -
-          Get data stored in this WorkSheet.
- java.util.ArrayList<Record>getRecords(java.lang.String key, - java.lang.String sq) - -
-           
- intgetRowCount() - -
-          Get row count of this WorkSheet
- java.lang.StringgetTitle() - -
-          Get WorkSheet Title
- java.lang.StringgetWorkSheetID() - -
-          Get WorkSheet ID
- java.lang.StringgetWorkSheetURL() - -
-          Get WorkSheetURL
- voidsetColCount(int colCount) - -
-          Set column count of this WorkSheet
- voidsetColumns(java.lang.String[] columns) - -
-          Set columns of ListFeed
- voidsetEntry(Entry entry) - -
-          Set Feed Entry instance
- voidsetRowCount(int rowCount) - -
-          Set row count of this WorkSheet
- voidsetTitle(java.lang.String title) - -
-          Set WorkSheet Title
- voidsetWorkSheetID(java.lang.String workSheetID) - -
-          Set WorkSheet ID
- voidsetWorkSheetURL(java.lang.String workSheetURL) - -
-          Set WorkSheet
- WorkSheetRowupdateListRow(java.lang.String key, - WorkSheetRow r, - java.util.HashMap<java.lang.String,java.lang.String> records) - -
-          Update List row
- voidupdateRecord(Record record) - -
-          Record instance you want to Update - Keep only those data which you want to update for this record
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-WorkSheet

-
-public WorkSheet()
-
-
- - - - - - - - -
-Method Detail
- -

-getWorkSheetID

-
-public java.lang.String getWorkSheetID()
-
-
Get WorkSheet ID -

-

- -
Returns:
-
-
-
- -

-setWorkSheetID

-
-public void setWorkSheetID(java.lang.String workSheetID)
-
-
Set WorkSheet ID -

-

-
Parameters:
workSheetID -
-
-
-
- -

-getWorkSheetURL

-
-public java.lang.String getWorkSheetURL()
-
-
Get WorkSheetURL -

-

- -
Returns:
-
-
-
- -

-setWorkSheetURL

-
-public void setWorkSheetURL(java.lang.String workSheetURL)
-
-
Set WorkSheet -

-

-
Parameters:
workSheetURL -
-
-
-
- -

-getTitle

-
-public java.lang.String getTitle()
-
-
Get WorkSheet Title -

-

- -
Returns:
-
-
-
- -

-setTitle

-
-public void setTitle(java.lang.String title)
-
-
Set WorkSheet Title -

-

-
Parameters:
title -
-
-
-
- -

-getColCount

-
-public int getColCount()
-
-
Get column count of this WorkSheet -

-

- -
Returns:
-
-
-
- -

-setColCount

-
-public void setColCount(int colCount)
-
-
Set column count of this WorkSheet -

-

-
Parameters:
colCount -
-
-
-
- -

-getRowCount

-
-public int getRowCount()
-
-
Get row count of this WorkSheet -

-

- -
Returns:
-
-
-
- -

-setRowCount

-
-public void setRowCount(int rowCount)
-
-
Set row count of this WorkSheet -

-

-
Parameters:
rowCount -
-
-
-
- -

-getColumns

-
-public java.lang.String[] getColumns()
-
-
Get columns of the WorkSheet. It will return columns of associated table, otherwise - columns of List Feed i.e. content of Header row of ListFeed -

-

- -
Returns:
-
-
-
- -

-setColumns

-
-public void setColumns(java.lang.String[] columns)
-
-
Set columns of ListFeed -

-

-
Parameters:
columns -
-
-
-
- -

-getEntry

-
-public Entry getEntry()
-
-
Get Entry instance for this WorkSheet. - Entry contains low level Feed Details -

-

- -
Returns:
-
-
-
- -

-setEntry

-
-public void setEntry(Entry entry)
-
-
Set Feed Entry instance -

-

-
Parameters:
entry -
-
-
-
- -

-getData

-
-public java.util.ArrayList<WorkSheetRow> getData(boolean isCachedData)
-
-
Get all data of this WorkSheet (List based Feed) -

-

-
Parameters:
isCachedData - Do you want to read cached data or data from Server -
Returns:
-
-
-
- -

-getData

-
-public java.util.ArrayList<WorkSheetRow> getData(boolean isCachedData,
-                                                 boolean doReverse,
-                                                 java.lang.String sq,
-                                                 java.lang.String orderBy)
-
-
List based Feed for a particular Work Sheet. Use this method if you want to retrieve data entered - through Web GUI and also through Table records. -

-

-
Parameters:
isCachedData - Do you want to read cached data or data from Server
doReverse - Do you need data in reverse order ?
sq - Structured Query. If you don't need this, set to null. (Make sure that column name is in lower case).
orderBy - If you don't need this, set to null. (Make sure that column name is in lower case). -
Returns:
-
-
-
- -

-addListRow

-
-public WorkSheetRow addListRow(java.util.HashMap<java.lang.String,java.lang.String> records)
-
-
Add List Feed row. One row at a time. - TODO: need to test -

-

-
Parameters:
records -
-
-
-
- -

-deleteListRow

-
-public void deleteListRow(java.lang.String key,
-                          WorkSheetRow r)
-
-
Delete List Row -

-

-
Parameters:
r - WorkSheetRow which need to be deleted
-
-
-
- -

-updateListRow

-
-public WorkSheetRow updateListRow(java.lang.String key,
-                                  WorkSheetRow r,
-                                  java.util.HashMap<java.lang.String,java.lang.String> records)
-
-
Update List row -

-

-
Parameters:
r - WorkSheetRow to be updated
records - new records -
Returns:
-
-
-
- -

-addRecord

-
-public void addRecord(java.lang.String key,
-                      java.util.HashMap<java.lang.String,java.lang.String> records)
-
-
Add record into WorkSheet. This WorkSheet need to have associated Table. - - Use SpreadSheet.addWorkSheet() -
- Note: -
- All data entered through Web Interface will be ignored. -

-

-
Parameters:
key - Key of SpreadSheet
records - Record to be added ([col_name],[value])
-
-
-
- -

-getRecords

-
-public java.util.ArrayList<Record> getRecords(java.lang.String key)
-
-
Get data stored in this WorkSheet -

-

-
Parameters:
key - SpreadSheet Key -
Returns:
-
-
-
- -

-getRecords

-
-public java.util.ArrayList<Record> getRecords(java.lang.String key,
-                                              java.lang.String sq)
-
-
-
Parameters:
key - SpreadSheet Key
sq - Structured Query -
Returns:
-
-
-
- -

-getRecords

-
-public java.util.ArrayList<Record> getRecords(java.lang.String key,
-                                              boolean doReverse,
-                                              java.lang.String sq,
-                                              java.lang.String orderBy)
-
-
Get data stored in this WorkSheet. Retrieved data will be in a HashMap- - , -
- It supports following conditional Query-
- Structured Query: you can define conditional statements like in SQL e.g. !=
- Order By: Order by a given column name or position
- Reverse: Record retrived in reverse order (last row 1st)
-
- NOTE: -
- It will retrieve records present in the Table. Tables can't be accessed by the Web UI. -
- So, any data inserted by Web UI will be discarded. -
-

-

-
Parameters:
key - SpreadSheet Key
doReverse - Display data in reverse order (last row first)
sq - Structured Query
orderBy - Order By -
Returns:
-
-
-
- -

-getRecords

-
-public java.util.ArrayList<Record> getRecords()
-
-
Get Cached Data (previously retrieved from server) -

-

- -
Returns:
-
-
-
- -

-updateRecord

-
-public void updateRecord(Record record)
-
-
Record instance you want to Update - Keep only those data which you want to update for this record -

-

-
Parameters:
record - Record to be updated
-
-
-
- -

-deleteRecord

-
-public void deleteRecord(Record record)
-
-
Delete a Record -

-

-
Parameters:
record - Record to be deleted
-
-
-
- -

-delete

-
-public void delete()
-
-
Delete this WorkSheet. It will also delete its associated Table. - There is no separate method for deleting a Table -

-

-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/WorkSheetCell.html b/jars/gss-lib-2.2/javadoc/com/pras/WorkSheetCell.html deleted file mode 100644 index 36b865c..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/WorkSheetCell.html +++ /dev/null @@ -1,451 +0,0 @@ - - - - - - -WorkSheetCell - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras -
-Class WorkSheetCell

-
-java.lang.Object
-  extended by com.pras.WorkSheetCell
-
-
-
-
public class WorkSheetCell
extends java.lang.Object
- - -

-Individual Cell of the Work Sheet - One Row can have multiple Cells -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - -
-Constructor Summary
WorkSheetCell() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- intgetCol() - -
-           
- java.lang.StringgetName() - -
-           
- intgetRow() - -
-           
- java.lang.StringgetType() - -
-           
- java.lang.StringgetValue() - -
-           
- voidsetCol(int col) - -
-           
- voidsetName(java.lang.String name) - -
-           
- voidsetRow(int row) - -
-           
- voidsetType(java.lang.String type) - -
-           
- voidsetValue(java.lang.String value) - -
-           
- java.lang.StringtoString() - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-WorkSheetCell

-
-public WorkSheetCell()
-
-
- - - - - - - - -
-Method Detail
- -

-getName

-
-public java.lang.String getName()
-
-
-
-
-
-
- -

-setName

-
-public void setName(java.lang.String name)
-
-
-
-
-
-
- -

-getType

-
-public java.lang.String getType()
-
-
-
-
-
-
- -

-setType

-
-public void setType(java.lang.String type)
-
-
-
-
-
-
- -

-getValue

-
-public java.lang.String getValue()
-
-
-
-
-
-
- -

-setValue

-
-public void setValue(java.lang.String value)
-
-
-
-
-
-
- -

-getRow

-
-public int getRow()
-
-
-
-
-
-
- -

-setRow

-
-public void setRow(int row)
-
-
-
-
-
-
- -

-getCol

-
-public int getCol()
-
-
-
-
-
-
- -

-setCol

-
-public void setCol(int col)
-
-
-
-
-
-
- -

-toString

-
-public java.lang.String toString()
-
-
-
Overrides:
toString in class java.lang.Object
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/WorkSheetRow.html b/jars/gss-lib-2.2/javadoc/com/pras/WorkSheetRow.html deleted file mode 100644 index 2d2a1ad..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/WorkSheetRow.html +++ /dev/null @@ -1,456 +0,0 @@ - - - - - - -WorkSheetRow - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras -
-Class WorkSheetRow

-
-java.lang.Object
-  extended by com.pras.WorkSheetRow
-
-
-
-
public class WorkSheetRow
extends java.lang.Object
- - -

-Supporting class for list based data feed -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - -
-Constructor Summary
WorkSheetRow() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- booleanequals(java.lang.Object obj) - -
-           
- java.util.ArrayList<WorkSheetCell>getCells() - -
-           
- java.lang.StringgetId() - -
-           
- java.lang.StringgetRowIndex() - -
-           
- java.lang.StringgetType() - -
-           
- inthashCode() - -
-           
- voidsetCells(java.util.ArrayList<WorkSheetCell> cells) - -
-           
- voidsetId(java.lang.String id) - -
-           
- voidsetRowIndex(java.lang.String rowIndex) - -
-           
- voidsetType(java.lang.String type) - -
-           
- java.lang.StringtoString() - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-WorkSheetRow

-
-public WorkSheetRow()
-
-
- - - - - - - - -
-Method Detail
- -

-getId

-
-public java.lang.String getId()
-
-
-
-
-
-
- -

-setId

-
-public void setId(java.lang.String id)
-
-
-
-
-
-
- -

-getRowIndex

-
-public java.lang.String getRowIndex()
-
-
-
-
-
-
- -

-setRowIndex

-
-public void setRowIndex(java.lang.String rowIndex)
-
-
-
-
-
-
- -

-getType

-
-public java.lang.String getType()
-
-
-
-
-
-
- -

-setType

-
-public void setType(java.lang.String type)
-
-
-
-
-
-
- -

-getCells

-
-public java.util.ArrayList<WorkSheetCell> getCells()
-
-
-
-
-
-
- -

-setCells

-
-public void setCells(java.util.ArrayList<WorkSheetCell> cells)
-
-
-
-
-
-
- -

-equals

-
-public boolean equals(java.lang.Object obj)
-
-
-
Overrides:
equals in class java.lang.Object
-
-
-
-
-
-
- -

-hashCode

-
-public int hashCode()
-
-
-
Overrides:
hashCode in class java.lang.Object
-
-
-
-
-
-
- -

-toString

-
-public java.lang.String toString()
-
-
-
Overrides:
toString in class java.lang.Object
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/auth/Account.html b/jars/gss-lib-2.2/javadoc/com/pras/auth/Account.html deleted file mode 100644 index 7acb27d..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/auth/Account.html +++ /dev/null @@ -1,352 +0,0 @@ - - - - - - -Account - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras.auth -
-Class Account

-
-java.lang.Object
-  extended by com.pras.auth.Account
-
-
-
-
public class Account
extends java.lang.Object
- - -

-Account data holding class -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - -
-Constructor Summary
Account() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- java.lang.StringgetAccountType() - -
-           
- java.lang.StringgetEmail() - -
-           
- java.lang.StringgetPassword() - -
-           
- voidsetAccountType(java.lang.String accountType) - -
-           
- voidsetEmail(java.lang.String email) - -
-           
- voidsetPassword(java.lang.String password) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-Account

-
-public Account()
-
-
- - - - - - - - -
-Method Detail
- -

-getEmail

-
-public java.lang.String getEmail()
-
-
-
-
-
-
- -

-setEmail

-
-public void setEmail(java.lang.String email)
-
-
-
-
-
-
- -

-getPassword

-
-public java.lang.String getPassword()
-
-
-
-
-
-
- -

-setPassword

-
-public void setPassword(java.lang.String password)
-
-
-
-
-
-
- -

-getAccountType

-
-public java.lang.String getAccountType()
-
-
-
-
-
-
- -

-setAccountType

-
-public void setAccountType(java.lang.String accountType)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/auth/Authenticator.html b/jars/gss-lib-2.2/javadoc/com/pras/auth/Authenticator.html deleted file mode 100644 index 77432b1..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/auth/Authenticator.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - -Authenticator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras.auth -
-Interface Authenticator

-
-
All Known Implementing Classes:
BasicAuthenticatorImpl
-
-
-
-
public interface Authenticator
- - -

-


- -

- - - - - - - - - - - - -
-Method Summary
- java.lang.StringgetAuthToken(java.lang.String service) - -
-          Do the authentication and read Auth_Token from Server.
-  -

- - - - - - - - -
-Method Detail
- -

-getAuthToken

-
-java.lang.String getAuthToken(java.lang.String service)
-
-
Do the authentication and read Auth_Token from Server. The implementor class - will provide Account (Gmail) and Service details -

-

-
Parameters:
service - Name of the Service for which Authentication Token is required e.g. "wise" for SpreadSheet -
Returns:
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/auth/BasicAuthenticatorImpl.html b/jars/gss-lib-2.2/javadoc/com/pras/auth/BasicAuthenticatorImpl.html deleted file mode 100644 index f1d9b57..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/auth/BasicAuthenticatorImpl.html +++ /dev/null @@ -1,271 +0,0 @@ - - - - - - -BasicAuthenticatorImpl - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras.auth -
-Class BasicAuthenticatorImpl

-
-java.lang.Object
-  extended by com.pras.auth.BasicAuthenticatorImpl
-
-
-
All Implemented Interfaces:
Authenticator
-
-
-
-
public class BasicAuthenticatorImpl
extends java.lang.Object
implements Authenticator
- - -

-This will provide a basic and LOW Level way of getting Authetication Token - for various Google's services. - This is a generic approach for core Java. User can add Platform specific Autheticator - implementation. -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - -
-Constructor Summary
BasicAuthenticatorImpl(Account account) - -
-           
-  - - - - - - - - - - - -
-Method Summary
- java.lang.StringgetAuthToken(java.lang.String service) - -
-          Do the authentication and read Auth_Token from Server.
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-BasicAuthenticatorImpl

-
-public BasicAuthenticatorImpl(Account account)
-
-
- - - - - - - - -
-Method Detail
- -

-getAuthToken

-
-public java.lang.String getAuthToken(java.lang.String service)
-
-
Description copied from interface: Authenticator
-
Do the authentication and read Auth_Token from Server. The implementor class - will provide Account (Gmail) and Service details -

-

-
Specified by:
getAuthToken in interface Authenticator
-
-
-
Parameters:
service - Name of the Service for which Authentication Token is required e.g. "wise" for SpreadSheet -
Returns:
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/auth/class-use/Account.html b/jars/gss-lib-2.2/javadoc/com/pras/auth/class-use/Account.html deleted file mode 100644 index a727268..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/auth/class-use/Account.html +++ /dev/null @@ -1,174 +0,0 @@ - - - - - - -Uses of Class com.pras.auth.Account - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.auth.Account

-
- - - - - - - - - -
-Packages that use Account
com.pras.auth  
-  -

- - - - - -
-Uses of Account in com.pras.auth
-  -

- - - - - - - - -
Constructors in com.pras.auth with parameters of type Account
BasicAuthenticatorImpl(Account account) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/auth/class-use/Authenticator.html b/jars/gss-lib-2.2/javadoc/com/pras/auth/class-use/Authenticator.html deleted file mode 100644 index 31dd730..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/auth/class-use/Authenticator.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - - -Uses of Interface com.pras.auth.Authenticator - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Interface
com.pras.auth.Authenticator

-
- - - - - - - - - - - - - -
-Packages that use Authenticator
com.pras  
com.pras.auth  
-  -

- - - - - -
-Uses of Authenticator in com.pras
-  -

- - - - - - - - - -
Methods in com.pras with parameters of type Authenticator
-static SpreadSheetFactorySpreadSheetFactory.getInstance(Authenticator authenticator) - -
-          This will create SpreadSheetFactory Instance using your custom Authenticatior.
-  -

- - - - - -
-Uses of Authenticator in com.pras.auth
-  -

- - - - - - - - - -
Classes in com.pras.auth that implement Authenticator
- classBasicAuthenticatorImpl - -
-          This will provide a basic and LOW Level way of getting Authetication Token - for various Google's services.
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/auth/class-use/BasicAuthenticatorImpl.html b/jars/gss-lib-2.2/javadoc/com/pras/auth/class-use/BasicAuthenticatorImpl.html deleted file mode 100644 index 33a5cc7..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/auth/class-use/BasicAuthenticatorImpl.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class com.pras.auth.BasicAuthenticatorImpl - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.auth.BasicAuthenticatorImpl

-
-No usage of com.pras.auth.BasicAuthenticatorImpl -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/auth/package-frame.html b/jars/gss-lib-2.2/javadoc/com/pras/auth/package-frame.html deleted file mode 100644 index dac61b7..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/auth/package-frame.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - -com.pras.auth - - - - - - - - - - - -com.pras.auth - - - - -
-Interfaces  - -
-Authenticator
- - - - - - -
-Classes  - -
-Account -
-BasicAuthenticatorImpl
- - - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/auth/package-summary.html b/jars/gss-lib-2.2/javadoc/com/pras/auth/package-summary.html deleted file mode 100644 index 73f8d92..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/auth/package-summary.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - -com.pras.auth - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-

-Package com.pras.auth -

- - - - - - - - - -
-Interface Summary
Authenticator 
-  - -

- - - - - - - - - - - - - -
-Class Summary
AccountAccount data holding class
BasicAuthenticatorImplThis will provide a basic and LOW Level way of getting Authetication Token - for various Google's services.
-  - -

-

-
-
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/auth/package-tree.html b/jars/gss-lib-2.2/javadoc/com/pras/auth/package-tree.html deleted file mode 100644 index 380638d..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/auth/package-tree.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - -com.pras.auth Class Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For Package com.pras.auth -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -

-Interface Hierarchy -

- -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/auth/package-use.html b/jars/gss-lib-2.2/javadoc/com/pras/auth/package-use.html deleted file mode 100644 index 8e723c9..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/auth/package-use.html +++ /dev/null @@ -1,191 +0,0 @@ - - - - - - -Uses of Package com.pras.auth - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Package
com.pras.auth

-
- - - - - - - - - - - - - -
-Packages that use com.pras.auth
com.pras  
com.pras.auth  
-  -

- - - - - - - - -
-Classes in com.pras.auth used by com.pras
Authenticator - -
-           
-  -

- - - - - - - - - - - -
-Classes in com.pras.auth used by com.pras.auth
Account - -
-          Account data holding class
Authenticator - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/class-use/Collaborator.html b/jars/gss-lib-2.2/javadoc/com/pras/class-use/Collaborator.html deleted file mode 100644 index 0f27f5f..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/class-use/Collaborator.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - - - -Uses of Class com.pras.Collaborator - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.Collaborator

-
- - - - - - - - - -
-Packages that use Collaborator
com.pras  
-  -

- - - - - -
-Uses of Collaborator in com.pras
-  -

- - - - - - - - - - - - - -
Methods in com.pras that return types with arguments of type Collaborator
- java.util.ArrayList<Collaborator>SpreadSheetFactory.getAllCollaborators(SpreadSheet sp) - -
-          Get list of all Collaborators to whom this SpreadSheet is shared
- java.util.ArrayList<Collaborator>SpreadSheet.getCollaborators() - -
-          Get the list of all Collaborator details (users/groups and their access rights) for a given SpreadSheet
-  -

- - - - - - - - - - - - - - - - - - - - - -
Methods in com.pras with parameters of type Collaborator
- voidSpreadSheet.addCollaborator(Collaborator c) - -
-          Add a Collaborator
- voidSpreadSheetFactory.addSharePermission(SpreadSheet sp, - Collaborator[] collaborators) - -
-          Share a SpreadSheet with a given list of Collaborators.
- voidSpreadSheetFactory.changeSharePermission(Collaborator c, - java.lang.String role) - -
-          Change Share permission for a particular ACL entry
- voidSpreadSheetFactory.removeSharePermission(Collaborator c) - -
-          Remove Share access of a selected user.
-  -

- - - - - - - - - -
Method parameters in com.pras with type arguments of type Collaborator
- voidSpreadSheet.setCollaborators(java.util.ArrayList<Collaborator> collaborators) - -
-          Set a list of Collaborators
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/class-use/Log.html b/jars/gss-lib-2.2/javadoc/com/pras/class-use/Log.html deleted file mode 100644 index b3df417..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/class-use/Log.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class com.pras.Log - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.Log

-
-No usage of com.pras.Log -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/class-use/SpreadSheet.html b/jars/gss-lib-2.2/javadoc/com/pras/class-use/SpreadSheet.html deleted file mode 100644 index 37da703..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/class-use/SpreadSheet.html +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - -Uses of Class com.pras.SpreadSheet - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.SpreadSheet

-
- - - - - - - - - -
-Packages that use SpreadSheet
com.pras  
-  -

- - - - - -
-Uses of SpreadSheet in com.pras
-  -

- - - - - - - - - - - - - - - - - - - - - -
Methods in com.pras that return types with arguments of type SpreadSheet
- java.util.ArrayList<SpreadSheet>SpreadSheetFactory.getAllSpreadSheets() - -
-          Get All stored SpreadSheets from Server
- java.util.ArrayList<SpreadSheet>SpreadSheetFactory.getAllSpreadSheets(boolean doRefresh) - -
-          Get All stored SpreadSheets either from Server or Local Cache
- java.util.ArrayList<SpreadSheet>SpreadSheetFactory.getAllSpreadSheets(boolean doRefresh, - java.lang.String title, - boolean isTitleExact) - -
-          Get All stored SpreadSheets either from Server or Local Cache
- java.util.ArrayList<SpreadSheet>SpreadSheetFactory.getSpreadSheet(java.lang.String title, - boolean isTitleExact) - -
-          Get list of SpreadSheet with matching title.
-  -

- - - - - - - - - - - - - -
Methods in com.pras with parameters of type SpreadSheet
- voidSpreadSheetFactory.addSharePermission(SpreadSheet sp, - Collaborator[] collaborators) - -
-          Share a SpreadSheet with a given list of Collaborators.
- java.util.ArrayList<Collaborator>SpreadSheetFactory.getAllCollaborators(SpreadSheet sp) - -
-          Get list of all Collaborators to whom this SpreadSheet is shared
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/class-use/SpreadSheetFactory.html b/jars/gss-lib-2.2/javadoc/com/pras/class-use/SpreadSheetFactory.html deleted file mode 100644 index 8ba0645..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/class-use/SpreadSheetFactory.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - - -Uses of Class com.pras.SpreadSheetFactory - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.SpreadSheetFactory

-
- - - - - - - - - -
-Packages that use SpreadSheetFactory
com.pras  
-  -

- - - - - -
-Uses of SpreadSheetFactory in com.pras
-  -

- - - - - - - - - - - - - - - - - -
Methods in com.pras that return SpreadSheetFactory
-static SpreadSheetFactorySpreadSheetFactory.getInstance() - -
-          This will return an existing SpreadSheetFactory instance or null -
- Note: - Make sure you have previously called getInstance(String userName, String password)
-static SpreadSheetFactorySpreadSheetFactory.getInstance(Authenticator authenticator) - -
-          This will create SpreadSheetFactory Instance using your custom Authenticatior.
-static SpreadSheetFactorySpreadSheetFactory.getInstance(java.lang.String email, - java.lang.String password) - -
-          This will create SpreadSheetFactory Instance with valid User ID (e.g.
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/class-use/WorkSheet.html b/jars/gss-lib-2.2/javadoc/com/pras/class-use/WorkSheet.html deleted file mode 100644 index 7ae9290..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/class-use/WorkSheet.html +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - -Uses of Class com.pras.WorkSheet - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.WorkSheet

-
- - - - - - - - - -
-Packages that use WorkSheet
com.pras  
-  -

- - - - - -
-Uses of WorkSheet in com.pras
-  -

- - - - - - - - - -
Methods in com.pras that return WorkSheet
- WorkSheetSpreadSheet.addListWorkSheet(java.lang.String name, - int rowCount, - java.lang.String[] cols) - -
-          Create List feed based WorkSheet
-  -

- - - - - - - - - - - - - - - - - - - - - -
Methods in com.pras that return types with arguments of type WorkSheet
- java.util.ArrayList<WorkSheet>SpreadSheet.getAllWorkSheets() - -
-          It will retrieve all WorkSheets of this SpreadSheet from Server
- java.util.ArrayList<WorkSheet>SpreadSheet.getAllWorkSheets(boolean doRefresh) - -
-          It will retrieve all WorkSheets of this SpreadSheet either from Server or from Local Cache
- java.util.ArrayList<WorkSheet>SpreadSheet.getAllWorkSheets(boolean doRefresh, - java.lang.String title, - boolean isTitleExact) - -
-          It will retrieve WorkSheets with matching title either from Server or from Local Cache
- java.util.ArrayList<WorkSheet>SpreadSheet.getWorkSheet(java.lang.String title, - boolean isTitleExact) - -
-          It will retrieve WorkSheets with matching title from Server
-  -

- - - - - - - - - -
Methods in com.pras with parameters of type WorkSheet
- voidSpreadSheet.deleteWorkSheet(WorkSheet wk) - -
-          Delete this WorkSheet
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/class-use/WorkSheetCell.html b/jars/gss-lib-2.2/javadoc/com/pras/class-use/WorkSheetCell.html deleted file mode 100644 index f070f1a..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/class-use/WorkSheetCell.html +++ /dev/null @@ -1,277 +0,0 @@ - - - - - - -Uses of Class com.pras.WorkSheetCell - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.WorkSheetCell

-
- - - - - - - - - - - - - -
-Packages that use WorkSheetCell
com.pras  
com.pras.sp  
-  -

- - - - - -
-Uses of WorkSheetCell in com.pras
-  -

- - - - - - - - - -
Methods in com.pras that return types with arguments of type WorkSheetCell
- java.util.ArrayList<WorkSheetCell>WorkSheetRow.getCells() - -
-           
-  -

- - - - - - - - - -
Method parameters in com.pras with type arguments of type WorkSheetCell
- voidWorkSheetRow.setCells(java.util.ArrayList<WorkSheetCell> cells) - -
-           
-  -

- - - - - -
-Uses of WorkSheetCell in com.pras.sp
-  -

- - - - - - - - - -
Methods in com.pras.sp that return WorkSheetCell
- WorkSheetCellEntry.getCellInfo() - -
-           
-  -

- - - - - - - - - -
Methods in com.pras.sp that return types with arguments of type WorkSheetCell
- java.util.ArrayList<WorkSheetCell>Entry.getCells() - -
-           
-  -

- - - - - - - - - - - - - -
Methods in com.pras.sp with parameters of type WorkSheetCell
- voidEntry.addCell(WorkSheetCell cell) - -
-           
- voidEntry.setCellInfo(WorkSheetCell cellInfo) - -
-           
-  -

- - - - - - - - - -
Method parameters in com.pras.sp with type arguments of type WorkSheetCell
- voidEntry.setCells(java.util.ArrayList<WorkSheetCell> cells) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/class-use/WorkSheetRow.html b/jars/gss-lib-2.2/javadoc/com/pras/class-use/WorkSheetRow.html deleted file mode 100644 index b124dc0..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/class-use/WorkSheetRow.html +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - -Uses of Class com.pras.WorkSheetRow - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.WorkSheetRow

-
- - - - - - - - - -
-Packages that use WorkSheetRow
com.pras  
-  -

- - - - - -
-Uses of WorkSheetRow in com.pras
-  -

- - - - - - - - - - - - - -
Methods in com.pras that return WorkSheetRow
- WorkSheetRowWorkSheet.addListRow(java.util.HashMap<java.lang.String,java.lang.String> records) - -
-          Add List Feed row.
- WorkSheetRowWorkSheet.updateListRow(java.lang.String key, - WorkSheetRow r, - java.util.HashMap<java.lang.String,java.lang.String> records) - -
-          Update List row
-  -

- - - - - - - - - - - - - -
Methods in com.pras that return types with arguments of type WorkSheetRow
- java.util.ArrayList<WorkSheetRow>WorkSheet.getData(boolean isCachedData) - -
-          Get all data of this WorkSheet (List based Feed)
- java.util.ArrayList<WorkSheetRow>WorkSheet.getData(boolean isCachedData, - boolean doReverse, - java.lang.String sq, - java.lang.String orderBy) - -
-          List based Feed for a particular Work Sheet.
-  -

- - - - - - - - - - - - - -
Methods in com.pras with parameters of type WorkSheetRow
- voidWorkSheet.deleteListRow(java.lang.String key, - WorkSheetRow r) - -
-          Delete List Row
- WorkSheetRowWorkSheet.updateListRow(java.lang.String key, - WorkSheetRow r, - java.util.HashMap<java.lang.String,java.lang.String> records) - -
-          Update List row
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/conn/HttpConHandler.html b/jars/gss-lib-2.2/javadoc/com/pras/conn/HttpConHandler.html deleted file mode 100644 index 4aaff7f..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/conn/HttpConHandler.html +++ /dev/null @@ -1,448 +0,0 @@ - - - - - - -HttpConHandler - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras.conn -
-Class HttpConHandler

-
-java.lang.Object
-  extended by com.pras.conn.HttpConHandler
-
-
-
-
public class HttpConHandler
extends java.lang.Object
- - -

-HTTP Connection handler, supports GET, POST, PUT and DELETE. -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Field Summary
-static java.lang.StringAUTHORIZATION_HTTP_HEADER - -
-           
-static java.lang.StringCONTENT_LENGTH_HTTP_HEADER - -
-           
-static java.lang.StringCONTENT_TYPE_HTTP_HEADER - -
-           
-static java.lang.StringGDATA_VERSION_HTTP_HEADER - -
-           
-static intHTTP_DELETE - -
-           
-static intHTTP_GET - -
-           
-static intHTTP_POST - -
-           
-static intHTTP_PUT - -
-           
-  - - - - - - - - - - -
-Constructor Summary
HttpConHandler() - -
-           
-  - - - - - - - - - - - - - - - -
-Method Summary
- ResponsedoConnect(java.lang.String urlStr, - int type, - java.util.HashMap<java.lang.String,java.lang.String> httpHeaders, - java.lang.String postData) - -
-           
-static java.lang.Stringencode(java.lang.String str) - -
-          Encode URL parameters in UTF-8 format
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-AUTHORIZATION_HTTP_HEADER

-
-public static final java.lang.String AUTHORIZATION_HTTP_HEADER
-
-
-
See Also:
Constant Field Values
-
-
- -

-GDATA_VERSION_HTTP_HEADER

-
-public static final java.lang.String GDATA_VERSION_HTTP_HEADER
-
-
-
See Also:
Constant Field Values
-
-
- -

-CONTENT_LENGTH_HTTP_HEADER

-
-public static final java.lang.String CONTENT_LENGTH_HTTP_HEADER
-
-
-
See Also:
Constant Field Values
-
-
- -

-CONTENT_TYPE_HTTP_HEADER

-
-public static final java.lang.String CONTENT_TYPE_HTTP_HEADER
-
-
-
See Also:
Constant Field Values
-
-
- -

-HTTP_GET

-
-public static final int HTTP_GET
-
-
-
See Also:
Constant Field Values
-
-
- -

-HTTP_POST

-
-public static final int HTTP_POST
-
-
-
See Also:
Constant Field Values
-
-
- -

-HTTP_DELETE

-
-public static final int HTTP_DELETE
-
-
-
See Also:
Constant Field Values
-
-
- -

-HTTP_PUT

-
-public static final int HTTP_PUT
-
-
-
See Also:
Constant Field Values
-
- - - - - - - - -
-Constructor Detail
- -

-HttpConHandler

-
-public HttpConHandler()
-
-
- - - - - - - - -
-Method Detail
- -

-doConnect

-
-public Response doConnect(java.lang.String urlStr,
-                          int type,
-                          java.util.HashMap<java.lang.String,java.lang.String> httpHeaders,
-                          java.lang.String postData)
-
-
-
Parameters:
urlStr - HTTP URL
type - Type of Connection (POST, GET, PUT or DELETE)
httpHeaders - HTTP headers
postData - Data to be sent as a part of POST/PUT request -
Returns:
ATOM XML feed and Response/Error message
-
-
-
- -

-encode

-
-public static java.lang.String encode(java.lang.String str)
-
-
Encode URL parameters in UTF-8 format -

-

-
Parameters:
str - String to be URL encoded -
Returns:
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/conn/Response.html b/jars/gss-lib-2.2/javadoc/com/pras/conn/Response.html deleted file mode 100644 index 7f77bf8..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/conn/Response.html +++ /dev/null @@ -1,485 +0,0 @@ - - - - - - -Response - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras.conn -
-Class Response

-
-java.lang.Object
-  extended by com.pras.conn.Response
-
-
-
-
public class Response
extends java.lang.Object
- - -

-Wrapper class to hold Response from Server, Connection Exception etc. -

- -

-

-
Author:
-
rasanta
-
-
- -

- - - - - - - - - - - -
-Constructor Summary
Response() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- java.lang.StringgetErrorStreamMsg() - -
-           
- java.lang.ExceptiongetException() - -
-           
- java.lang.StringgetOutput() - -
-           
- java.lang.StringgetResponseCode() - -
-           
- java.lang.StringgetResponseMessage() - -
-           
- booleanisError() - -
-           
- voidprintErrorLog() - -
-           
- voidsetError(boolean error) - -
-           
- voidsetErrorStreamMsg(java.lang.String errorStreamMsg) - -
-           
- voidsetException(java.lang.Exception exception) - -
-           
- voidsetOutput(java.lang.String output) - -
-           
- voidsetResponseCode(java.lang.String responseCode) - -
-           
- voidsetResponseMessage(java.lang.String responseMessage) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-Response

-
-public Response()
-
-
- - - - - - - - -
-Method Detail
- -

-isError

-
-public boolean isError()
-
-
-
-
-
-
- -

-setError

-
-public void setError(boolean error)
-
-
-
-
-
-
- -

-getResponseCode

-
-public java.lang.String getResponseCode()
-
-
-
-
-
-
- -

-setResponseCode

-
-public void setResponseCode(java.lang.String responseCode)
-
-
-
-
-
-
- -

-getResponseMessage

-
-public java.lang.String getResponseMessage()
-
-
-
-
-
-
- -

-setResponseMessage

-
-public void setResponseMessage(java.lang.String responseMessage)
-
-
-
-
-
-
- -

-getErrorStreamMsg

-
-public java.lang.String getErrorStreamMsg()
-
-
-
-
-
-
- -

-setErrorStreamMsg

-
-public void setErrorStreamMsg(java.lang.String errorStreamMsg)
-
-
-
-
-
-
- -

-getOutput

-
-public java.lang.String getOutput()
-
-
-
-
-
-
- -

-setOutput

-
-public void setOutput(java.lang.String output)
-
-
-
-
-
-
- -

-getException

-
-public java.lang.Exception getException()
-
-
-
-
-
-
- -

-setException

-
-public void setException(java.lang.Exception exception)
-
-
-
-
-
-
- -

-printErrorLog

-
-public void printErrorLog()
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/conn/class-use/HttpConHandler.html b/jars/gss-lib-2.2/javadoc/com/pras/conn/class-use/HttpConHandler.html deleted file mode 100644 index a05aa9c..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/conn/class-use/HttpConHandler.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class com.pras.conn.HttpConHandler - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.conn.HttpConHandler

-
-No usage of com.pras.conn.HttpConHandler -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/conn/class-use/Response.html b/jars/gss-lib-2.2/javadoc/com/pras/conn/class-use/Response.html deleted file mode 100644 index b5bc0a6..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/conn/class-use/Response.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - -Uses of Class com.pras.conn.Response - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.conn.Response

-
- - - - - - - - - -
-Packages that use Response
com.pras.conn  
-  -

- - - - - -
-Uses of Response in com.pras.conn
-  -

- - - - - - - - - -
Methods in com.pras.conn that return Response
- ResponseHttpConHandler.doConnect(java.lang.String urlStr, - int type, - java.util.HashMap<java.lang.String,java.lang.String> httpHeaders, - java.lang.String postData) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/conn/package-frame.html b/jars/gss-lib-2.2/javadoc/com/pras/conn/package-frame.html deleted file mode 100644 index 89dfba5..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/conn/package-frame.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - -com.pras.conn - - - - - - - - - - - -com.pras.conn - - - - -
-Classes  - -
-HttpConHandler -
-Response
- - - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/conn/package-summary.html b/jars/gss-lib-2.2/javadoc/com/pras/conn/package-summary.html deleted file mode 100644 index 7ffb46e..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/conn/package-summary.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - -com.pras.conn - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-

-Package com.pras.conn -

- - - - - - - - - - - - - -
-Class Summary
HttpConHandlerHTTP Connection handler, supports GET, POST, PUT and DELETE.
ResponseWrapper class to hold Response from Server, Connection Exception etc.
-  - -

-

-
-
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/conn/package-tree.html b/jars/gss-lib-2.2/javadoc/com/pras/conn/package-tree.html deleted file mode 100644 index 3ea32a9..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/conn/package-tree.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - -com.pras.conn Class Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For Package com.pras.conn -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/conn/package-use.html b/jars/gss-lib-2.2/javadoc/com/pras/conn/package-use.html deleted file mode 100644 index 44df830..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/conn/package-use.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - -Uses of Package com.pras.conn - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Package
com.pras.conn

-
- - - - - - - - - -
-Packages that use com.pras.conn
com.pras.conn  
-  -

- - - - - - - - -
-Classes in com.pras.conn used by com.pras.conn
Response - -
-          Wrapper class to hold Response from Server, Connection Exception etc.
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/package-frame.html b/jars/gss-lib-2.2/javadoc/com/pras/package-frame.html deleted file mode 100644 index 49c3b8b..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/package-frame.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - -com.pras - - - - - - - - - - - -com.pras - - - - -
-Classes  - -
-Collaborator -
-Log -
-SpreadSheet -
-SpreadSheetFactory -
-WorkSheet -
-WorkSheetCell -
-WorkSheetRow
- - - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/package-summary.html b/jars/gss-lib-2.2/javadoc/com/pras/package-summary.html deleted file mode 100644 index 67c7eb3..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/package-summary.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - - -com.pras - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-

-Package com.pras -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Class Summary
CollaboratorACL details of a SpreadSheet
LogBased on your target platform- edit this file and add appropriate Log console - e.g.
SpreadSheetThis class represents a given Spreadsheet.
SpreadSheetFactory - It is a SpreadSheet Generator Class.
WorkSheetThis class represents an WorkSheet and utility methods to manage WorkSheet data.
WorkSheetCellIndividual Cell of the Work Sheet - One Row can have multiple Cells
WorkSheetRowSupporting class for list based data feed
-  - -

-

-
-
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/package-tree.html b/jars/gss-lib-2.2/javadoc/com/pras/package-tree.html deleted file mode 100644 index 989be03..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/package-tree.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - -com.pras Class Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For Package com.pras -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/package-use.html b/jars/gss-lib-2.2/javadoc/com/pras/package-use.html deleted file mode 100644 index 502aeb4..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/package-use.html +++ /dev/null @@ -1,218 +0,0 @@ - - - - - - -Uses of Package com.pras - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Package
com.pras

-
- - - - - - - - - - - - - -
-Packages that use com.pras
com.pras  
com.pras.sp  
-  -

- - - - - - - - - - - - - - - - - - - - - - - -
-Classes in com.pras used by com.pras
Collaborator - -
-          ACL details of a SpreadSheet
SpreadSheet - -
-          This class represents a given Spreadsheet.
SpreadSheetFactory - -
-           - It is a SpreadSheet Generator Class.
WorkSheet - -
-          This class represents an WorkSheet and utility methods to manage WorkSheet data.
WorkSheetCell - -
-          Individual Cell of the Work Sheet - One Row can have multiple Cells
WorkSheetRow - -
-          Supporting class for list based data feed
-  -

- - - - - - - - -
-Classes in com.pras used by com.pras.sp
WorkSheetCell - -
-          Individual Cell of the Work Sheet - One Row can have multiple Cells
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/sp/Entry.html b/jars/gss-lib-2.2/javadoc/com/pras/sp/Entry.html deleted file mode 100644 index 7c0f59e..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/sp/Entry.html +++ /dev/null @@ -1,1017 +0,0 @@ - - - - - - -Entry - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras.sp -
-Class Entry

-
-java.lang.Object
-  extended by com.pras.sp.Entry
-
-
-
-
public class Entry
extends java.lang.Object
- - -

-This class represents an entry of SpreadSheet XML Feed -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - -
-Constructor Summary
Entry() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidaddCell(WorkSheetCell cell) - -
-           
- voidaddCol(java.lang.String colName) - -
-           
- voidaddField(Field f) - -
-           
- java.lang.StringgetAclRole() - -
-           
- java.lang.StringgetAclScopeType() - -
-           
- java.lang.StringgetAclScopeValue() - -
-           
- java.lang.StringgetAuthorEmail() - -
-           
- java.lang.StringgetAuthorName() - -
-           
- WorkSheetCellgetCellInfo() - -
-           
- java.util.ArrayList<WorkSheetCell>getCells() - -
-           
- intgetColCount() - -
-           
- java.util.ArrayList<java.lang.String>getCols() - -
-           
- java.lang.StringgetEditLink() - -
-           
- java.lang.StringgetETAG() - -
-           
- java.util.ArrayList<Field>getFields() - -
-           
- java.lang.StringgetId() - -
-           
- java.lang.StringgetKey() - -
-           
- java.lang.StringgetResID() - -
-           
- intgetRowCount() - -
-           
- java.lang.StringgetSummary() - -
-           
- java.lang.StringgetTitle() - -
-           
- java.lang.StringgetWorkSheetURL() - -
-           
- voidsetAclRole(java.lang.String aclRole) - -
-           
- voidsetAclScopeType(java.lang.String aclScopeType) - -
-           
- voidsetAclScopeValue(java.lang.String aclScopeValue) - -
-           
- voidsetAuthorEmail(java.lang.String authorEmail) - -
-           
- voidsetAuthorName(java.lang.String authorName) - -
-           
- voidsetCellInfo(WorkSheetCell cellInfo) - -
-           
- voidsetCells(java.util.ArrayList<WorkSheetCell> cells) - -
-           
- voidsetColCount(int colCount) - -
-           
- voidsetCols(java.util.ArrayList<java.lang.String> cols) - -
-           
- voidsetEditLink(java.lang.String editLink) - -
-           
- voidsetETAG(java.lang.String etag) - -
-           
- voidsetFields(java.util.ArrayList<Field> fields) - -
-           
- voidsetId(java.lang.String id) - -
-           
- voidsetKey(java.lang.String key) - -
-           
- voidsetResID(java.lang.String resID) - -
-           
- voidsetRowCount(int rowCount) - -
-           
- voidsetSummary(java.lang.String summary) - -
-           
- voidsetTitle(java.lang.String title) - -
-           
- voidsetWorkSheetURL(java.lang.String workSheetURL) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-Entry

-
-public Entry()
-
-
- - - - - - - - -
-Method Detail
- -

-getETAG

-
-public java.lang.String getETAG()
-
-
-
-
-
-
- -

-setETAG

-
-public void setETAG(java.lang.String etag)
-
-
-
-
-
-
- -

-getId

-
-public java.lang.String getId()
-
-
-
-
-
-
- -

-setId

-
-public void setId(java.lang.String id)
-
-
-
-
-
-
- -

-getKey

-
-public java.lang.String getKey()
-
-
-
-
-
-
- -

-setKey

-
-public void setKey(java.lang.String key)
-
-
-
-
-
-
- -

-getTitle

-
-public java.lang.String getTitle()
-
-
-
-
-
-
- -

-setTitle

-
-public void setTitle(java.lang.String title)
-
-
-
-
-
-
- -

-getWorkSheetURL

-
-public java.lang.String getWorkSheetURL()
-
-
-
-
-
-
- -

-setWorkSheetURL

-
-public void setWorkSheetURL(java.lang.String workSheetURL)
-
-
-
-
-
-
- -

-getAuthorName

-
-public java.lang.String getAuthorName()
-
-
-
-
-
-
- -

-setAuthorName

-
-public void setAuthorName(java.lang.String authorName)
-
-
-
-
-
-
- -

-getAuthorEmail

-
-public java.lang.String getAuthorEmail()
-
-
-
-
-
-
- -

-setAuthorEmail

-
-public void setAuthorEmail(java.lang.String authorEmail)
-
-
-
-
-
-
- -

-getRowCount

-
-public int getRowCount()
-
-
-
-
-
-
- -

-setRowCount

-
-public void setRowCount(int rowCount)
-
-
-
-
-
-
- -

-getColCount

-
-public int getColCount()
-
-
-
-
-
-
- -

-setColCount

-
-public void setColCount(int colCount)
-
-
-
-
-
-
- -

-getCellInfo

-
-public WorkSheetCell getCellInfo()
-
-
-
-
-
-
- -

-setCellInfo

-
-public void setCellInfo(WorkSheetCell cellInfo)
-
-
-
-
-
-
- -

-getCells

-
-public java.util.ArrayList<WorkSheetCell> getCells()
-
-
-
-
-
-
- -

-setCells

-
-public void setCells(java.util.ArrayList<WorkSheetCell> cells)
-
-
-
-
-
-
- -

-addCell

-
-public void addCell(WorkSheetCell cell)
-
-
-
-
-
-
- -

-getResID

-
-public java.lang.String getResID()
-
-
-
-
-
-
- -

-setResID

-
-public void setResID(java.lang.String resID)
-
-
-
-
-
-
- -

-getSummary

-
-public java.lang.String getSummary()
-
-
-
-
-
-
- -

-setSummary

-
-public void setSummary(java.lang.String summary)
-
-
-
-
-
-
- -

-getCols

-
-public java.util.ArrayList<java.lang.String> getCols()
-
-
-
-
-
-
- -

-addCol

-
-public void addCol(java.lang.String colName)
-
-
-
-
-
-
- -

-setCols

-
-public void setCols(java.util.ArrayList<java.lang.String> cols)
-
-
-
-
-
-
- -

-getFields

-
-public java.util.ArrayList<Field> getFields()
-
-
-
-
-
-
- -

-addField

-
-public void addField(Field f)
-
-
-
-
-
-
- -

-setFields

-
-public void setFields(java.util.ArrayList<Field> fields)
-
-
-
-
-
-
- -

-getAclRole

-
-public java.lang.String getAclRole()
-
-
-
-
-
-
- -

-setAclRole

-
-public void setAclRole(java.lang.String aclRole)
-
-
-
-
-
-
- -

-getAclScopeType

-
-public java.lang.String getAclScopeType()
-
-
-
-
-
-
- -

-setAclScopeType

-
-public void setAclScopeType(java.lang.String aclScopeType)
-
-
-
-
-
-
- -

-getAclScopeValue

-
-public java.lang.String getAclScopeValue()
-
-
-
-
-
-
- -

-setAclScopeValue

-
-public void setAclScopeValue(java.lang.String aclScopeValue)
-
-
-
-
-
-
- -

-getEditLink

-
-public java.lang.String getEditLink()
-
-
-
-
-
-
- -

-setEditLink

-
-public void setEditLink(java.lang.String editLink)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/sp/Feed.html b/jars/gss-lib-2.2/javadoc/com/pras/sp/Feed.html deleted file mode 100644 index 6f3098c..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/sp/Feed.html +++ /dev/null @@ -1,409 +0,0 @@ - - - - - - -Feed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras.sp -
-Class Feed

-
-java.lang.Object
-  extended by com.pras.sp.Feed
-
-
-
-
public class Feed
extends java.lang.Object
- - -

-This class is to hold Spreadsheet Feed data -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - -
-Constructor Summary
Feed() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidaddEntry(Entry e) - -
-           
- voidclearEntries() - -
-           
- java.util.ArrayList<Entry>getEntries() - -
-           
- java.lang.StringgetEtag() - -
-           
- java.lang.StringgetId() - -
-           
- java.lang.StringgetTitle() - -
-           
- voidsetEtag(java.lang.String etag) - -
-           
- voidsetId(java.lang.String id) - -
-           
- voidsetTitle(java.lang.String title) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-Feed

-
-public Feed()
-
-
- - - - - - - - -
-Method Detail
- -

-getId

-
-public java.lang.String getId()
-
-
-
-
-
-
- -

-setId

-
-public void setId(java.lang.String id)
-
-
-
-
-
-
- -

-getEtag

-
-public java.lang.String getEtag()
-
-
-
-
-
-
- -

-setEtag

-
-public void setEtag(java.lang.String etag)
-
-
-
-
-
-
- -

-getTitle

-
-public java.lang.String getTitle()
-
-
-
-
-
-
- -

-setTitle

-
-public void setTitle(java.lang.String title)
-
-
-
-
-
-
- -

-getEntries

-
-public java.util.ArrayList<Entry> getEntries()
-
-
-
-
-
-
- -

-addEntry

-
-public void addEntry(Entry e)
-
-
-
-
-
-
- -

-clearEntries

-
-public void clearEntries()
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/sp/Field.html b/jars/gss-lib-2.2/javadoc/com/pras/sp/Field.html deleted file mode 100644 index d61dc14..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/sp/Field.html +++ /dev/null @@ -1,352 +0,0 @@ - - - - - - -Field - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras.sp -
-Class Field

-
-java.lang.Object
-  extended by com.pras.sp.Field
-
-
-
-
public class Field
extends java.lang.Object
- - -

-Class for Table Feed data record in Feed XML -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - -
-Constructor Summary
Field() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- java.lang.StringgetColName() - -
-           
- java.lang.StringgetIndex() - -
-           
- java.lang.StringgetValue() - -
-           
- voidsetColName(java.lang.String colName) - -
-           
- voidsetIndex(java.lang.String index) - -
-           
- voidsetValue(java.lang.String value) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-Field

-
-public Field()
-
-
- - - - - - - - -
-Method Detail
- -

-getColName

-
-public java.lang.String getColName()
-
-
-
-
-
-
- -

-setColName

-
-public void setColName(java.lang.String colName)
-
-
-
-
-
-
- -

-getValue

-
-public java.lang.String getValue()
-
-
-
-
-
-
- -

-setValue

-
-public void setValue(java.lang.String value)
-
-
-
-
-
-
- -

-getIndex

-
-public java.lang.String getIndex()
-
-
-
-
-
-
- -

-setIndex

-
-public void setIndex(java.lang.String index)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/sp/ParseFeed.html b/jars/gss-lib-2.2/javadoc/com/pras/sp/ParseFeed.html deleted file mode 100644 index 6bacefb..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/sp/ParseFeed.html +++ /dev/null @@ -1,428 +0,0 @@ - - - - - - -ParseFeed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras.sp -
-Class ParseFeed

-
-java.lang.Object
-  extended by org.xml.sax.helpers.DefaultHandler
-      extended by com.pras.sp.ParseFeed
-
-
-
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
-
-
-
-
public class ParseFeed
extends org.xml.sax.helpers.DefaultHandler
- - -

-Using SAX Parser, to keep the compatibility with Android -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - -
-Constructor Summary
ParseFeed() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidcharacters(char[] ch, - int start, - int length) - -
-           
-static voiddoCustomizationForSDK() - -
-           
- voidendDocument() - -
-           
- voidendElement(java.lang.String uri, - java.lang.String localName, - java.lang.String name) - -
-           
- Feedparse(byte[] data) - -
-           
- voidstartDocument() - -
-           
- voidstartElement(java.lang.String uri, - java.lang.String localName, - java.lang.String name, - org.xml.sax.Attributes attributes) - -
-           
- - - - - - - -
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ParseFeed

-
-public ParseFeed()
-
-
- - - - - - - - -
-Method Detail
- -

-doCustomizationForSDK

-
-public static void doCustomizationForSDK()
-
-
-
-
-
-
- -

-parse

-
-public Feed parse(byte[] data)
-
-
-
-
-
-
- -

-characters

-
-public void characters(char[] ch,
-                       int start,
-                       int length)
-                throws org.xml.sax.SAXException
-
-
-
Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
-
-
- -
Throws: -
org.xml.sax.SAXException
-
-
-
- -

-startDocument

-
-public void startDocument()
-                   throws org.xml.sax.SAXException
-
-
-
Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
-
-
- -
Throws: -
org.xml.sax.SAXException
-
-
-
- -

-startElement

-
-public void startElement(java.lang.String uri,
-                         java.lang.String localName,
-                         java.lang.String name,
-                         org.xml.sax.Attributes attributes)
-                  throws org.xml.sax.SAXException
-
-
-
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
-
-
- -
Throws: -
org.xml.sax.SAXException
-
-
-
- -

-endDocument

-
-public void endDocument()
-                 throws org.xml.sax.SAXException
-
-
-
Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
-
-
- -
Throws: -
org.xml.sax.SAXException
-
-
-
- -

-endElement

-
-public void endElement(java.lang.String uri,
-                       java.lang.String localName,
-                       java.lang.String name)
-                throws org.xml.sax.SAXException
-
-
-
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
-
-
- -
Throws: -
org.xml.sax.SAXException
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/sp/class-use/Entry.html b/jars/gss-lib-2.2/javadoc/com/pras/sp/class-use/Entry.html deleted file mode 100644 index 0483c6a..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/sp/class-use/Entry.html +++ /dev/null @@ -1,267 +0,0 @@ - - - - - - -Uses of Class com.pras.sp.Entry - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.sp.Entry

-
- - - - - - - - - - - - - -
-Packages that use Entry
com.pras  
com.pras.sp  
-  -

- - - - - -
-Uses of Entry in com.pras
-  -

- - - - - - - - - - - - - -
Methods in com.pras that return Entry
- EntryWorkSheet.getEntry() - -
-          Get Entry instance for this WorkSheet.
- EntrySpreadSheet.getEntry() - -
-          Get Entry Object of SpreadSheet Feed.
-  -

- - - - - - - - - - - - - -
Methods in com.pras with parameters of type Entry
- voidWorkSheet.setEntry(Entry entry) - -
-          Set Feed Entry instance
- voidSpreadSheet.setEntry(Entry entry) - -
-          Set Entry Object of SpreadSheet Feed.
-  -

- - - - - - - - -
Constructors in com.pras with parameters of type Entry
SpreadSheet(Entry entry) - -
-           
-  -

- - - - - -
-Uses of Entry in com.pras.sp
-  -

- - - - - - - - - -
Methods in com.pras.sp that return types with arguments of type Entry
- java.util.ArrayList<Entry>Feed.getEntries() - -
-           
-  -

- - - - - - - - - -
Methods in com.pras.sp with parameters of type Entry
- voidFeed.addEntry(Entry e) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/sp/class-use/Feed.html b/jars/gss-lib-2.2/javadoc/com/pras/sp/class-use/Feed.html deleted file mode 100644 index 93f67ad..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/sp/class-use/Feed.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - - - -Uses of Class com.pras.sp.Feed - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.sp.Feed

-
- - - - - - - - - -
-Packages that use Feed
com.pras.sp  
-  -

- - - - - -
-Uses of Feed in com.pras.sp
-  -

- - - - - - - - - -
Methods in com.pras.sp that return Feed
- FeedParseFeed.parse(byte[] data) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/sp/class-use/Field.html b/jars/gss-lib-2.2/javadoc/com/pras/sp/class-use/Field.html deleted file mode 100644 index 8480777..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/sp/class-use/Field.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - -Uses of Class com.pras.sp.Field - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.sp.Field

-
- - - - - - - - - -
-Packages that use Field
com.pras.sp  
-  -

- - - - - -
-Uses of Field in com.pras.sp
-  -

- - - - - - - - - -
Methods in com.pras.sp that return types with arguments of type Field
- java.util.ArrayList<Field>Entry.getFields() - -
-           
-  -

- - - - - - - - - -
Methods in com.pras.sp with parameters of type Field
- voidEntry.addField(Field f) - -
-           
-  -

- - - - - - - - - -
Method parameters in com.pras.sp with type arguments of type Field
- voidEntry.setFields(java.util.ArrayList<Field> fields) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/sp/class-use/ParseFeed.html b/jars/gss-lib-2.2/javadoc/com/pras/sp/class-use/ParseFeed.html deleted file mode 100644 index 740b57c..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/sp/class-use/ParseFeed.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class com.pras.sp.ParseFeed - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.sp.ParseFeed

-
-No usage of com.pras.sp.ParseFeed -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/sp/package-frame.html b/jars/gss-lib-2.2/javadoc/com/pras/sp/package-frame.html deleted file mode 100644 index fd69d65..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/sp/package-frame.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - -com.pras.sp - - - - - - - - - - - -com.pras.sp - - - - -
-Classes  - -
-Entry -
-Feed -
-Field -
-ParseFeed
- - - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/sp/package-summary.html b/jars/gss-lib-2.2/javadoc/com/pras/sp/package-summary.html deleted file mode 100644 index 4866ef0..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/sp/package-summary.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - -com.pras.sp - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-

-Package com.pras.sp -

- - - - - - - - - - - - - - - - - - - - - -
-Class Summary
EntryThis class represents an entry of SpreadSheet XML Feed
FeedThis class is to hold Spreadsheet Feed data
FieldClass for Table Feed data record in Feed XML
ParseFeedUsing SAX Parser, to keep the compatibility with Android
-  - -

-

-
-
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/sp/package-tree.html b/jars/gss-lib-2.2/javadoc/com/pras/sp/package-tree.html deleted file mode 100644 index 893b678..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/sp/package-tree.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - - -com.pras.sp Class Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For Package com.pras.sp -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/sp/package-use.html b/jars/gss-lib-2.2/javadoc/com/pras/sp/package-use.html deleted file mode 100644 index 617682b..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/sp/package-use.html +++ /dev/null @@ -1,197 +0,0 @@ - - - - - - -Uses of Package com.pras.sp - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Package
com.pras.sp

-
- - - - - - - - - - - - - -
-Packages that use com.pras.sp
com.pras  
com.pras.sp  
-  -

- - - - - - - - -
-Classes in com.pras.sp used by com.pras
Entry - -
-          This class represents an entry of SpreadSheet XML Feed
-  -

- - - - - - - - - - - - - - -
-Classes in com.pras.sp used by com.pras.sp
Entry - -
-          This class represents an entry of SpreadSheet XML Feed
Feed - -
-          This class is to hold Spreadsheet Feed data
Field - -
-          Class for Table Feed data record in Feed XML
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/table/Record.html b/jars/gss-lib-2.2/javadoc/com/pras/table/Record.html deleted file mode 100644 index b51a122..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/table/Record.html +++ /dev/null @@ -1,411 +0,0 @@ - - - - - - -Record - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras.table -
-Class Record

-
-java.lang.Object
-  extended by com.pras.table.Record
-
-
-
-
public class Record
extends java.lang.Object
- - -

-This class represents individual records of the Table (associated with an WorkSheet) -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - -
-Constructor Summary
Record() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidaddData(java.lang.String colName, - java.lang.String value) - -
-          Add data into this Record
- voidclearData() - -
-          Remove all stored data from this Record
- java.util.HashMap<java.lang.String,java.lang.String>getData() - -
-          Get data of this Record
- java.lang.StringgetEditURL() - -
-          Get Record Edit URL
- java.lang.StringgetId() - -
-          Get ID URL of this Record
- voidsetData(java.util.HashMap<java.lang.String,java.lang.String> data) - -
-          Set Data into this Record
- voidsetEditURL(java.lang.String editURL) - -
-          Set Record Edit URL
- voidsetId(java.lang.String id) - -
-          Set ID URL of this Record
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-Record

-
-public Record()
-
-
- - - - - - - - -
-Method Detail
- -

-getEditURL

-
-public java.lang.String getEditURL()
-
-
Get Record Edit URL -

-

- -
Returns:
-
-
-
- -

-setEditURL

-
-public void setEditURL(java.lang.String editURL)
-
-
Set Record Edit URL -

-

-
Parameters:
editURL -
-
-
-
- -

-getData

-
-public java.util.HashMap<java.lang.String,java.lang.String> getData()
-
-
Get data of this Record -

-

- -
Returns:
-
-
-
- -

-clearData

-
-public void clearData()
-
-
Remove all stored data from this Record -

-

-
-
-
-
- -

-addData

-
-public void addData(java.lang.String colName,
-                    java.lang.String value)
-
-
Add data into this Record -

-

-
Parameters:
colName -
value -
-
-
-
- -

-setData

-
-public void setData(java.util.HashMap<java.lang.String,java.lang.String> data)
-
-
Set Data into this Record -

-

-
Parameters:
data -
-
-
-
- -

-getId

-
-public java.lang.String getId()
-
-
Get ID URL of this Record -

-

- -
Returns:
-
-
-
- -

-setId

-
-public void setId(java.lang.String id)
-
-
Set ID URL of this Record -

-

-
Parameters:
id -
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/table/Table.html b/jars/gss-lib-2.2/javadoc/com/pras/table/Table.html deleted file mode 100644 index 3f5fc35..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/table/Table.html +++ /dev/null @@ -1,580 +0,0 @@ - - - - - - -Table - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -com.pras.table -
-Class Table

-
-java.lang.Object
-  extended by com.pras.table.Table
-
-
-
-
public class Table
extends java.lang.Object
- - -

-Table associated with WorkSheet. It holds data and internally used in WorkSheet. -

- -

-

-
Author:
-
Prasanta Paul
-
-
- -

- - - - - - - - - - - -
-Constructor Summary
Table() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidaddRecord(Record data) - -
-           
- voidclearData() - -
-           
- intgetColNum() - -
-           
- java.util.ArrayList<java.lang.String>getCols() - -
-           
- java.lang.StringgetDescription() - -
-           
- java.lang.StringgetId() - -
-           
- java.lang.StringgetName() - -
-           
- java.util.ArrayList<Record>getRecords() - -
-           
- intgetRowNum() - -
-           
- java.lang.StringgetUrl() - -
-           
- voidsetColNum(int colNum) - -
-           
- voidsetCols(java.util.ArrayList<java.lang.String> cols) - -
-           
- voidsetDescription(java.lang.String description) - -
-           
- voidsetId(java.lang.String id) - -
-           
- voidsetName(java.lang.String name) - -
-           
- voidsetRecords(java.util.ArrayList<Record> records) - -
-           
- voidsetRowNum(int rowNum) - -
-           
- voidsetUrl(java.lang.String url) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-Table

-
-public Table()
-
-
- - - - - - - - -
-Method Detail
- -

-getId

-
-public java.lang.String getId()
-
-
-
-
-
-
- -

-setId

-
-public void setId(java.lang.String id)
-
-
-
-
-
-
- -

-getName

-
-public java.lang.String getName()
-
-
-
-
-
-
- -

-setName

-
-public void setName(java.lang.String name)
-
-
-
-
-
-
- -

-getUrl

-
-public java.lang.String getUrl()
-
-
-
-
-
-
- -

-getDescription

-
-public java.lang.String getDescription()
-
-
-
-
-
-
- -

-setDescription

-
-public void setDescription(java.lang.String description)
-
-
-
-
-
-
- -

-setUrl

-
-public void setUrl(java.lang.String url)
-
-
-
-
-
-
- -

-getRowNum

-
-public int getRowNum()
-
-
-
-
-
-
- -

-setRowNum

-
-public void setRowNum(int rowNum)
-
-
-
-
-
-
- -

-getColNum

-
-public int getColNum()
-
-
-
-
-
-
- -

-setColNum

-
-public void setColNum(int colNum)
-
-
-
-
-
-
- -

-getCols

-
-public java.util.ArrayList<java.lang.String> getCols()
-
-
-
-
-
-
- -

-setCols

-
-public void setCols(java.util.ArrayList<java.lang.String> cols)
-
-
-
-
-
-
- -

-getRecords

-
-public java.util.ArrayList<Record> getRecords()
-
-
-
-
-
-
- -

-addRecord

-
-public void addRecord(Record data)
-
-
-
-
-
-
- -

-clearData

-
-public void clearData()
-
-
-
-
-
-
- -

-setRecords

-
-public void setRecords(java.util.ArrayList<Record> records)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/table/class-use/Record.html b/jars/gss-lib-2.2/javadoc/com/pras/table/class-use/Record.html deleted file mode 100644 index 47e7e54..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/table/class-use/Record.html +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - -Uses of Class com.pras.table.Record - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.table.Record

-
- - - - - - - - - - - - - -
-Packages that use Record
com.pras  
com.pras.table  
-  -

- - - - - -
-Uses of Record in com.pras
-  -

- - - - - - - - - - - - - - - - - - - - - -
Methods in com.pras that return types with arguments of type Record
- java.util.ArrayList<Record>WorkSheet.getRecords() - -
-          Get Cached Data (previously retrieved from server)
- java.util.ArrayList<Record>WorkSheet.getRecords(java.lang.String key) - -
-          Get data stored in this WorkSheet
- java.util.ArrayList<Record>WorkSheet.getRecords(java.lang.String key, - boolean doReverse, - java.lang.String sq, - java.lang.String orderBy) - -
-          Get data stored in this WorkSheet.
- java.util.ArrayList<Record>WorkSheet.getRecords(java.lang.String key, - java.lang.String sq) - -
-           
-  -

- - - - - - - - - - - - - -
Methods in com.pras with parameters of type Record
- voidWorkSheet.deleteRecord(Record record) - -
-          Delete a Record
- voidWorkSheet.updateRecord(Record record) - -
-          Record instance you want to Update - Keep only those data which you want to update for this record
-  -

- - - - - -
-Uses of Record in com.pras.table
-  -

- - - - - - - - - -
Methods in com.pras.table that return types with arguments of type Record
- java.util.ArrayList<Record>Table.getRecords() - -
-           
-  -

- - - - - - - - - -
Methods in com.pras.table with parameters of type Record
- voidTable.addRecord(Record data) - -
-           
-  -

- - - - - - - - - -
Method parameters in com.pras.table with type arguments of type Record
- voidTable.setRecords(java.util.ArrayList<Record> records) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/table/class-use/Table.html b/jars/gss-lib-2.2/javadoc/com/pras/table/class-use/Table.html deleted file mode 100644 index 6bc2f87..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/table/class-use/Table.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class com.pras.table.Table - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
com.pras.table.Table

-
-No usage of com.pras.table.Table -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/table/package-frame.html b/jars/gss-lib-2.2/javadoc/com/pras/table/package-frame.html deleted file mode 100644 index af4fba7..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/table/package-frame.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - -com.pras.table - - - - - - - - - - - -com.pras.table - - - - -
-Classes  - -
-Record -
-Table
- - - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/table/package-summary.html b/jars/gss-lib-2.2/javadoc/com/pras/table/package-summary.html deleted file mode 100644 index 04fd223..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/table/package-summary.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - -com.pras.table - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-

-Package com.pras.table -

- - - - - - - - - - - - - -
-Class Summary
RecordThis class represents individual records of the Table (associated with an WorkSheet)
TableTable associated with WorkSheet.
-  - -

-

-
-
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/table/package-tree.html b/jars/gss-lib-2.2/javadoc/com/pras/table/package-tree.html deleted file mode 100644 index a74eeb2..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/table/package-tree.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - -com.pras.table Class Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For Package com.pras.table -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/com/pras/table/package-use.html b/jars/gss-lib-2.2/javadoc/com/pras/table/package-use.html deleted file mode 100644 index 0a6d4b8..0000000 --- a/jars/gss-lib-2.2/javadoc/com/pras/table/package-use.html +++ /dev/null @@ -1,185 +0,0 @@ - - - - - - -Uses of Package com.pras.table - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Package
com.pras.table

-
- - - - - - - - - - - - - -
-Packages that use com.pras.table
com.pras  
com.pras.table  
-  -

- - - - - - - - -
-Classes in com.pras.table used by com.pras
Record - -
-          This class represents individual records of the Table (associated with an WorkSheet)
-  -

- - - - - - - - -
-Classes in com.pras.table used by com.pras.table
Record - -
-          This class represents individual records of the Table (associated with an WorkSheet)
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/constant-values.html b/jars/gss-lib-2.2/javadoc/constant-values.html deleted file mode 100644 index 8ff0007..0000000 --- a/jars/gss-lib-2.2/javadoc/constant-values.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - -Constant Field Values - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Constant Field Values

-
-
-Contents - - - - - - -
-com.pras.*
- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
com.pras.conn.HttpConHandler
-public static final java.lang.StringAUTHORIZATION_HTTP_HEADER"Authorization"
-public static final java.lang.StringCONTENT_LENGTH_HTTP_HEADER"Content-Length"
-public static final java.lang.StringCONTENT_TYPE_HTTP_HEADER"Content-Type"
-public static final java.lang.StringGDATA_VERSION_HTTP_HEADER"GData-Version"
-public static final intHTTP_DELETE163
-public static final intHTTP_GET161
-public static final intHTTP_POST162
-public static final intHTTP_PUT164
- -

- -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/deprecated-list.html b/jars/gss-lib-2.2/javadoc/deprecated-list.html deleted file mode 100644 index a4e9a5c..0000000 --- a/jars/gss-lib-2.2/javadoc/deprecated-list.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - -Deprecated List - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Deprecated API

-
-
-Contents - -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/help-doc.html b/jars/gss-lib-2.2/javadoc/help-doc.html deleted file mode 100644 index ffb270f..0000000 --- a/jars/gss-lib-2.2/javadoc/help-doc.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - - -API Help - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-How This API Document Is Organized

-
-This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

-Overview

-
- -

-The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

-

-Package

-
- -

-Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

-
-

-Class/Interface

-
- -

-Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

-Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
- -

-Annotation Type

-
- -

-Each annotation type has its own separate page with the following sections:

-
- -

-Enum

-
- -

-Each enum has its own separate page with the following sections:

-
-

-Use

-
-Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
-

-Tree (Class Hierarchy)

-
-There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object. -
-

-Deprecated API

-
-The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
-

-Index

-
-The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
-

-Prev/Next

-These links take you to the next or previous class, interface, package, or related page.

-Frames/No Frames

-These links show and hide the HTML frames. All pages are available with or without frames. -

-

-Serialized Form

-Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. -

-

-Constant Field Values

-The Constant Field Values page lists the static final fields and their values. -

- - -This help file applies to API documentation generated using the standard doclet. - -
-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-1.html b/jars/gss-lib-2.2/javadoc/index-files/index-1.html deleted file mode 100644 index aa35cbd..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-1.html +++ /dev/null @@ -1,191 +0,0 @@ - - - - - - -A-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-A

-
-
Account - Class in com.pras.auth
Account data holding class
Account() - -Constructor for class com.pras.auth.Account -
  -
addCell(WorkSheetCell) - -Method in class com.pras.sp.Entry -
  -
addCol(String) - -Method in class com.pras.sp.Entry -
  -
addCollaborator(Collaborator) - -Method in class com.pras.SpreadSheet -
Add a Collaborator -
addData(String, String) - -Method in class com.pras.table.Record -
Add data into this Record -
addEntry(Entry) - -Method in class com.pras.sp.Feed -
  -
addField(Field) - -Method in class com.pras.sp.Entry -
  -
addListRow(HashMap<String, String>) - -Method in class com.pras.WorkSheet -
Add List Feed row. -
addListWorkSheet(String, int, String[]) - -Method in class com.pras.SpreadSheet -
Create List feed based WorkSheet -
addRecord(Record) - -Method in class com.pras.table.Table -
  -
addRecord(String, HashMap<String, String>) - -Method in class com.pras.WorkSheet -
Add record into WorkSheet. -
addSharePermission(SpreadSheet, Collaborator[]) - -Method in class com.pras.SpreadSheetFactory -
Share a SpreadSheet with a given list of Collaborators. -
addWorkSheet(String) - -Method in class com.pras.SpreadSheet -
This will create an WorkSheet without Table. -
addWorkSheet(String, String[]) - -Method in class com.pras.SpreadSheet -
Add WorkSheet - This will create an Internal Table and manage WorkSheet data in that Table. -
addWorkSheet(String, String, int, String[]) - -Method in class com.pras.SpreadSheet -
Add WorkSheet
- It will create a Table for this WorkSheet. -
Authenticator - Interface in com.pras.auth
 
AUTHORIZATION_HTTP_HEADER - -Static variable in class com.pras.conn.HttpConHandler -
  -
authToken - -Static variable in class com.pras.SpreadSheetFactory -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-10.html b/jars/gss-lib-2.2/javadoc/index-files/index-10.html deleted file mode 100644 index 17f17d3..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-10.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - -L-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-L

-
-
Log - Class in com.pras
Based on your target platform- edit this file and add appropriate Log console - e.g.
Log() - -Constructor for class com.pras.Log -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-11.html b/jars/gss-lib-2.2/javadoc/index-files/index-11.html deleted file mode 100644 index 5c5de7c..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-11.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - -P-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-P

-
-
p(String, String) - -Static method in class com.pras.Log -
Pring Log message -
parse(byte[]) - -Method in class com.pras.sp.ParseFeed -
  -
ParseFeed - Class in com.pras.sp
Using SAX Parser, to keep the compatibility with Android
ParseFeed() - -Constructor for class com.pras.sp.ParseFeed -
  -
printErrorLog() - -Method in class com.pras.conn.Response -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-12.html b/jars/gss-lib-2.2/javadoc/index-files/index-12.html deleted file mode 100644 index b31475b..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-12.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - -R-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-R

-
-
Record - Class in com.pras.table
This class represents individual records of the Table (associated with an WorkSheet)
Record() - -Constructor for class com.pras.table.Record -
  -
removeSharePermission(Collaborator) - -Method in class com.pras.SpreadSheetFactory -
Remove Share access of a selected user. -
Response - Class in com.pras.conn
Wrapper class to hold Response from Server, Connection Exception etc.
Response() - -Constructor for class com.pras.conn.Response -
  -
ROLE_OWNER - -Static variable in class com.pras.Collaborator -
Owner of a SpreadSheet -
ROLE_READER - -Static variable in class com.pras.Collaborator -
Able to Read -
ROLE_WRITER - -Static variable in class com.pras.Collaborator -
Able to Read/Write and Further Share as Reader/Writer -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-13.html b/jars/gss-lib-2.2/javadoc/index-files/index-13.html deleted file mode 100644 index 70dfa40..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-13.html +++ /dev/null @@ -1,361 +0,0 @@ - - - - - - -S-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-S

-
-
SCOPE_DEFAULT - -Static variable in class com.pras.Collaborator -
Use this scope to make the SpreadSheet publicly accessible to anyuser -
SCOPE_DOMAIN - -Static variable in class com.pras.Collaborator -
Use this scope to share it with a Domain -
SCOPE_GROUP - -Static variable in class com.pras.Collaborator -
Use this scope to share it with a Group -
SCOPE_USER - -Static variable in class com.pras.Collaborator -
Use this scope to share it with an Email account -
setAccountType(String) - -Method in class com.pras.auth.Account -
  -
setAclRole(String) - -Method in class com.pras.sp.Entry -
  -
setAclScopeType(String) - -Method in class com.pras.sp.Entry -
  -
setAclScopeValue(String) - -Method in class com.pras.sp.Entry -
  -
setAuthorEmail(String) - -Method in class com.pras.sp.Entry -
  -
setAuthorName(String) - -Method in class com.pras.sp.Entry -
  -
setCellInfo(WorkSheetCell) - -Method in class com.pras.sp.Entry -
  -
setCells(ArrayList<WorkSheetCell>) - -Method in class com.pras.sp.Entry -
  -
setCells(ArrayList<WorkSheetCell>) - -Method in class com.pras.WorkSheetRow -
  -
setCol(int) - -Method in class com.pras.WorkSheetCell -
  -
setColCount(int) - -Method in class com.pras.sp.Entry -
  -
setColCount(int) - -Method in class com.pras.WorkSheet -
Set column count of this WorkSheet -
setCollaborators(ArrayList<Collaborator>) - -Method in class com.pras.SpreadSheet -
Set a list of Collaborators -
setColName(String) - -Method in class com.pras.sp.Field -
  -
setColNum(int) - -Method in class com.pras.table.Table -
  -
setCols(ArrayList<String>) - -Method in class com.pras.sp.Entry -
  -
setCols(ArrayList<String>) - -Method in class com.pras.table.Table -
  -
setColumns(String[]) - -Method in class com.pras.WorkSheet -
Set columns of ListFeed -
setData(HashMap<String, String>) - -Method in class com.pras.table.Record -
Set Data into this Record -
setDescription(String) - -Method in class com.pras.table.Table -
  -
setEditLink(String) - -Method in class com.pras.Collaborator -
Set Edit Link -
setEditLink(String) - -Method in class com.pras.sp.Entry -
  -
setEditURL(String) - -Method in class com.pras.table.Record -
Set Record Edit URL -
setEmail(String) - -Method in class com.pras.auth.Account -
  -
setEntry(Entry) - -Method in class com.pras.SpreadSheet -
Set Entry Object of SpreadSheet Feed. -
setEntry(Entry) - -Method in class com.pras.WorkSheet -
Set Feed Entry instance -
setError(boolean) - -Method in class com.pras.conn.Response -
  -
setErrorStreamMsg(String) - -Method in class com.pras.conn.Response -
  -
setETAG(String) - -Method in class com.pras.sp.Entry -
  -
setEtag(String) - -Method in class com.pras.sp.Feed -
  -
setException(Exception) - -Method in class com.pras.conn.Response -
  -
setFields(ArrayList<Field>) - -Method in class com.pras.sp.Entry -
  -
setId(String) - -Method in class com.pras.sp.Entry -
  -
setId(String) - -Method in class com.pras.sp.Feed -
  -
setId(String) - -Method in class com.pras.table.Record -
Set ID URL of this Record -
setId(String) - -Method in class com.pras.table.Table -
  -
setId(String) - -Method in class com.pras.WorkSheetRow -
  -
setIndex(String) - -Method in class com.pras.sp.Field -
  -
setKey(String) - -Method in class com.pras.sp.Entry -
  -
setName(String) - -Method in class com.pras.table.Table -
  -
setName(String) - -Method in class com.pras.WorkSheetCell -
  -
setOutput(String) - -Method in class com.pras.conn.Response -
  -
setPassword(String) - -Method in class com.pras.auth.Account -
  -
setRecords(ArrayList<Record>) - -Method in class com.pras.table.Table -
  -
setResID(String) - -Method in class com.pras.sp.Entry -
  -
setResponseCode(String) - -Method in class com.pras.conn.Response -
  -
setResponseMessage(String) - -Method in class com.pras.conn.Response -
  -
setRole(String) - -Method in class com.pras.Collaborator -
Set Role - {"owner", "writer", "reader"} -
setRow(int) - -Method in class com.pras.WorkSheetCell -
  -
setRowCount(int) - -Method in class com.pras.sp.Entry -
  -
setRowCount(int) - -Method in class com.pras.WorkSheet -
Set row count of this WorkSheet -
setRowIndex(String) - -Method in class com.pras.WorkSheetRow -
  -
setRowNum(int) - -Method in class com.pras.table.Table -
  -
setScopeType(String) - -Method in class com.pras.Collaborator -
Set Scope Type {"user", "group", "domain", "default"} -
setScopeValue(String) - -Method in class com.pras.Collaborator -
Set Scope Value -
setSummary(String) - -Method in class com.pras.sp.Entry -
  -
setTitle(String) - -Method in class com.pras.sp.Entry -
  -
setTitle(String) - -Method in class com.pras.sp.Feed -
  -
setTitle(String) - -Method in class com.pras.WorkSheet -
Set WorkSheet Title -
setType(String) - -Method in class com.pras.WorkSheetCell -
  -
setType(String) - -Method in class com.pras.WorkSheetRow -
  -
setUrl(String) - -Method in class com.pras.table.Table -
  -
setValue(String) - -Method in class com.pras.sp.Field -
  -
setValue(String) - -Method in class com.pras.WorkSheetCell -
  -
setWorkSheetID(String) - -Method in class com.pras.WorkSheet -
Set WorkSheet ID -
setWorkSheetURL(String) - -Method in class com.pras.sp.Entry -
  -
setWorkSheetURL(String) - -Method in class com.pras.WorkSheet -
Set WorkSheet -
SpreadSheet - Class in com.pras
This class represents a given Spreadsheet.
SpreadSheet(Entry) - -Constructor for class com.pras.SpreadSheet -
  -
SpreadSheetFactory - Class in com.pras
- It is a SpreadSheet Generator Class.
startDocument() - -Method in class com.pras.sp.ParseFeed -
  -
startElement(String, String, String, Attributes) - -Method in class com.pras.sp.ParseFeed -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-14.html b/jars/gss-lib-2.2/javadoc/index-files/index-14.html deleted file mode 100644 index 59de2da..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-14.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - -T-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-T

-
-
Table - Class in com.pras.table
Table associated with WorkSheet.
Table() - -Constructor for class com.pras.table.Table -
  -
toString() - -Method in class com.pras.WorkSheetCell -
  -
toString() - -Method in class com.pras.WorkSheetRow -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-15.html b/jars/gss-lib-2.2/javadoc/index-files/index-15.html deleted file mode 100644 index 43d16cb..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-15.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - -U-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-U

-
-
updateListRow(String, WorkSheetRow, HashMap<String, String>) - -Method in class com.pras.WorkSheet -
Update List row -
updateRecord(Record) - -Method in class com.pras.WorkSheet -
Record instance you want to Update - Keep only those data which you want to update for this record -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-16.html b/jars/gss-lib-2.2/javadoc/index-files/index-16.html deleted file mode 100644 index 38e9edc..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-16.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - -W-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-W

-
-
WorkSheet - Class in com.pras
This class represents an WorkSheet and utility methods to manage WorkSheet data.
WorkSheet() - -Constructor for class com.pras.WorkSheet -
  -
WorkSheetCell - Class in com.pras
Individual Cell of the Work Sheet - One Row can have multiple Cells
WorkSheetCell() - -Constructor for class com.pras.WorkSheetCell -
  -
WorkSheetRow - Class in com.pras
Supporting class for list based data feed
WorkSheetRow() - -Constructor for class com.pras.WorkSheetRow -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-2.html b/jars/gss-lib-2.2/javadoc/index-files/index-2.html deleted file mode 100644 index 427473c..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-2.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - -B-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-B

-
-
BasicAuthenticatorImpl - Class in com.pras.auth
This will provide a basic and LOW Level way of getting Authetication Token - for various Google's services.
BasicAuthenticatorImpl(Account) - -Constructor for class com.pras.auth.BasicAuthenticatorImpl -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-3.html b/jars/gss-lib-2.2/javadoc/index-files/index-3.html deleted file mode 100644 index ff1423a..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-3.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -C-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-C

-
-
changeSharePermission(Collaborator, String) - -Method in class com.pras.SpreadSheetFactory -
Change Share permission for a particular ACL entry -
characters(char[], int, int) - -Method in class com.pras.sp.ParseFeed -
  -
clearCollaboratorList() - -Method in class com.pras.SpreadSheet -
Clear existing list of Collaborators -
clearData() - -Method in class com.pras.table.Record -
Remove all stored data from this Record -
clearData() - -Method in class com.pras.table.Table -
  -
clearEntries() - -Method in class com.pras.sp.Feed -
  -
Collaborator - Class in com.pras
ACL details of a SpreadSheet
Collaborator() - -Constructor for class com.pras.Collaborator -
  -
com.pras - package com.pras
 
com.pras.auth - package com.pras.auth
 
com.pras.conn - package com.pras.conn
 
com.pras.sp - package com.pras.sp
 
com.pras.table - package com.pras.table
 
CONTENT_LENGTH_HTTP_HEADER - -Static variable in class com.pras.conn.HttpConHandler -
  -
CONTENT_TYPE_HTTP_HEADER - -Static variable in class com.pras.conn.HttpConHandler -
  -
createSpreadSheet(String) - -Method in class com.pras.SpreadSheetFactory -
Create SpreadSheet with the given name -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-4.html b/jars/gss-lib-2.2/javadoc/index-files/index-4.html deleted file mode 100644 index cfd6be1..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-4.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - -D-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-D

-
-
delete() - -Method in class com.pras.WorkSheet -
Delete this WorkSheet. -
deleteListRow(String, WorkSheetRow) - -Method in class com.pras.WorkSheet -
Delete List Row -
deleteRecord(Record) - -Method in class com.pras.WorkSheet -
Delete a Record -
deleteSpreadSheet(String) - -Method in class com.pras.SpreadSheetFactory -
Delete a SpreadSheet -
deleteWorkSheet(WorkSheet) - -Method in class com.pras.SpreadSheet -
Delete this WorkSheet -
disableLog() - -Static method in class com.pras.Log -
Disable logging. -
doConnect(String, int, HashMap<String, String>, String) - -Method in class com.pras.conn.HttpConHandler -
  -
doCustomizationForSDK() - -Static method in class com.pras.sp.ParseFeed -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-5.html b/jars/gss-lib-2.2/javadoc/index-files/index-5.html deleted file mode 100644 index 9d0c320..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-5.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - -E-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-E

-
-
enableLog() - -Static method in class com.pras.Log -
Enable logging -
encode(String) - -Static method in class com.pras.conn.HttpConHandler -
Encode URL parameters in UTF-8 format -
endDocument() - -Method in class com.pras.sp.ParseFeed -
  -
endElement(String, String, String) - -Method in class com.pras.sp.ParseFeed -
  -
Entry - Class in com.pras.sp
This class represents an entry of SpreadSheet XML Feed
Entry() - -Constructor for class com.pras.sp.Entry -
  -
equals(Object) - -Method in class com.pras.SpreadSheet -
  -
equals(Object) - -Method in class com.pras.WorkSheetRow -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-6.html b/jars/gss-lib-2.2/javadoc/index-files/index-6.html deleted file mode 100644 index 5f4be44..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-6.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - -F-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-F

-
-
Feed - Class in com.pras.sp
This class is to hold Spreadsheet Feed data
Feed() - -Constructor for class com.pras.sp.Feed -
  -
Field - Class in com.pras.sp
Class for Table Feed data record in Feed XML
Field() - -Constructor for class com.pras.sp.Field -
  -
flushMe() - -Method in class com.pras.SpreadSheetFactory -
Deallocate SpreadSheetFactory instance -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-7.html b/jars/gss-lib-2.2/javadoc/index-files/index-7.html deleted file mode 100644 index cdfa9dd..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-7.html +++ /dev/null @@ -1,414 +0,0 @@ - - - - - - -G-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-G

-
-
GDATA_VERSION_HTTP_HEADER - -Static variable in class com.pras.conn.HttpConHandler -
  -
getAccountType() - -Method in class com.pras.auth.Account -
  -
getAclRole() - -Method in class com.pras.sp.Entry -
  -
getAclScopeType() - -Method in class com.pras.sp.Entry -
  -
getAclScopeValue() - -Method in class com.pras.sp.Entry -
  -
getAllCollaborators(SpreadSheet) - -Method in class com.pras.SpreadSheetFactory -
Get list of all Collaborators to whom this SpreadSheet is shared -
getAllSpreadSheets() - -Method in class com.pras.SpreadSheetFactory -
Get All stored SpreadSheets from Server -
getAllSpreadSheets(boolean) - -Method in class com.pras.SpreadSheetFactory -
Get All stored SpreadSheets either from Server or Local Cache -
getAllSpreadSheets(boolean, String, boolean) - -Method in class com.pras.SpreadSheetFactory -
Get All stored SpreadSheets either from Server or Local Cache -
getAllWorkSheets() - -Method in class com.pras.SpreadSheet -
It will retrieve all WorkSheets of this SpreadSheet from Server -
getAllWorkSheets(boolean) - -Method in class com.pras.SpreadSheet -
It will retrieve all WorkSheets of this SpreadSheet either from Server or from Local Cache -
getAllWorkSheets(boolean, String, boolean) - -Method in class com.pras.SpreadSheet -
It will retrieve WorkSheets with matching title either from Server or from Local Cache -
getAuthorEmail() - -Method in class com.pras.sp.Entry -
  -
getAuthorName() - -Method in class com.pras.sp.Entry -
  -
getAuthToken(String) - -Method in interface com.pras.auth.Authenticator -
Do the authentication and read Auth_Token from Server. -
getAuthToken(String) - -Method in class com.pras.auth.BasicAuthenticatorImpl -
  -
getCellInfo() - -Method in class com.pras.sp.Entry -
  -
getCells() - -Method in class com.pras.sp.Entry -
  -
getCells() - -Method in class com.pras.WorkSheetRow -
  -
getCol() - -Method in class com.pras.WorkSheetCell -
  -
getColCount() - -Method in class com.pras.sp.Entry -
  -
getColCount() - -Method in class com.pras.WorkSheet -
Get column count of this WorkSheet -
getCollaborators() - -Method in class com.pras.SpreadSheet -
Get the list of all Collaborator details (users/groups and their access rights) for a given SpreadSheet -
getColName() - -Method in class com.pras.sp.Field -
  -
getColNum() - -Method in class com.pras.table.Table -
  -
getCols() - -Method in class com.pras.sp.Entry -
  -
getCols() - -Method in class com.pras.table.Table -
  -
getColumns() - -Method in class com.pras.WorkSheet -
Get columns of the WorkSheet. -
getData() - -Method in class com.pras.table.Record -
Get data of this Record -
getData(boolean) - -Method in class com.pras.WorkSheet -
Get all data of this WorkSheet (List based Feed) -
getData(boolean, boolean, String, String) - -Method in class com.pras.WorkSheet -
List based Feed for a particular Work Sheet. -
getDescription() - -Method in class com.pras.table.Table -
  -
getEditLink() - -Method in class com.pras.Collaborator -
Get Edit Link -
getEditLink() - -Method in class com.pras.sp.Entry -
  -
getEditURL() - -Method in class com.pras.table.Record -
Get Record Edit URL -
getEmail() - -Method in class com.pras.auth.Account -
  -
getEntries() - -Method in class com.pras.sp.Feed -
  -
getEntry() - -Method in class com.pras.SpreadSheet -
Get Entry Object of SpreadSheet Feed. -
getEntry() - -Method in class com.pras.WorkSheet -
Get Entry instance for this WorkSheet. -
getErrorStreamMsg() - -Method in class com.pras.conn.Response -
  -
getETAG() - -Method in class com.pras.sp.Entry -
  -
getEtag() - -Method in class com.pras.sp.Feed -
  -
getException() - -Method in class com.pras.conn.Response -
  -
getFields() - -Method in class com.pras.sp.Entry -
  -
getId() - -Method in class com.pras.sp.Entry -
  -
getId() - -Method in class com.pras.sp.Feed -
  -
getId() - -Method in class com.pras.table.Record -
Get ID URL of this Record -
getId() - -Method in class com.pras.table.Table -
  -
getId() - -Method in class com.pras.WorkSheetRow -
  -
getIndex() - -Method in class com.pras.sp.Field -
  -
getInstance() - -Static method in class com.pras.SpreadSheetFactory -
This will return an existing SpreadSheetFactory instance or null -
- Note: - Make sure you have previously called getInstance(String userName, String password) -
getInstance(String, String) - -Static method in class com.pras.SpreadSheetFactory -
This will create SpreadSheetFactory Instance with valid User ID (e.g. -
getInstance(Authenticator) - -Static method in class com.pras.SpreadSheetFactory -
This will create SpreadSheetFactory Instance using your custom Authenticatior. -
getKey() - -Method in class com.pras.sp.Entry -
  -
getKey() - -Method in class com.pras.SpreadSheet -
Get SpreadSheet Feed Key -
getName() - -Method in class com.pras.table.Table -
  -
getName() - -Method in class com.pras.WorkSheetCell -
  -
getOutput() - -Method in class com.pras.conn.Response -
  -
getPassword() - -Method in class com.pras.auth.Account -
  -
getRecords() - -Method in class com.pras.table.Table -
  -
getRecords(String) - -Method in class com.pras.WorkSheet -
Get data stored in this WorkSheet -
getRecords(String, String) - -Method in class com.pras.WorkSheet -
  -
getRecords(String, boolean, String, String) - -Method in class com.pras.WorkSheet -
Get data stored in this WorkSheet. -
getRecords() - -Method in class com.pras.WorkSheet -
Get Cached Data (previously retrieved from server) -
getResID() - -Method in class com.pras.sp.Entry -
  -
getResourceID() - -Method in class com.pras.SpreadSheet -
Get SpreadSheet Resource ID. -
getResponseCode() - -Method in class com.pras.conn.Response -
  -
getResponseMessage() - -Method in class com.pras.conn.Response -
  -
getRole() - -Method in class com.pras.Collaborator -
Get Role - {"owner", "writer", "reader"} -
getRow() - -Method in class com.pras.WorkSheetCell -
  -
getRowCount() - -Method in class com.pras.sp.Entry -
  -
getRowCount() - -Method in class com.pras.WorkSheet -
Get row count of this WorkSheet -
getRowIndex() - -Method in class com.pras.WorkSheetRow -
  -
getRowNum() - -Method in class com.pras.table.Table -
  -
getScopeType() - -Method in class com.pras.Collaborator -
Get Scope Type - {"user", "group", "domain", "default"} -
getScopeValue() - -Method in class com.pras.Collaborator -
Get Scope Value e.g. -
getSpreadSheet(String, boolean) - -Method in class com.pras.SpreadSheetFactory -
Get list of SpreadSheet with matching title. -
getSummary() - -Method in class com.pras.sp.Entry -
  -
getTitle() - -Method in class com.pras.sp.Entry -
  -
getTitle() - -Method in class com.pras.sp.Feed -
  -
getTitle() - -Method in class com.pras.SpreadSheet -
Get SpreadSheet Title -
getTitle() - -Method in class com.pras.WorkSheet -
Get WorkSheet Title -
getType() - -Method in class com.pras.WorkSheetCell -
  -
getType() - -Method in class com.pras.WorkSheetRow -
  -
getUrl() - -Method in class com.pras.table.Table -
  -
getValue() - -Method in class com.pras.sp.Field -
  -
getValue() - -Method in class com.pras.WorkSheetCell -
  -
getWorkSheet(String, boolean) - -Method in class com.pras.SpreadSheet -
It will retrieve WorkSheets with matching title from Server -
getWorkSheetID() - -Method in class com.pras.WorkSheet -
Get WorkSheet ID -
getWorkSheetURL() - -Method in class com.pras.sp.Entry -
  -
getWorkSheetURL() - -Method in class com.pras.WorkSheet -
Get WorkSheetURL -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-8.html b/jars/gss-lib-2.2/javadoc/index-files/index-8.html deleted file mode 100644 index 94c08da..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-8.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - -H-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-H

-
-
hashCode() - -Method in class com.pras.SpreadSheet -
  -
hashCode() - -Method in class com.pras.WorkSheetRow -
  -
HTTP_DELETE - -Static variable in class com.pras.conn.HttpConHandler -
  -
HTTP_GET - -Static variable in class com.pras.conn.HttpConHandler -
  -
HTTP_POST - -Static variable in class com.pras.conn.HttpConHandler -
  -
HTTP_PUT - -Static variable in class com.pras.conn.HttpConHandler -
  -
HttpConHandler - Class in com.pras.conn
HTTP Connection handler, supports GET, POST, PUT and DELETE.
HttpConHandler() - -Constructor for class com.pras.conn.HttpConHandler -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index-files/index-9.html b/jars/gss-lib-2.2/javadoc/index-files/index-9.html deleted file mode 100644 index beeb3ba..0000000 --- a/jars/gss-lib-2.2/javadoc/index-files/index-9.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - -I-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
-

-I

-
-
isError() - -Method in class com.pras.conn.Response -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I L P R S T U W
- - - diff --git a/jars/gss-lib-2.2/javadoc/index.html b/jars/gss-lib-2.2/javadoc/index.html deleted file mode 100644 index 09b6883..0000000 --- a/jars/gss-lib-2.2/javadoc/index.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - -Generated Documentation (Untitled) - - - - - - - - - - - -<H2> -Frame Alert</H2> - -<P> -This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. -<BR> -Link to<A HREF="overview-summary.html">Non-frame version.</A> - - - diff --git a/jars/gss-lib-2.2/javadoc/overview-frame.html b/jars/gss-lib-2.2/javadoc/overview-frame.html deleted file mode 100644 index 07a436f..0000000 --- a/jars/gss-lib-2.2/javadoc/overview-frame.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - -Overview - - - - - - - - - - - - - - - -
-
- - - - - -
All Classes -

- -Packages -
-com.pras -
-com.pras.auth -
-com.pras.conn -
-com.pras.sp -
-com.pras.table -
-

- -

-  - - diff --git a/jars/gss-lib-2.2/javadoc/overview-summary.html b/jars/gss-lib-2.2/javadoc/overview-summary.html deleted file mode 100644 index 7f0b1d3..0000000 --- a/jars/gss-lib-2.2/javadoc/overview-summary.html +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - -Overview - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -


-
-

-SpreadSheetAccessLib -

-
- - - - - - - - - - - - - - - - - - - - - - - - - -
-Packages
com.pras 
com.pras.auth 
com.pras.conn 
com.pras.sp 
com.pras.table 
- -


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/overview-tree.html b/jars/gss-lib-2.2/javadoc/overview-tree.html deleted file mode 100644 index 1fcaca7..0000000 --- a/jars/gss-lib-2.2/javadoc/overview-tree.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - -Class Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For All Packages

-
-
-
Package Hierarchies:
com.pras, com.pras.auth, com.pras.conn, com.pras.sp, com.pras.table
-
-

-Class Hierarchy -

- -

-Interface Hierarchy -

- -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/jars/gss-lib-2.2/javadoc/package-list b/jars/gss-lib-2.2/javadoc/package-list deleted file mode 100644 index 6293e67..0000000 --- a/jars/gss-lib-2.2/javadoc/package-list +++ /dev/null @@ -1,5 +0,0 @@ -com.pras -com.pras.auth -com.pras.conn -com.pras.sp -com.pras.table diff --git a/jars/gss-lib-2.2/javadoc/resources/inherit.gif b/jars/gss-lib-2.2/javadoc/resources/inherit.gif deleted file mode 100644 index c814867..0000000 Binary files a/jars/gss-lib-2.2/javadoc/resources/inherit.gif and /dev/null differ diff --git a/jars/gss-lib-2.2/javadoc/stylesheet.css b/jars/gss-lib-2.2/javadoc/stylesheet.css deleted file mode 100644 index 14c3737..0000000 --- a/jars/gss-lib-2.2/javadoc/stylesheet.css +++ /dev/null @@ -1,29 +0,0 @@ -/* Javadoc style sheet */ - -/* Define colors, fonts and other style attributes here to override the defaults */ - -/* Page background color */ -body { background-color: #FFFFFF } - -/* Headings */ -h1 { font-size: 145% } - -/* Table colors */ -.TableHeadingColor { background: #CCCCFF } /* Dark mauve */ -.TableSubHeadingColor { background: #EEEEFF } /* Light mauve */ -.TableRowColor { background: #FFFFFF } /* White */ - -/* Font used in left-hand frame lists */ -.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif } -.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif } -.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif } - -/* Navigation bar fonts and colors */ -.NavBarCell1 { background-color:#EEEEFF;} /* Light mauve */ -.NavBarCell1Rev { background-color:#00008B;} /* Dark Blue */ -.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;} -.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;} - -.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} -.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} - diff --git a/jars/gss-lib-2.2/sample/SpreadSheet_Auth/src/com/gss/sample/auth/AndroidAuthenticator.java b/jars/gss-lib-2.2/sample/SpreadSheet_Auth/src/com/gss/sample/auth/AndroidAuthenticator.java deleted file mode 100644 index 60e0f7a..0000000 --- a/jars/gss-lib-2.2/sample/SpreadSheet_Auth/src/com/gss/sample/auth/AndroidAuthenticator.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.gss.sample.auth; - -import android.accounts.Account; -import android.accounts.AccountManager; -import android.accounts.AccountManagerFuture; -import android.app.Activity; -import android.os.Bundle; -import android.util.Log; - -import com.pras.auth.Authenticator; - -public class AndroidAuthenticator implements Authenticator { - - private final String TAG = "AndroidAuthenticator"; - Activity activity; - AccountManager manager; - private String mService = null; - private String auth_token = ""; - - public AndroidAuthenticator(Activity activity){ - this.activity = activity; - manager = AccountManager.get(activity.getApplicationContext()); - } - - public String getAuthToken(String service) - { - if(service == null){ - throw new IllegalAccessError("No Service name defined, Can't create Auth Token..."); - } - - if(mService != null && !mService.equals(service)){ - // Reset previous Token - manager.invalidateAuthToken("com.google", auth_token); - } - - Account[] acs = manager.getAccountsByType("com.google"); - Log.i(TAG, "Num of Matching account: "+ acs.length); - - for(int i=0; i spreadSheets = spf.getAllSpreadSheets(); - - if(spreadSheets == null && spreadSheets.size() == 0){ - Log.p(TAG, "No SpreadSheet Exists"); - return; - } - - SpreadSheet s = spreadSheets.get(0); - - System.out.println("SpreadSheet: "+ s.getTitle()); - - // Create WorkSheet - s.addWorkSheet("tab_work_sample", new String[]{"Name", "Age", "Exp", "Country"}); - - // Get List of All WorkSheets - ArrayList wks = s.getAllWorkSheets(); - WorkSheet wk = wks.get(0); - - // Add Record - HashMap record = new HashMap(); - - record.put("Name", "Santosh"); - record.put("Age", "25"); - record.put("Exp", "10"); - record.put("Country", "India"); - - wk.addRecord(s.getKey(), record); - - // Conditional Data Read - // Read Data from WorkSheet, where Age < 30 and Order by "Name" column - // Please follow- http://code.google.com/apis/spreadsheets/data/3.0/reference.html#RecordParameters - ArrayList records = wk.getRecords(s.getKey(), false, HttpConHandler.encode("\"Age\"") + "<" + HttpConHandler.encode("30"), "column:Name"); - - if(records == null || records.size() == 0){ - System.out.println("No matching data"); - return; - } - - // Display Record - for(int i=0; i data = r.getData(); - System.out.println("Data: "+ data); - - // Delete Record - //wk.deleteRecord(r); - } - - // Delete WorkSheet - s.deleteWorkSheet(wk); - } -} diff --git a/jars/gss-lib-2.2/sample/SpreadSheet_Usage/src/com/prasanta/sample/ListFeed.java b/jars/gss-lib-2.2/sample/SpreadSheet_Usage/src/com/prasanta/sample/ListFeed.java deleted file mode 100644 index ba121ab..0000000 --- a/jars/gss-lib-2.2/sample/SpreadSheet_Usage/src/com/prasanta/sample/ListFeed.java +++ /dev/null @@ -1,130 +0,0 @@ -package com.prasanta.sample; - -import java.util.ArrayList; -import java.util.HashMap; - -import com.pras.SpreadSheet; -import com.pras.SpreadSheetFactory; -import com.pras.WorkSheet; -import com.pras.WorkSheetRow; - -/** - * This class demonstrates usage of List Based Feed- - * - Add Listbased WorkSheet - * - Add Row - * - Update Row - * - Delete Row - * - Get List of Rows - * - * @author Prasanta Paul - * - */ -public class ListFeed { - - - /** - * Create List based WorkSheet - * @param args - */ - public static void createListWorkSheet(String[] args){ - String[] cols = {"id", "devicename", "vendor"}; - SpreadSheetFactory spf = SpreadSheetFactory.getInstance("email", "password"); - - // Get selected SpreadSheet - ArrayList spreadSheets = spf.getSpreadSheet("Pras", false); - - if(spreadSheets == null || spreadSheets.size() == 0){ - System.out.println("No SpreadSheet Exists!"); - return; - } - - System.out.println("Number of SpreadSheets: "+ spreadSheets.size()); - - SpreadSheet sp = spreadSheets.get(0); - System.out.println("### Creating WorkSheet for ListFeed ###"); - WorkSheet workSheet = sp.addListWorkSheet("Device_List", 10, cols); - - HashMap row_data = new HashMap(); - row_data.put("id", "1"); - row_data.put("devicename", "Samsung Ace"); - row_data.put("vendor", "Samsung"); - - // Add entries - WorkSheetRow list_row1 = workSheet.addListRow(row_data); - - row_data.put("id", "2"); - row_data.put("devicename", "Optimus"); - row_data.put("vendor", "LG"); - - WorkSheetRow list_row2 = workSheet.addListRow(row_data); - - row_data.put("id", "3"); - row_data.put("devicename", "Xdroid"); - row_data.put("vendor", "Motorola"); - - WorkSheetRow list_row3 = workSheet.addListRow(row_data); - - // Update previous Row - row_data.put("id", "2"); - row_data.put("devicename", "Optimus"); - row_data.put("vendor", "LG-New"); - workSheet.updateListRow(sp.getEntry().getKey(), list_row2, row_data); - - workSheet.deleteListRow(sp.getEntry().getKey(), list_row3); - - ArrayList rows = workSheet.getData(true); - System.out.println("List Feed: "+ rows); - - // Example of Structured Query- - /* - * For List Based feed use lower case Column Name - * Note: Column name should be in lower case - * Retrieve data where age < 30 and order by "name" column - */ -// ArrayList rows = workSheet.getData(false, false, HttpConHandler.encode("\"age\"") + "<" + HttpConHandler.encode("30"), "column:name"); -// -// System.out.println("Count: "+ rows.size()); -// -// for(int i=0; i cls = r.getCells(); -// for(int j=0; j spreadSheets = spf.getSpreadSheet("Pras", false); - - if(spreadSheets == null || spreadSheets.size() == 0){ - System.out.println("No SpreadSheet Exists!"); - return; - } - - System.out.println("Number of SpreadSheets: "+ spreadSheets.size()); - - SpreadSheet sp = spreadSheets.get(0); - - ArrayList wks = sp.getAllWorkSheets(); - for(int i=0; i spreadSheets = spf.getAllSpreadSheets(); - - if(spreadSheets == null || spreadSheets.size() == 0){ - System.out.println("No SpreadSheet exists"); - } - - SpreadSheet firstSP = spreadSheets.get(0); - - System.out.println("Read Collaborators of SpreadSheet: "+ firstSP.getEntry().getTitle()); - - // Get the list of all people to whom this SpreadSheet is shared - ArrayList collaborators = spf.getAllCollaborators(firstSP); - - if(collaborators == null || collaborators.size() == 0){ - System.out.println("No Collaborators"); - } - - Collaborator c = null; - - for(int i=0; i"+ c.getScopeValue()); - spf.changeSharePermission(c, Collaborator.ROLE_READER); - } -} diff --git a/jars/gss-lib-2.2/sample/SpreadSheet_Usage/src/com/prasanta/sample/WorkSheetSample.java b/jars/gss-lib-2.2/sample/SpreadSheet_Usage/src/com/prasanta/sample/WorkSheetSample.java deleted file mode 100644 index 9c59af7..0000000 --- a/jars/gss-lib-2.2/sample/SpreadSheet_Usage/src/com/prasanta/sample/WorkSheetSample.java +++ /dev/null @@ -1,113 +0,0 @@ -package com.prasanta.sample; - -import java.util.ArrayList; -import java.util.HashMap; - -import com.pras.Log; -import com.pras.SpreadSheet; -import com.pras.SpreadSheetFactory; -import com.pras.WorkSheet; -import com.pras.table.Record; - -/** - * Demonstrates WorkSheet handling Add/Delete - * Add/Update/Delete Records into WorkSheet - * Retrieve record from WorkSheet - * - * @author Prasanta Paul - * - */ -public class WorkSheetSample { - - public static void main(String[] args){ - - // Enable/Disable Logging - // by default it will be enabled - Log.enableLog(); - - // Create SpreadSheet Factory - SpreadSheetFactory spf = SpreadSheetFactory.getInstance(args[0], args[1]); - - // Get All SpreadSheets - //ArrayList spreadSheets = spf.getAllSpreadSheets(); - - // Get selected SpreadSheet- whose name contains "Pras" - ArrayList spreadSheets = spf.getSpreadSheet("Pras", false); - - if(spreadSheets == null || spreadSheets.size() == 0){ - System.out.println("No SpreadSheet Exists!"); - return; - } - - System.out.println("Number of SpreadSheets: "+ spreadSheets.size()); - - SpreadSheet sp = spreadSheets.get(0); - - // Add an WorkSheet - //sp.addWorkSheet("testWork1", new String[]{"date", "item", "price"}); - //sp.addWorkSheet("tabWork2", new String[]{"date", "item", "price", "person"}); - - // Get all WorkSheets - // ArrayList wks = sp.getAllWorkSheets(); - - // Get selected WorkSheet - ArrayList wks = sp.getWorkSheet("test", false); - - if(wks == null || wks.size() == 0){ - System.out.println("No WorkSheet exists!!"); - return; - } - - System.out.println("Number of WorkSheets: "+ wks.size()); - - WorkSheet wk = null; - /*for(int i=0; i records = wk.getRecords(sp.getKey()); - - if(records == null || records.size() == 0){ - System.out.println("No Record exists!!"); - return; - } - - System.out.println("Number of Records: "+ records.size()); - - // Display Record - for(int i=0; i data = r.getData(); - System.out.println("Data: "+ data); - } - - // Delete Record - //wk.deleteRecord(records.get(0)); - - // Update Record - //Record toUpdate = records.get(0); - - //toUpdate.addData("Name", "Update_Name"); - //wk.updateRecord(toUpdate); - } - -} diff --git a/jars/gss-lib-2.2/src/com/pras/Collaborator.java b/jars/gss-lib-2.2/src/com/pras/Collaborator.java deleted file mode 100644 index 2e5be41..0000000 --- a/jars/gss-lib-2.2/src/com/pras/Collaborator.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras; - -/** - * ACL details of a SpreadSheet - * - * @author Prasanta Paul - * - */ -public class Collaborator { - - // Defined Roles - /** - * Owner of a SpreadSheet - */ - public static String ROLE_OWNER = "owner"; - /** - * Able to Read/Write and Further Share as Reader/Writer - */ - public static String ROLE_WRITER = "writer"; - /** - * Able to Read - */ - public static String ROLE_READER = "reader"; - - // Defined Scopes - /** - * Use this scope to share it with an Email account - */ - public static String SCOPE_USER = "user"; - /** - * Use this scope to share it with a Group - */ - public static String SCOPE_GROUP = "group"; - /** - * Use this scope to share it with a Domain - */ - public static String SCOPE_DOMAIN = "domain"; - /** - * Use this scope to make the SpreadSheet publicly accessible to anyuser - */ - public static String SCOPE_DEFAULT = "default"; - - String role; - String scopeType; - String scopeValue; - String editLink; - - /** - * Get Role - {"owner", "writer", "reader"} - * @return - */ - public String getRole() { - return role; - } - /** - * Set Role - {"owner", "writer", "reader"} - * @param role {ROLE_OWNER, ROLE_WRITER, ROLE_READER} - */ - public void setRole(String role) { - this.role = role; - } - /** - * Get Scope Type - {"user", "group", "domain", "default"} - * @return - */ - public String getScopeType() { - return scopeType; - } - /** - * Set Scope Type {"user", "group", "domain", "default"} - * @param scopeType {SCOPE_USER, SCOPE_GROUP, SCOPE_DOMAIN, SCOPE_DEFAULT} - */ - public void setScopeType(String scopeType) { - this.scopeType = scopeType; - } - /** - * Get Scope Value e.g. - * @return - */ - public String getScopeValue() { - return scopeValue; - } - /** - * Set Scope Value - * @param scopeValue Email Address - */ - public void setScopeValue(String scopeValue) { - this.scopeValue = scopeValue; - } - /** - * Get Edit Link - * @return - */ - public String getEditLink() { - return editLink; - } - /** - * Set Edit Link - * @param editLink - */ - public void setEditLink(String editLink) { - this.editLink = editLink; - } -} diff --git a/jars/gss-lib-2.2/src/com/pras/Log.java b/jars/gss-lib-2.2/src/com/pras/Log.java deleted file mode 100644 index 41de0c1..0000000 --- a/jars/gss-lib-2.2/src/com/pras/Log.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras; - -/** - * Based on your target platform- edit this file and add appropriate Log console - * e.g. - * for Android, android.util.Log - * for J2ME, Desktop File based logging. - *
- * By default Logging will be enabled - * - * @author Prasanta Paul - * - */ -public class Log { - - /** - * Set to false if you don't need Log output - */ - private static boolean isLogEnabled = true; - - - /** - * Enable logging - */ - public static void enableLog(){ - isLogEnabled = true; - } - /** - * Disable logging. Good for production release. - */ - public static void disableLog(){ - isLogEnabled = false; - } - /** - * Pring Log message - * @param tag Log TAG - * @param msg Log Message - */ - public static void p(String tag, String msg){ - - if(!isLogEnabled) - return; - - if(tag != null) - print("["+ tag +"] "); - if(msg != null) - print(msg); - print("\n"); - } - - private static void print(String s){ - // TODO: Add appropriate stream based on your platform - System.out.print(s); - } -} diff --git a/jars/gss-lib-2.2/src/com/pras/SpreadSheet.java b/jars/gss-lib-2.2/src/com/pras/SpreadSheet.java deleted file mode 100644 index 7188544..0000000 --- a/jars/gss-lib-2.2/src/com/pras/SpreadSheet.java +++ /dev/null @@ -1,635 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras; - -import java.util.ArrayList; -import java.util.HashMap; - -import com.pras.conn.HttpConHandler; -import com.pras.conn.Response; -import com.pras.sp.Entry; -import com.pras.sp.Feed; -import com.pras.sp.ParseFeed; -import com.pras.table.Table; - -/** - * This class represents a given Spreadsheet. You can add multiple WorkSheets into a Spreadsheet. - * It provides methods to Add/Retrieve/Delete WorkSheet and Share SpreadSheet. - * - *
API Ref:
- * http://code.google.com/apis/spreadsheets/data/3.0/developers_guide.html - *
- * Feed Ref: - *
- * http://code.google.com/apis/documents/docs/3.0/reference.html - *
- *
- * NOTE: - * Resource ID is required to delete a SpreadSheet - * - * @author Prasanta Paul - */ -public class SpreadSheet { - - /* - * How to get Resource_ID ? - * From SpreadSheet Feed (SpreadSheet List) read the "key" of the following field - * - */ - private String TAG = "SpreadSheet"; - /** - * This will contain info specific to SpreadSheet and not about its - * WorkSheets - */ - Entry entry; - ArrayList wks = new ArrayList(); - /** - * List of People with whom this SpreadSheet is shared and their - * access rights (ACL) - */ - ArrayList collaborators = new ArrayList(); - - - @Override - public boolean equals(Object obj) { - if(obj == null) - return false; - if(obj instanceof SpreadSheet){ - SpreadSheet s = (SpreadSheet) obj; - if(this.hashCode() == s.hashCode()) - return true; - } - return false; - //return super.equals(obj); - } - - @Override - public int hashCode() { - /* - * ResID will be unique for each SpreadSheet - * e.g. - * spreadsheet:0Asn_4k-vXoTXdHhVcUIyeDZwV3VWREdMZll5RTJTMmc - */ - if(entry != null){ - return entry.getResID().hashCode(); - } - return super.hashCode(); - } - - public SpreadSheet(Entry entry){ - this.entry = entry; - } - - /** - * Get Entry Object of SpreadSheet Feed. Entry holds all SpreadSheet Feed details - * - * @return - */ - public Entry getEntry() { - return entry; - } - - /** - * Set Entry Object of SpreadSheet Feed. - * @param entry - */ - public void setEntry(Entry entry) { - this.entry = entry; - } - - /** - * Get SpreadSheet Title - * @return - */ - public String getTitle(){ - if(entry != null) - return entry.getTitle(); - return null; - } - - /** - * Get SpreadSheet Resource ID. Each SpreadSheet has an unique Resource ID. - * This ID is required to Delete this SpreadSheet. - * - * @return - */ - public String getResourceID(){ - if(entry != null) - return entry.getResID(); - return null; - } - - /** - * Get SpreadSheet Feed Key - * @return - */ - public String getKey(){ - if(entry != null) - return entry.getKey(); - return null; - } - /** - * Get the list of all Collaborator details (users/groups and their access rights) for a given SpreadSheet - * - * @return - */ - public ArrayList getCollaborators() { - return collaborators; - } - - /** - * Add a Collaborator - * @param c - */ - public void addCollaborator(Collaborator c){ - collaborators.add(c); - } - - /** - * Clear existing list of Collaborators - */ - public void clearCollaboratorList(){ - collaborators.clear(); - } - - /** - * Set a list of Collaborators - * @param collaborators - */ - public void setCollaborators(ArrayList collaborators) { - this.collaborators = collaborators; - } - - /** - * This will create an WorkSheet without Table. It will create WorkSheet with 1 Column and 1 Row. It can - * be accessed/modified by Web Interface. - * - * IMPORTANT: - * This Library supports Record Handling only through Table. If you use this method, it will not - * create Table internally and thus unable to add/edit/delete record from this WorkSheet. Instead, - * use addWorkSheet(String name, String[] cols) - * - * @param name WorkSheet name - */ - public void addWorkSheet(String name){ - - if(name == null){ - throw new IllegalAccessError("Please provide WorkSheet Name"); - } - addWorkSheet(name, 1, 1); - } - - /** - * Create WorkSheet. - * - * @param name name of WorkSheet - * @param col number of columns - * @param row number of rows - */ - private WorkSheet addWorkSheet(String name, int col, int row){ - // Sample URL: https://spreadsheets.google.com/feeds/worksheets/key/private/full - String workSheetURL = "https://spreadsheets.google.com/feeds/worksheets/"+ entry.getKey() +"/private/full"; - - // Add headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - httpHeaders.put(HttpConHandler.CONTENT_TYPE_HTTP_HEADER, "application/atom+xml"); - - String postData = ""+ - ""+ name +""+ - ""+ row +""+ - ""+ col +""+ - ""; - Log.p(TAG, "POST Data- "+ postData); - HttpConHandler http = new HttpConHandler(); - Response resp = http.doConnect(workSheetURL, HttpConHandler.HTTP_POST, httpHeaders, postData); - if(resp == null) - return null; - - // Create WorkSheet instance from the response - return parseWorkSheet(resp.getOutput()); - } - - private WorkSheet parseWorkSheet(String xmlFeed) - { - if(xmlFeed == null) - return null; - - // XML Parsing - ParseFeed pf = new ParseFeed(); - Feed f = pf.parse(xmlFeed.getBytes()); - ArrayList entries = f.getEntries(); - - if(entries == null || entries.size() == 0){ - return null; - } - - WorkSheet ws = new WorkSheet(); - - for(int i=0; i - * It will create a Table for this WorkSheet. WorkSheet and Table Name will be the same - * The Table will be used for Add/Edit/Delete Records - *
- * - * @param name Name of the WorkSheet - * @param description Description of the WorkSheet - * @param row Number of Rows - * @param cols Name of Columns - */ - public void addWorkSheet(String name, String description, int row, String[] cols){ - - if(name == null || description == null || cols == null){ - throw new IllegalAccessError("Please provide correct input parameters"); - } - - int col = cols.length; - - addWorkSheet(name, col, row); - - // Create a Table for this WorkSheet - String tableCreateXML = ""+ - ""+ name +""+ // Table name will be same as WorkSheet Name - ""+ description +""+ - ""+ - ""+ - ""; - for(int i=0; i"); - } - tableCreateXML = tableCreateXML.concat(""); - - // Add headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - httpHeaders.put(HttpConHandler.CONTENT_TYPE_HTTP_HEADER, "application/atom+xml"); - - // HTTP Connection - String tableURL = "https://spreadsheets.google.com/feeds/"+ entry.getKey() +"/tables"; - HttpConHandler http = new HttpConHandler(); - http.doConnect(tableURL, HttpConHandler.HTTP_POST, httpHeaders, tableCreateXML); - } - - - /** - * Create List feed based WorkSheet - * - * @param name Name of the WorkSheet - * @param rowCount Number of row. This doesn't limit future row addition. - * @param cols Array of column name. First row of the WorkSheet is header row. - * - * @return - */ - public WorkSheet addListWorkSheet(String name, int rowCount, String[] cols){ - if(name == null || cols == null){ - throw new IllegalAccessError("Please provide correct input parameters"); - } - - /* - * Steps- - * 1. Create an empty Worksheet with specified number of Rows and Columns - * 2. Create the Header Row - */ - // Create the - Log.p(TAG, "## Create WorkSheet..."); - WorkSheet workSheet = addWorkSheet(name, cols.length, rowCount); - - if(workSheet == null) - return null; - - workSheet.setColumns(cols); - - // 2. Create Header Row - // Add headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - httpHeaders.put(HttpConHandler.CONTENT_TYPE_HTTP_HEADER, "application/atom+xml"); - // Ignore updates done by other on the Header Row - httpHeaders.put("If-Match", "*"); - - // XML to Add HEADER ROW - StringBuffer cellUpdateXML = new StringBuffer(); - // Batch Cell Update - // XML- Batch query for multiple Cell Update - cellUpdateXML.append(""); - cellUpdateXML.append("https://spreadsheets.google.com/feeds/cells/"+ entry.getKey() +"/"+ workSheet.getWorkSheetID() +"/private/full"); - - for(int i=0; i"); - cellUpdateXML.append("B"+ i +""); - cellUpdateXML.append(""); - cellUpdateXML.append("https://spreadsheets.google.com/feeds/cells/"+ entry.getKey() + "/"+ workSheet.getWorkSheetID() +"/private/full/R1C"+ (i+1) +""); - cellUpdateXML.append(""); - cellUpdateXML.append(""); - cellUpdateXML.append("
"); - } - cellUpdateXML.append(""); - - // Do Server transaction - String headerRowUpdateUrl = "https://spreadsheets.google.com/feeds/cells/"+ entry.getKey() + "/"+ workSheet.getWorkSheetID() +"/private/full/batch"; - new HttpConHandler().doConnect(headerRowUpdateUrl, HttpConHandler.HTTP_POST, httpHeaders, cellUpdateXML.toString()); - - return workSheet; - } - - /** - * It will retrieve all WorkSheets of this SpreadSheet from Server - * - * @return - */ - public ArrayList getAllWorkSheets(){ - return getAllWorkSheets(true); - } - - /** - * It will retrieve all WorkSheets of this SpreadSheet either from Server or from Local Cache - * - * @param doRefresh Do you want to Synch with Server ? - * @return list of available WorkSheets - */ - public ArrayList getAllWorkSheets(boolean doRefresh){ - return getAllWorkSheets(doRefresh, null, false); - } - - /** - * It will retrieve WorkSheets with matching title from Server - * - * @param title SpreadSheet title. null means all SpreadSheets. No need to do URL encode. - * @param isTitleExact whether title string should be an exact match - * @return - */ - public ArrayList getWorkSheet(String title, boolean isTitleExact){ - return getAllWorkSheets(true, title, isTitleExact); - } - - /** - * It will retrieve WorkSheets with matching title either from Server or from Local Cache - * - * @param doRefresh Do you want to Synch with Server ? - * @param title SpreadSheet title. null means all SpreadSheets. No need to do URL encode. - * @param isTitleExact Whether title string should be an exact match - * @return list of available WorkSheets - */ - public ArrayList getAllWorkSheets(boolean doRefresh, String title, boolean isTitleExact){ - // Sample URL: https://spreadsheets.google.com/feeds/worksheets/key/private/full - /* - * TODO: - * Check with other projection values instead of "private" and "full" - * private - unpublished work sheets - * public- published work sheets - */ - - if(!doRefresh){ - // Don't synch with Server - return wks; - } - - String workSheetListURL = "https://spreadsheets.google.com/feeds/worksheets/"+ entry.getKey() +"/private/full"; - - if(title != null){ - // WorkSheet Query Parameters - workSheetListURL = workSheetListURL.concat("?title="+ HttpConHandler.encode(title)); - workSheetListURL = workSheetListURL.concat("&title-exact="+ isTitleExact); - } - - // Add Headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - - HttpConHandler http = new HttpConHandler(); - Response res = http.doConnect(workSheetListURL, HttpConHandler.HTTP_GET, httpHeaders, null); - - if(res.isError()){ - return null; - } - - String xmlOut = res.getOutput(); - - // XML Parsing - ParseFeed pf = new ParseFeed(); - Feed f = pf.parse(xmlOut.getBytes()); - ArrayList entries = f.getEntries(); - - HashMap tables = null; - - if(entries != null && entries.size() > 0){ - // Fetch Table details of each Work Sheet - Log.p(TAG, "Get Table Feed"); - tables = getTables(title, isTitleExact); - }else{ - //No WorkSheet exists - return null; - } - - // clear existing entries - wks.clear(); - - for(int i=0; i httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - - HttpConHandler http = new HttpConHandler(); - Response res = http.doConnect(headerRowURL, HttpConHandler.HTTP_GET, httpHeaders, null); - - if(res.isError()){ - return null; - } - String xmlOut = res.getOutput(); - - // XML Parsing - ParseFeed pf = new ParseFeed(); - Feed f = pf.parse(xmlOut.getBytes()); - ArrayList entries = f.getEntries(); - - if(entries == null) - return null; - - String[] cols = new String[entries.size()]; - - for(int i=0; inull means all SpreadSheets. No need to do URL encode. - * @param isTitleExact whether title string should be an exact match - * - * @return - */ - private HashMap getTables(String title, boolean isTitleExact){ - - //Get list of all Tables- one per WorkSheet - HashMap tables = new HashMap(); - - // Table URL- Get list of all Tables- one per WorkSheet - String tableURL = "https://spreadsheets.google.com/feeds/"+ entry.getKey() +"/tables"; - - if(title != null){ - tableURL = tableURL.concat("?title="+ HttpConHandler.encode(title)); - tableURL = tableURL.concat("&title-exact="+ isTitleExact); - } - - // Add Headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - - HttpConHandler http = new HttpConHandler(); - Response res = http.doConnect(tableURL, HttpConHandler.HTTP_GET, httpHeaders, null); - - if(res.isError()){ - return null; - } - - String xmlOut = res.getOutput(); - - // XML Parsing - ParseFeed pf = new ParseFeed(); - Feed f = pf.parse(xmlOut.getBytes()); - - ArrayList entries = f.getEntries(); - - if(entries == null) // No Table exists for this WorkSheet/SpreadSheet - return null; - - for(int i=0; i - * It is a SpreadSheet Generator Class. It accepts Gmail User ID and PassWord - * to generate Authentication Token. - *
- * It uses 2 Google APIs- - *
- * SpreadSheet Create/Delete - Google Document API - *
- * WorkSheet Create/Delete, Record Add - Google SpreadSheet API - * - * @author Prasanta Paul - * - */ -public class SpreadSheetFactory { - - private String TAG = "SpreadSheetFactory"; - -// private String userName; -// private String password; - public static String authToken; - // URL - //private final String GOOGLE_CLIENT_LOGIN_URL = "https://www.google.com/accounts/ClientLogin"; - - private final String SP_GET_LIST_URL = "https://spreadsheets.google.com/feeds/spreadsheets/private/full"; - private final String DOCUMENT_LIST_API_URL = "https://docs.google.com/feeds/default/private/full"; - // Service Name - /* - * Google service name (Reference)- - * http://code.google.com/apis/gdata/faq.html - */ - final static String SPREADSHEET_API_SERVICE_NAME = "wise"; - final static String DOCUMENT_LIST_API_SERVICE_NAME = "writely"; - - /** - * List of presently stored SpreadSheets - */ - private ArrayList spreadSheets = new ArrayList(); - - private Authenticator authenticator = null; - - private static SpreadSheetFactory factory; - - /** - * This will return an existing SpreadSheetFactory instance or null - *
- * Note: - * Make sure you have previously called getInstance(String userName, String password) - * - * @return - */ - public static SpreadSheetFactory getInstance(){ - return getInstance(null, null); - } - - /** - * This will create SpreadSheetFactory Instance with valid User ID (e.g. abc@gmail.com) and password - * - * @param userName Gmail account id e.g. abc@gmail.com - * @param password Gmail account password - * @return - */ - public static SpreadSheetFactory getInstance(String email, String password){ - if(factory == null){ - if(email != null && password != null){ - Account account = new Account(); - account.setEmail(email); - account.setPassword(password); - BasicAuthenticatorImpl basicAuth = new BasicAuthenticatorImpl(account); - - factory = new SpreadSheetFactory(basicAuth); - - }else{ - throw new IllegalAccessError("Missing Account Info. Please use getInstance(String email, String password) or getInstance(Authenticator authenticator)"); - } - } - return factory; - } - - /** - * This will create SpreadSheetFactory Instance using your custom Authenticatior. - * - * Use this if you want to use your custom Authenticator e.g. in Android you can use AccountManager - * to create a custom Authenticator. - * - * @param authenticator Your Custom Authenticator. - * @return - */ - public static SpreadSheetFactory getInstance(Authenticator authenticator){ - if(authenticator == null){ - throw new IllegalAccessError("No Authenticator defined"); - } - if(factory == null) - factory = new SpreadSheetFactory(authenticator); - return factory; - } - - /** - * Provide Gmail user id and password. Use SpreadSheetFactory instance - * to generate create/list/delete SpreadSheet - * - * @param userName - * @param password - */ -// private SpreadSheetFactory(String userName, String password){ -// this.userName = userName; -// this.password = password; -// } - - private SpreadSheetFactory(Authenticator authenticator){ - this.authenticator = authenticator; - } - - /** - * Deallocate SpreadSheetFactory instance - */ - public void flushMe(){ - factory = null; - if(spreadSheets != null) - spreadSheets.clear(); - spreadSheets = null; - authToken = null; - authenticator = null; - } - - /** - *Create SpreadSheet with the given name - * - * @param spName SpreadSheet name - */ - public void createSpreadSheet(String spName){ - // login for Document List API - login(DOCUMENT_LIST_API_SERVICE_NAME); - - // Create a SpreadSheet - String postData = "" + - ""+ - ""+ - ""+ spName +""+ - ""; - // Add Headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - httpHeaders.put(HttpConHandler.CONTENT_LENGTH_HTTP_HEADER, ""+ postData.length()); - httpHeaders.put(HttpConHandler.CONTENT_TYPE_HTTP_HEADER, "application/atom+xml"); - - // Http Connection - HttpConHandler http = new HttpConHandler(); - http.doConnect(DOCUMENT_LIST_API_URL, HttpConHandler.HTTP_POST, httpHeaders, postData); - - // login for SpreadSheet API - // revert back to SpreadSheet Auth Token - login(SPREADSHEET_API_SERVICE_NAME); - } - - /** - * Delete a SpreadSheet - * - * @param resID Resource ID of the SpreadSheet you want to Delete - */ - public void deleteSpreadSheet(String resID){ - - // login for Document List API - login(DOCUMENT_LIST_API_SERVICE_NAME); - - // Delete HTTP request - String url = "https://docs.google.com/feeds/default/private/full/"+ resID +"?delete=true"; - // Add Headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - httpHeaders.put("If-Match", "*"); - - HttpConHandler http = new HttpConHandler(); - Response res = http.doConnect(url, HttpConHandler.HTTP_DELETE, httpHeaders, null); - - if(!res.isError()){ - for(int i=0; i getSpreadSheet(String title, boolean isTitleExact){ - return getAllSpreadSheets(true, title, isTitleExact); - } - - /** - * Get All stored SpreadSheets from Server - * - * @return - */ - public ArrayList getAllSpreadSheets(){ - return getAllSpreadSheets(true); - } - - /** - * Get All stored SpreadSheets either from Server or Local Cache - * - * @param doRefresh Do you want to Synch with Server ? - * @return List of Entry. Each Entry represents a SpreadSheet - */ - public ArrayList getAllSpreadSheets(boolean doRefresh){ - return getAllSpreadSheets(doRefresh, null, false); - } - - /** - * Get All stored SpreadSheets either from Server or Local Cache - * - * @param doRefresh - * @param title SpreadSheet title. null means all SpreadSheets. No need to do URL encode. - * @param isTitleExact Whether title string should be an exact match - * @return - */ - public ArrayList getAllSpreadSheets(boolean doRefresh, String title, boolean isTitleExact){ - - /* - * TODO: - * Retrieve data only if there is change in Feed - * If-None-Match: W/"D0cERnk-eip7ImA9WBBXGEg." - */ - - if(!doRefresh){ - // Don't synch with Server - return spreadSheets; - } - - // login to Spreadsheet Service - login(SPREADSHEET_API_SERVICE_NAME); - - // get list of all spreadsheets - String xmlOut = getSpreadSheetList(title, isTitleExact); - - if(xmlOut == null){ - Log.p(TAG, "No SpreadSheet Feed received from Server!!"); - return null; - } - - // XML Parsing - ParseFeed pf = new ParseFeed(); - Feed f = pf.parse(xmlOut.getBytes()); - ArrayList entries = f.getEntries(); - - if(entries == null){ - // No SpreadSheet exists - return null; - } - - // Refresh SpreadSheet List from Server - // Clear existing list - spreadSheets.clear(); - - for(int i=0; i"+ - ""+ - ""+ - ""; - - // Send Data - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - httpHeaders.put(HttpConHandler.CONTENT_TYPE_HTTP_HEADER, "application/atom+xml"); - - // HTTP Connection - HttpConHandler http = new HttpConHandler(); - String url = "https://docs.google.com/feeds/default/private/full/"+ sp.getResourceID() +"/acl"; - - http.doConnect(url, HttpConHandler.HTTP_POST, httpHeaders, postData); - } - - // Get SpreadSheet API Authentication Token - login(SPREADSHEET_API_SERVICE_NAME); - - } - - /** - * Get list of all Collaborators to whom this SpreadSheet is shared - * @param sp SpreadSheet - * @return - */ - public ArrayList getAllCollaborators(SpreadSheet sp){ - - if(sp == null){ - throw new IllegalArgumentException("Please provide SpreadSheet ResID and Emails to whom you want to share."); - } - - // Get Document List API Authentication Token - login(DOCUMENT_LIST_API_SERVICE_NAME); - - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - - HttpConHandler http = new HttpConHandler(); - String url = "https://docs.google.com/feeds/default/private/full/"+ sp.getResourceID() +"/acl"; - Response res = http.doConnect(url, HttpConHandler.HTTP_GET, httpHeaders, null); - - // Get SpreadSheet API Authentication Token - login(SPREADSHEET_API_SERVICE_NAME); - - // Process output - String xmlOut = res.getOutput(); - - if(xmlOut == null){ - Log.p(TAG, "No XML feed from Server!!"); - return null; - } - - // XML Parsing - ParseFeed pf = new ParseFeed(); - Feed f = pf.parse(xmlOut.getBytes()); - ArrayList entries = f.getEntries(); - - sp.clearCollaboratorList(); - - if(entries != null){ - // Create Collaborator Instances - System.out.println("Number of Collaborators: "+ entries.size()); - - for(int i=0; i"+ - ""+ - ""+ - ""; - - // HTTP Header- Send PUT request - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - httpHeaders.put(HttpConHandler.CONTENT_TYPE_HTTP_HEADER, "application/atom+xml"); - - // HTTP Connection - HttpConHandler http = new HttpConHandler(); - http.doConnect(url, HttpConHandler.HTTP_PUT, httpHeaders, postData); - - // Get SpreadSheet API Authentication Token - login(SPREADSHEET_API_SERVICE_NAME); - } - - /** - * Remove Share access of a selected user. - * @param c Collaborator Instance. It should have the Edit Link. - */ - public void removeSharePermission(Collaborator c){ - // Get Document List API Authentication Token - login(DOCUMENT_LIST_API_SERVICE_NAME); - - // HTTP Header- Send PUT request - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - - HttpConHandler http = new HttpConHandler(); - String url = c.getEditLink(); - - http.doConnect(url, HttpConHandler.HTTP_DELETE, httpHeaders, null); - - // Get SpreadSheet API Authentication Token - login(SPREADSHEET_API_SERVICE_NAME); - } - - /** - * Login to get Authentication Token - * @param service - */ - private void login(String service){ - // HTTP POST Data -// String postData = "accountType=GOOGLE&Email="+ userName +"&Passwd="+ password +"&service="+ service +"&source=test-app-log"; -// -// HttpConHandler http = new HttpConHandler(); -// Response res = http.doConnect(GOOGLE_CLIENT_LOGIN_URL, HttpConHandler.HTTP_POST, null, postData); -// -// if(res.isError()){ -// return; -// } -// -// String out = res.getOutput(); -// /* -// * Format of success response -// * SID=<>LSID=<>Auth=<> -// */ -// String[] parms = out.split("="); -// -// for(int i=0; i httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - - HttpConHandler http = new HttpConHandler(); - String url = SP_GET_LIST_URL; - - // Add SpreadSheet Query Params (title and title-exact) - if(title != null){ - url = url.concat("?title="+ HttpConHandler.encode(title)); - url = url.concat("&title-exact="+ isTitleExact); - } - - Response res = http.doConnect(url, HttpConHandler.HTTP_GET, httpHeaders, null); - - if(res.isError()){ - return null; - } - - return res.getOutput(); - } -} diff --git a/jars/gss-lib-2.2/src/com/pras/WorkSheet.java b/jars/gss-lib-2.2/src/com/pras/WorkSheet.java deleted file mode 100644 index 4395b2c..0000000 --- a/jars/gss-lib-2.2/src/com/pras/WorkSheet.java +++ /dev/null @@ -1,746 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.Set; - -import com.pras.conn.HttpConHandler; -import com.pras.conn.Response; -import com.pras.sp.Entry; -import com.pras.sp.Feed; -import com.pras.sp.Field; -import com.pras.sp.ParseFeed; -import com.pras.table.Record; -import com.pras.table.Table; - -/** - * This class represents an WorkSheet and utility methods to manage WorkSheet data. - * WorkSheets will manage (Add/Edit/Delete) data in Tables. It also supports List - * based Feed, but only to retrieve data. At present it doesn't provide any method to Add/Edit/Delete - * data in List based Feed. - *
- *
- * Table Feed - *
- * To Add/Edit/Delete Data, you need to use addRecord(), updateRecord() and deleteRecord(). It - * internally stores data in a single Table. - *
- * Note: Table Feed will ignore data entered through Web UI. - * So, if you want all data records irrespective of from where those are inserted/updated, you should use List Feed. - * - *
- *
- * List Feed - *
- * To Retrieve data using List based Feed, use getData() method. - * - * @author Prasanta Paul - */ - -public class WorkSheet { - - /* - *TODO: - *Add set and get methods without creating local variables (use entry instance) - */ - private String TAG = "WorkSheet"; - private String workSheetID; - private String workSheetURL; - private String title; - private int colCount; - private int rowCount; - /** - * Entries of the Header Row of List Feed - */ - String[] columns = null; - - /** - * Table associated with this WorkSheet. It will hold data records - */ - private Table table; - - /** - * To access all low level Feed values for this Work Sheet - */ - private Entry entry; - - /** - * It will hold WorkSheet records - */ - private ArrayList records = new ArrayList(); - - /** - * Get WorkSheet ID - * @return - */ - public String getWorkSheetID() { - return workSheetID; - } - /** - * Set WorkSheet ID - * @param workSheetID - */ - public void setWorkSheetID(String workSheetID) { - this.workSheetID = workSheetID; - } - - /** - * Get WorkSheetURL - * @return - */ - public String getWorkSheetURL() { - /* - * Sample: https://spreadsheets.google.com/feeds/worksheets/key/private/full - * Retrieved from src attribute- - * - */ - return workSheetURL; - } - /** - * Set WorkSheet - * @param workSheetURL - */ - public void setWorkSheetURL(String workSheetURL) { - this.workSheetURL = workSheetURL; - } - /** - * Get WorkSheet Title - * @return - */ - public String getTitle() { - return title; - } - /** - * Set WorkSheet Title - * @param title - */ - public void setTitle(String title) { - this.title = title; - } - /** - * Get column count of this WorkSheet - * @return - */ - public int getColCount() { - return colCount; - } - /** - * Set column count of this WorkSheet - * @param colCount - */ - public void setColCount(int colCount) { - this.colCount = colCount; - } - /** - * Get row count of this WorkSheet - * @return - */ - public int getRowCount() { - return rowCount; - } - /** - * Set row count of this WorkSheet - * @param rowCount - */ - public void setRowCount(int rowCount) { - this.rowCount = rowCount; - } - - /** - * Get columns of the WorkSheet. It will return columns of associated table, otherwise - * columns of List Feed i.e. content of Header row of ListFeed - * @return - */ - public String[] getColumns() { - if(columns != null) - return columns; - - if(table != null){ - ArrayList tableCols = table.getCols(); - if(tableCols != null){ - String[] cols = new String[tableCols.size()]; - tableCols.toArray(cols); - return cols; - } - } - return null; - } - - /** - * Set columns of ListFeed - * @param columns - */ - public void setColumns(String[] columns) { - this.columns = columns; - } - - /** - * Get Entry instance for this WorkSheet. - * Entry contains low level Feed Details - * - * @return - */ - public Entry getEntry() { - return entry; - } - /** - * Set Feed Entry instance - * @param entry - */ - public void setEntry(Entry entry) { - this.entry = entry; - } - - void setTable(Table table){ - this.table = table; - } - - /** - * Get all data of this WorkSheet (List based Feed) - * - * @return - */ - /** - * Get all data of this WorkSheet (List based Feed) - * - * @param isCachedData Do you want to read cached data or data from Server - * @return - */ - public ArrayList getData(boolean isCachedData){ - return getData(isCachedData, false, null, null); - } - - /** - * List based Feed for a particular Work Sheet. Use this method if you want to retrieve data entered - * through Web GUI and also through Table records. - * - * @param isCachedData Do you want to read cached data or data from Server - * @param doReverse Do you need data in reverse order ? - * @param sq Structured Query. If you don't need this, set to null. (Make sure that column name is in lower case). - * @param orderBy If you don't need this, set to null. (Make sure that column name is in lower case). - * @return - */ - public ArrayList getData(boolean isCachedData, boolean doReverse, String sq, String orderBy){ - // Sample URL: GET https://spreadsheets.google.com/feeds/list/key/worksheetId/private/full - - if(isCachedData) - return records; - - // Add Headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - - HttpConHandler http = new HttpConHandler(); - - String url = workSheetURL; - - // Add data Filter - if (doReverse) { - // Table record in reverse order (last row first) - url = url.concat("?reverse=true"); - if (sq != null) { - // Structured Query - url = url.concat("&sq=" + sq); - } - if (orderBy != null) { - // Order By Statement - url = url.concat("&orderby=" + orderBy); - } - } else { - // Structured Query & Order By - if (sq != null) { - url = url.concat("?sq=" + sq); - if(orderBy != null) - url = url.concat("&orderby=" + orderBy); - } else { - if (orderBy != null) - url = url.concat("?orderby="+ orderBy); - } - } - - Response res = http.doConnect(url, HttpConHandler.HTTP_GET, httpHeaders, null); - - if(res.isError()){ - return null; - } - - String xmlOut = res.getOutput(); - - // XML Parsing - ParseFeed pf = new ParseFeed(); - Feed f = pf.parse(xmlOut.getBytes()); - ArrayList entries = f.getEntries(); - - // [Fix_11_JAN_2011_Prasanta multiple call to getRecords() while changing Android orientation - records.clear(); - // Fix_11_JAN_2011_Prasanta] - - if(entries != null){ - for(int i=0; i records){ - /* - * It will send request to WorkSheet URL: - * https://spreadsheets.google.com/feeds/list/key/worksheetId/private/full - * Unlike Tables, there can be only one List Feed associated with a given WorkSheet - */ - - StringBuffer listRecordXML = new StringBuffer(); - listRecordXML.append(""); - - Iterator ks = records.keySet().iterator(); - while(ks.hasNext()){ - String colName = ks.next(); - String value = records.get(colName); - listRecordXML.append(" "+ value +""); - } - listRecordXML.append(""); - - // Do server transaction - // Add Headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - httpHeaders.put(HttpConHandler.CONTENT_TYPE_HTTP_HEADER, "application/atom+xml"); - - HttpConHandler http = new HttpConHandler(); - Response res = http.doConnect(workSheetURL, HttpConHandler.HTTP_POST, httpHeaders, listRecordXML.toString()); - - // Add the into local Record cache - // Parse response and create new Row instance - if(res.isError()){ - Log.p(TAG, "Error in updating List Row..."); - return null; - } - - String xmlOut = res.getOutput(); - - // XML Parsing - ParseFeed pf = new ParseFeed(); - Feed f = pf.parse(xmlOut.getBytes()); - ArrayList entries = f.getEntries(); - - if(entries == null || entries.size() == 0){ - Log.p(TAG, "Error in parsing..."); - return null; - } - - Entry e = entries.get(0); - WorkSheetRow row = new WorkSheetRow(); - row.setId(e.getId()); - row.setCells(e.getCells()); - - // Update local Cache - if(this.records == null){ - this.records = new ArrayList(); - this.records.add(row); - return row; - } - // Update existing Row instance - this.records.add(row); - return row; - } - - /** - * Delete List Row - * @param r WorkSheetRow which need to be deleted - */ - public void deleteListRow(String key, WorkSheetRow r) - { - if(r == null){ - Log.p(TAG, "WorkSheetRow is null..."); - return; - } - - // Sample DELETE URL- https://spreadsheets.google.com/feeds/list/tmG5DprMeR-l2j91JQBB1TQ/odp/private/full/cokwr - String listRowURL = "https://spreadsheets.google.com/feeds/list/"+ key +"/"+ workSheetID + "/private/full/"+ r.getRowIndex(); - - // Do server transaction - // Add Headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - //If you want to delete the row regardless of whether someone else has updated it since you retrieved it - httpHeaders.put("If-Match", "*"); - - HttpConHandler http = new HttpConHandler(); - http.doConnect(listRowURL, HttpConHandler.HTTP_DELETE, httpHeaders, null); - - // Delete this entry from local record list - records.remove(r); - } - - /** - * Update List row - * @param rowID ID of the List row to be updated - * @param records records need to be updated - */ - - /** - * Update List row - * - * @param r WorkSheetRow to be updated - * @param records new records - * @return - */ - public WorkSheetRow updateListRow(String key, WorkSheetRow r, HashMap records) - { - if(r == null){ - Log.p(TAG, "WorkSheetRow is null..."); - return r; - } - - // Sample PUT URL- https://spreadsheets.google.com/feeds/list/tmG5DprMeR-l2j91JQBB1TQ/odp/private/full/cokwr - String listRowURL = "https://spreadsheets.google.com/feeds/list/"+ key +"/"+ workSheetID + "/private/full/"+ r.getRowIndex(); - - StringBuffer rowUpdateXML = new StringBuffer(""); - - Iterator ks = records.keySet().iterator(); - while(ks.hasNext()){ - String colName = ks.next(); - String value = records.get(colName); - rowUpdateXML.append(" "+ value +""); - } - rowUpdateXML.append(""); - - // Do server transaction- PUT - // Add Headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - httpHeaders.put(HttpConHandler.CONTENT_TYPE_HTTP_HEADER, "application/atom+xml"); - //If you want to delete the row regardless of whether someone else has updated it since you retrieved it - httpHeaders.put("If-Match", "*"); - - HttpConHandler http = new HttpConHandler(); - Response res = http.doConnect(listRowURL, HttpConHandler.HTTP_PUT, httpHeaders, rowUpdateXML.toString()); - - // Parse response and create new Row instance - if(res.isError()){ - Log.p(TAG, "Error in updating List Row..."); - return null; - } - - String xmlOut = res.getOutput(); - - // XML Parsing - ParseFeed pf = new ParseFeed(); - Feed f = pf.parse(xmlOut.getBytes()); - ArrayList entries = f.getEntries(); - - if(entries == null || entries.size() == 0){ - Log.p(TAG, "Error in parsing..."); - return null; - } - - Entry e = entries.get(0); - WorkSheetRow row = new WorkSheetRow(); - row.setId(e.getId()); - row.setCells(e.getCells()); - - // Update local Cache - if(this.records == null){ - this.records = new ArrayList(); - this.records.add(row); - return row; - } - // Update existing Row instance - this.records.set(this.records.indexOf(row), row); - return row; - } - - /** - * Add record into WorkSheet. This WorkSheet need to have associated Table. - * - * Use SpreadSheet.addWorkSheet() - *
- * Note: - *
- * All data entered through Web Interface will be ignored. - * - * @param key Key of SpreadSheet - * @param records Record to be added ([col_name],[value]) - */ - public void addRecord(String key, HashMap records){ - if(table == null){ - throw new IllegalAccessError("This WorkSheet doesn't have any Table"); - } - - Log.p(TAG, "Associated Table ID: "+ table.getId()); - String tableRecordURL = "https://spreadsheets.google.com/feeds/"+ key +"/records/"+ table.getId(); - - String tableRecordXML = ""+ - ""+ table.getName() +""; - - Set keys = records.keySet(); - Iterator it = keys.iterator(); - - while(it.hasNext()){ - String k = it.next(); - tableRecordXML = tableRecordXML.concat(""+ records.get(k) +""); - } - - tableRecordXML = tableRecordXML.concat(""); - - Log.p(TAG, "Table Record XML: "+ tableRecordXML); - - // Add Headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - httpHeaders.put(HttpConHandler.CONTENT_TYPE_HTTP_HEADER, "application/atom+xml"); - - HttpConHandler http = new HttpConHandler(); - http.doConnect(tableRecordURL, HttpConHandler.HTTP_POST, httpHeaders, tableRecordXML); - } - - - /** - * Get data stored in this WorkSheet - * - * @param key SpreadSheet Key - * @return - */ - public ArrayList getRecords(String key){ - return getRecords(key, false, null, null); - } - - /** - * @param key SpreadSheet Key - * @param sq Structured Query - * - * @return - */ - public ArrayList getRecords(String key, String sq){ - return getRecords(key, false, sq, null); - } - - - /** - * Get data stored in this WorkSheet. Retrieved data will be in a HashMap- - * , - *
- * It supports following conditional Query-
- * Structured Query: you can define conditional statements like in SQL e.g. !=
- * Order By: Order by a given column name or position
- * Reverse: Record retrived in reverse order (last row 1st)
- *
- * NOTE: - *
- * It will retrieve records present in the Table. Tables can't be accessed by the Web UI. - *
- * So, any data inserted by Web UI will be discarded. - *
- * @param key SpreadSheet Key - * @param doReverse Display data in reverse order (last row first) - * @param sq Structured Query - * @param orderBy Order By - * @return - */ - public ArrayList getRecords(String key, boolean doReverse, String sq, String orderBy){ - - if(table == null){ - Log.p(TAG, "No Associated Table to Hold Data!!"); - return null; - } - - // Table Access URL - String tableRecordURL = "https://spreadsheets.google.com/feeds/"+ key +"/records/"+ table.getId(); - - if(doReverse){ - // Table record in reverse order (last row first) - tableRecordURL = tableRecordURL.concat("?reverse=true"); - if(sq != null){ - // Structured Query - tableRecordURL = tableRecordURL.concat("&sq="+ sq); - } - if(orderBy != null){ - // Order By Statement - tableRecordURL = tableRecordURL.concat("&orderby="+ orderBy); - } - } - else{ - // Structured Query & Order By - if(sq != null){ - tableRecordURL = tableRecordURL.concat("?sq="+ sq); - if(orderBy != null) - tableRecordURL = tableRecordURL.concat("&orderby="+ orderBy); - }else{ - if(orderBy != null) - tableRecordURL = tableRecordURL.concat("?orderby="+ orderBy); - } - } - - Log.p(TAG, "tableRecordURL="+ tableRecordURL); - - // Add Headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - - HttpConHandler http = new HttpConHandler(); - Response res = http.doConnect(tableRecordURL, HttpConHandler.HTTP_GET, httpHeaders, null); - - if(res.isError()){ - return null; - } - - String xmlOut = res.getOutput(); - - // XML Parsing - ParseFeed pf = new ParseFeed(); - Feed f = pf.parse(xmlOut.getBytes()); - ArrayList entries = f.getEntries(); - - if(entries == null){ - Log.p(TAG, "No Reord found!!"); - return null; - } - - // [Fix_11_JAN_2011_Prasanta multiple call to getRecords() while changing Android orientation - table.clearData(); - // Fix_11_JAN_2011_Prasanta] - - for(int i=0; i< entries.size(); i++){ - Entry e = entries.get(i); - ArrayList fields = e.getFields(); - Record r = new Record(); - r.setId(e.getId()); - r.setEditURL(e.getEditLink()); - - for(int j=0; j getRecords(){ - return table.getRecords(); - } - - /** - * Record instance you want to Update - * Keep only those data which you want to update for this record - * - * @param record Record to be updated - */ - public void updateRecord(Record record){ - - if(record == null){ - throw new IllegalAccessError("Pass a valid Record!!"); - } - - String recordXML = ""+ - ""+ record.getId() +""; - - HashMap data = record.getData(); - - Set keys = data.keySet(); - Iterator it = keys.iterator(); - - while(it.hasNext()){ - String k = it.next(); - recordXML = recordXML.concat(""+ data.get(k) +""); - } - - recordXML += ""; - - Log.p(TAG, "Update Record XML: "+ recordXML); - - // Add Headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - httpHeaders.put(HttpConHandler.CONTENT_TYPE_HTTP_HEADER, "application/atom+xml"); - httpHeaders.put("If-Match", "*"); - - // HTTP Connection - HttpConHandler http = new HttpConHandler(); - http.doConnect(record.getEditURL(), HttpConHandler.HTTP_PUT, httpHeaders, recordXML); - } - - /** - * Delete a Record - * @param record Record to be deleted - */ - public void deleteRecord(Record record){ - - if(record == null){ - throw new IllegalAccessError("Pass a valid Record!!"); - } - - // Add Headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - httpHeaders.put("If-Match", "*"); - - // HTTP Connection - HttpConHandler http = new HttpConHandler(); - http.doConnect(record.getEditURL(), HttpConHandler.HTTP_DELETE, httpHeaders, null); - } - - /** - * Delete this WorkSheet. It will also delete its associated Table. - * There is no separate method for deleting a Table - */ - public void delete(){ - // Sample URL: DELETE https://spreadsheets.google.com/feeds/worksheets/key/private/full/worksheetId/version - // We don't need "version" - - // Add Headers - HashMap httpHeaders = new HashMap(); - httpHeaders.put(HttpConHandler.AUTHORIZATION_HTTP_HEADER, "GoogleLogin auth="+ SpreadSheetFactory.authToken); - httpHeaders.put(HttpConHandler.GDATA_VERSION_HTTP_HEADER, "3.0"); - httpHeaders.put("If-Match", "*"); - - HttpConHandler http = new HttpConHandler(); - String wsDeleteURL = entry.getId().substring(0, entry.getId().lastIndexOf("/")); - wsDeleteURL = wsDeleteURL.concat("/private/full/").concat(workSheetID); - - http.doConnect(wsDeleteURL, HttpConHandler.HTTP_DELETE, httpHeaders, null); - } -} diff --git a/jars/gss-lib-2.2/src/com/pras/WorkSheetCell.java b/jars/gss-lib-2.2/src/com/pras/WorkSheetCell.java deleted file mode 100644 index 64a5bc4..0000000 --- a/jars/gss-lib-2.2/src/com/pras/WorkSheetCell.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras; - -/** - * Individual Cell of the Work Sheet - * One Row can have multiple Cells - * @author Prasanta Paul - */ -public class WorkSheetCell { - - /** - * Name of the column this cell belongs to - */ - String name; - /** - * Data type of the Cell (Int, String, Date etc.) - */ - String type; - /** - * Value of the cell - */ - String value; - /** - * Row index of this Cell - */ - int row = 0; - /** - * Column index of this Cell - */ - int col = 0; - - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - public String getType() { - return type; - } - public void setType(String type) { - this.type = type; - } - public String getValue() { - return value; - } - public void setValue(String value) { - this.value = value; - } - public int getRow() { - return row; - } - public void setRow(int row) { - this.row = row; - } - public int getCol() { - return col; - } - public void setCol(int col) { - this.col = col; - } - @Override - public String toString() { - // TODO Auto-generated method stub - return name +"="+ value; - } -} diff --git a/jars/gss-lib-2.2/src/com/pras/WorkSheetRow.java b/jars/gss-lib-2.2/src/com/pras/WorkSheetRow.java deleted file mode 100644 index 65f8b90..0000000 --- a/jars/gss-lib-2.2/src/com/pras/WorkSheetRow.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras; - -import java.util.ArrayList; - -/** - * Supporting class for list based data feed - * @author Prasanta Paul - */ -public class WorkSheetRow { - - String id; - - String rowIndex; - /** - * Data Type of - */ - String type; - ArrayList cells = new ArrayList(); - - public String getId() { - return id; - } - public void setId(String id) { - this.id = id; - setRowIndex(id.substring(id.lastIndexOf("/") + 1)); - } - public String getRowIndex() { - return rowIndex; - } - public void setRowIndex(String rowIndex) { - this.rowIndex = rowIndex; - } - public String getType() { - return type; - } - public void setType(String type) { - this.type = type; - } - public ArrayList getCells() { - return cells; - } - public void setCells(ArrayList cells) { - this.cells = cells; - } - - @Override - public boolean equals(Object obj) { - if(obj == null || !(obj instanceof WorkSheetRow)) - return false; - WorkSheetRow r = (WorkSheetRow) obj; - if(r.hashCode() == this.hashCode()) - return true; - return false; - } - - @Override - public int hashCode() { - if(id == null) - id = ""; - return id.hashCode(); - } - - @Override - public String toString() { - // TODO Auto-generated method stub - return ""+ cells; - } -} diff --git a/jars/gss-lib-2.2/src/com/pras/auth/Account.java b/jars/gss-lib-2.2/src/com/pras/auth/Account.java deleted file mode 100644 index d99b8ff..0000000 --- a/jars/gss-lib-2.2/src/com/pras/auth/Account.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras.auth; - -/** - * Account data holding class - * - * @author Prasanta Paul - * - */ -public class Account { - - String email; - String password; - String accountType = "GOOGLE"; - public String getEmail() { - return email; - } - public void setEmail(String email) { - this.email = email; - } - public String getPassword() { - return password; - } - public void setPassword(String password) { - this.password = password; - } - public String getAccountType() { - return accountType; - } - public void setAccountType(String accountType) { - this.accountType = accountType; - } -} diff --git a/jars/gss-lib-2.2/src/com/pras/auth/Authenticator.java b/jars/gss-lib-2.2/src/com/pras/auth/Authenticator.java deleted file mode 100644 index 43ff209..0000000 --- a/jars/gss-lib-2.2/src/com/pras/auth/Authenticator.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras.auth; - -public interface Authenticator { - - /** - * Do the authentication and read Auth_Token from Server. The implementor class - * will provide Account (Gmail) and Service details - * - * @param service Name of the Service for which Authentication Token is required e.g. "wise" for SpreadSheet - * @return - */ - public String getAuthToken(String service); -} diff --git a/jars/gss-lib-2.2/src/com/pras/auth/BasicAuthenticatorImpl.java b/jars/gss-lib-2.2/src/com/pras/auth/BasicAuthenticatorImpl.java deleted file mode 100644 index d36043c..0000000 --- a/jars/gss-lib-2.2/src/com/pras/auth/BasicAuthenticatorImpl.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras.auth; - -import com.pras.Log; -import com.pras.conn.HttpConHandler; -import com.pras.conn.Response; - -/** - * This will provide a basic and LOW Level way of getting Authetication Token - * for various Google's services. - * This is a generic approach for core Java. User can add Platform specific Autheticator - * implementation. - * @author Prasanta Paul - * - */ -public class BasicAuthenticatorImpl implements Authenticator { - - final String TAG = "BasicAuthenticatorImpl"; - // Google Authentication URL - private final String GOOGLE_CLIENT_LOGIN_URL = "https://www.google.com/accounts/ClientLogin"; - Account account; - - public BasicAuthenticatorImpl(Account account){ - this.account = account; - } - - /* (non-Javadoc) - * @see com.pras.auth.Authenticator#getAuthToken(java.lang.String) - */ - public String getAuthToken(String service) { - if(account == null){ - Log.p(TAG, "No Account Info "+ account); - } - - // TODO Auto-generated method stub - String postData = "accountType="+ account.getAccountType() +"&Email="+ account.getEmail() +"&Passwd="+ account.getPassword() +"&service="+ service +"&source=test-app-log"; - - HttpConHandler http = new HttpConHandler(); - Response res = http.doConnect(GOOGLE_CLIENT_LOGIN_URL, HttpConHandler.HTTP_POST, null, postData); - - if(res.isError()){ - return null; - } - - String out = res.getOutput(); - /* - * Format of success response - * SID=<>LSID=<>Auth=<> - */ - String[] parms = out.split("="); - String authToken = null; - for(int i=0; i httpHeaders, String postData) { - - String res = null; - HttpURLConnection con = null; - Response response = new Response(); - String TAG = "HttpConHandler"; - - try{ - /* - * IMPORTANT: - * User SHOULD provide URL Encoded Parms - */ - Log.p(TAG, "URL="+ urlStr); - // TODO: Remove proxy - // Somehow Eclipse is not detecting Proxy - // HTTP Proxy - System.getProperties().put("http.proxyHost", "168.219.61.250"); - System.getProperties().put("http.proxyPort", "8080"); - // HTTPS Proxy - System.getProperties().put("https.proxyHost", "168.219.61.252"); - System.getProperties().put("https.proxyPort", "8080"); - URL url = new URL(urlStr); - con = (HttpURLConnection) url.openConnection(); - - //con.setInstanceFollowRedirects(false); - - OutputStream out = null; - - // Set headers - /* - * All subsequent request to Google Spreadsheet/Data API - * should include following 2 Headers - */ - //con.setRequestProperty("Authorization", "GoogleLogin auth="+ authToken); - //con.setRequestProperty("GData-Version", "3.0"); - - if(httpHeaders != null){ - //System.out.println("Number of HTTP Headers: "+ httpHeaders.size()); - Iterator keys = httpHeaders.keySet().iterator(); - while(keys.hasNext()){ - String k = keys.next(); - con.setRequestProperty(k, httpHeaders.get(k)); - } - } - - if(type == HTTP_POST){ - con.setDoOutput(true); - out = con.getOutputStream(); - out.write(postData.getBytes()); - out.flush(); - } - else if(type == HTTP_GET){ - con.setDoInput(true); - } - else if(type == HTTP_DELETE){ - con.setRequestMethod("DELETE"); - con.connect(); - } - else if(type == HTTP_PUT){ - con.setRequestMethod("PUT"); - // Send Data - con.setDoOutput(true); - out = con.getOutputStream(); - out.write(postData.getBytes()); - out.flush(); - } - - // Read Response Code - response.setResponseCode(""+ con.getResponseCode()); - response.setResponseMessage(con.getResponseMessage()); - - // Read InputStream - BufferedReader reader = new BufferedReader(new InputStreamReader(con.getInputStream())); - StringBuffer strBuf = new StringBuffer(); - String line = ""; - while((line = reader.readLine()) != null) - strBuf.append(line); - - reader.close(); - - if(out != null) - out.close(); - - res = strBuf.toString(); - - response.setOutput(res); - - Log.p(TAG, "Response from Google Server: \n"+ res); - - }catch(Exception ex){ - - Log.p(TAG, "Error in connection: "+ ex.toString()); - // Oops Exception - response.setError(true); - - // Set Exception - response.setException(ex); - - if(con == null) - return response; - - InputStream error_in = con.getErrorStream(); - - if(error_in == null) - return response; - - // Read the error stream - BufferedReader reader = new BufferedReader(new InputStreamReader(error_in)); - if(reader == null) - return response; - - StringBuffer errStrBuf = new StringBuffer(); - String line = ""; - - try{ - while((line = reader.readLine()) != null) - errStrBuf.append(line); - - // Set Error Stream Message - response.setErrorStreamMsg(errStrBuf.toString()); - - reader.close(); - - // Display error on logging console - response.printErrorLog(); - - }catch(Exception e){ - Log.p(TAG, "Error in reading Stream: "+ e.getMessage()); - } - } - return response; - } - - /** - * Encode URL parameters in UTF-8 format - * - * @param str String to be URL encoded - * - * @return - */ - public static String encode(String str){ - try{ - str = URLEncoder.encode(str, "UTF-8"); - }catch(Exception ex){ex.printStackTrace();} - return str; - } -} diff --git a/jars/gss-lib-2.2/src/com/pras/conn/Response.java b/jars/gss-lib-2.2/src/com/pras/conn/Response.java deleted file mode 100644 index d6e074a..0000000 --- a/jars/gss-lib-2.2/src/com/pras/conn/Response.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras.conn; - -import com.pras.Log; - -/** - * Wrapper class to hold Response from Server, Connection Exception etc. - * - * @author rasanta - * - */ -public class Response { - - String TAG = "HTTP_Response"; - - boolean error = false; - String responseCode; - String responseMessage; - String errorStreamMsg; - String output; - Exception exception; - - - public boolean isError() { - return error; - } - public void setError(boolean error) { - this.error = error; - } - public String getResponseCode() { - return responseCode; - } - public void setResponseCode(String responseCode) { - this.responseCode = responseCode; - - /* - * Response Codes- - * 1xx: Informational - * 2xx: Success - * 3xx: Redirection - * 4xx: Client Error - * 5xx: Server Error - */ - - if(this.responseCode.startsWith("2")) - error = false; - else - error = true; - } - public String getResponseMessage() { - return responseMessage; - } - public void setResponseMessage(String responseMessage) { - this.responseMessage = responseMessage; - } - public String getErrorStreamMsg() { - return errorStreamMsg; - } - public void setErrorStreamMsg(String errorStreamMsg) { - this.errorStreamMsg = errorStreamMsg; - } - public String getOutput() { - return output; - } - public void setOutput(String output) { - this.output = output; - } - public Exception getException() { - return exception; - } - public void setException(Exception exception) { - this.exception = exception; - } - - public void printErrorLog(){ - Log.p(TAG, "HTTP Response Code: "+ getResponseCode()); - Log.p(TAG, "HTTP Response: "+ getResponseMessage()); - Log.p(TAG, "Error Msg from Server: "+ getErrorStreamMsg()); - if(exception != null){ - Log.p(TAG, "Error in Connection: "+ exception.getMessage()); - exception.printStackTrace(); - } - } -} diff --git a/jars/gss-lib-2.2/src/com/pras/sp/Entry.java b/jars/gss-lib-2.2/src/com/pras/sp/Entry.java deleted file mode 100644 index 84831f7..0000000 --- a/jars/gss-lib-2.2/src/com/pras/sp/Entry.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras.sp; - -import java.util.ArrayList; - -import com.pras.WorkSheetCell; - - -/** - * This class represents an entry of SpreadSheet XML Feed - * @author Prasanta Paul - * - */ -public class Entry { - - String eTAG; - String id; - String key; - String title; - String workSheetURL; - /** - * Table Feed- Summary - */ - String summary; - - String authorName; - String authorEmail; - - // ACL Fields- Role and Scope - String aclRole; - String aclScopeType; - String aclScopeValue; - String editLink; - - // Fields specific to Work Sheet - int rowCount; - int colCount; - - // SpreadSheet Doc ID - String resID; - // Cell Feed, cell info - WorkSheetCell cellInfo = null; - - //WorkSheet List Feed- Cells - ArrayList cells = new ArrayList(); - - /** - * Table feed column name - */ - ArrayList cols = new ArrayList(); - - /** - * Table record - */ - ArrayList fields = new ArrayList(); - - - public String getETAG() { - return eTAG; - } - public void setETAG(String etag) { - eTAG = etag; - } - public String getId() { - return id; - } - public void setId(String id) { - this.id = id; - setKey(id.substring(id.lastIndexOf("/") + 1)); - } - public String getKey() { - return key; - } - public void setKey(String key) { - this.key = key; - } - public String getTitle() { - return title; - } - public void setTitle(String title) { - this.title = title; - } - public String getWorkSheetURL() { - return workSheetURL; - } - public void setWorkSheetURL(String workSheetURL) { - this.workSheetURL = workSheetURL; - } - public String getAuthorName() { - return authorName; - } - public void setAuthorName(String authorName) { - this.authorName = authorName; - } - public String getAuthorEmail() { - return authorEmail; - } - public void setAuthorEmail(String authorEmail) { - this.authorEmail = authorEmail; - } - public int getRowCount() { - return rowCount; - } - public void setRowCount(int rowCount) { - this.rowCount = rowCount; - } - public int getColCount() { - return colCount; - } - public void setColCount(int colCount) { - this.colCount = colCount; - } - public WorkSheetCell getCellInfo() { - return cellInfo; - } - public void setCellInfo(WorkSheetCell cellInfo) { - this.cellInfo = cellInfo; - } - public ArrayList getCells() { - return cells; - } - public void setCells(ArrayList cells) { - this.cells = cells; - } - public void addCell(WorkSheetCell cell) { - this.cells.add(cell); - } - public String getResID() { - return resID; - } - public void setResID(String resID) { - this.resID = resID; - } - public String getSummary() { - return summary; - } - public void setSummary(String summary) { - this.summary = summary; - } - public ArrayList getCols() { - return cols; - } - public void addCol(String colName){ - cols.add(colName); - } - public void setCols(ArrayList cols) { - this.cols = cols; - } - public ArrayList getFields() { - return fields; - } - public void addField(Field f){ - fields.add(f); - } - public void setFields(ArrayList fields) { - this.fields = fields; - } - public String getAclRole() { - return aclRole; - } - public void setAclRole(String aclRole) { - this.aclRole = aclRole; - } - public String getAclScopeType() { - return aclScopeType; - } - public void setAclScopeType(String aclScopeType) { - this.aclScopeType = aclScopeType; - } - public String getAclScopeValue() { - return aclScopeValue; - } - public void setAclScopeValue(String aclScopeValue) { - this.aclScopeValue = aclScopeValue; - } - public String getEditLink() { - return editLink; - } - public void setEditLink(String editLink) { - this.editLink = editLink; - } -} diff --git a/jars/gss-lib-2.2/src/com/pras/sp/Feed.java b/jars/gss-lib-2.2/src/com/pras/sp/Feed.java deleted file mode 100644 index 8ddf517..0000000 --- a/jars/gss-lib-2.2/src/com/pras/sp/Feed.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras.sp; - -import java.util.ArrayList; - -/** - * This class is to hold Spreadsheet Feed data - * @author Prasanta Paul - * - */ -public class Feed { - - String id; - /** - * key associated with each feed. if feed changes, so as its value - */ - String etag; - String title; - ArrayList entries; - - public String getId() { - return id; - } - public void setId(String id) { - this.id = id; - } - public String getEtag() { - return etag; - } - public void setEtag(String etag) { - this.etag = etag; - } - public String getTitle() { - return title; - } - public void setTitle(String title) { - this.title = title; - } - public ArrayList getEntries() { - return entries; - } - public void addEntry(Entry e) { - if(entries == null) - entries = new ArrayList(); - entries.add(e); - } - public void clearEntries(){ - if(entries != null) - entries.clear(); - } -} diff --git a/jars/gss-lib-2.2/src/com/pras/sp/Field.java b/jars/gss-lib-2.2/src/com/pras/sp/Field.java deleted file mode 100644 index b380310..0000000 --- a/jars/gss-lib-2.2/src/com/pras/sp/Field.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras.sp; - -/** - * Class for Table Feed data record in Feed XML - * - * @author Prasanta Paul - * - */ -public class Field { - - String colName; - String value; - /** - * Will define the order of Columns - */ - String index; - - public String getColName() { - return colName; - } - public void setColName(String colName) { - this.colName = colName; - } - public String getValue() { - return value; - } - public void setValue(String value) { - this.value = value; - } - public String getIndex() { - return index; - } - public void setIndex(String index) { - this.index = index; - } -} diff --git a/jars/gss-lib-2.2/src/com/pras/sp/ParseFeed.java b/jars/gss-lib-2.2/src/com/pras/sp/ParseFeed.java deleted file mode 100644 index e68eaf8..0000000 --- a/jars/gss-lib-2.2/src/com/pras/sp/ParseFeed.java +++ /dev/null @@ -1,288 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras.sp; - -import java.io.ByteArrayInputStream; - -import javax.xml.parsers.SAXParser; -import javax.xml.parsers.SAXParserFactory; - -import org.xml.sax.Attributes; -import org.xml.sax.SAXException; -import org.xml.sax.helpers.DefaultHandler; - -import com.pras.Log; -import com.pras.WorkSheetCell; - - -/** - * Using SAX Parser, to keep the compatibility with Android - * @author Prasanta Paul - * - */ -public class ParseFeed extends DefaultHandler { - - private String TAG = "ParseFeed"; - - // Attributes - final String ATTRITUBE_ETAG = "gd:etag"; - final String ATTRITUBE_SRC = "src"; - // Nodes - final String NODE_FEED = "feed"; - final String NODE_ENTRY = "entry"; - final String NODE_ID = "id"; - final String NODE_TITLE = "title"; - // Table Feed - final String NODE_SUMMARY = "summary"; - final String NODE_CONTENT = "content"; - final String NODE_LINK = "link"; - final String NODE_NAME = "name"; - final String NODE_EMAIL = "email"; - // Nodes- specific to Work Sheet - static String NODE_ROW_COUNT = "gs:rowCount"; - static String NODE_COL_COUNT = "gs:colCount"; - // Table Feed - static String NODE_GS_DATA = "gs:data"; - static String NODE_GS_COL = "gs:column"; - // Nodes- specific to WorkSheet List Data Feed (gsx: namespace) - final String NODE_GSX = "gsx:"; - // Cell based Feed - final String NODE_GS_CELL = "gs:cell"; - final String ATTRITUBE_ROW = "row"; - final String ATTRITUBE_COL = "col"; - // Resource ID for SpreadSheet (Document List API) - /** - * Not in use; - * @deprecated - */ - final String NODE_GD_RESOURCEID = "gd:resourceId"; - - // Table Record - static String NODE_GS_FIELD = "gs:field"; - - // ACL Fields - final String NODE_GACL_ROLE = "gAcl:role"; - final String NODE_GACL_SCOPE = "gAcl:scope"; - - // [Fix_11_JAN_2011_Prasanta For Android SDK - /* - * Android SDK removes gs: prefix - */ - public static void doCustomizationForSDK(){ - NODE_GS_DATA = "data"; - NODE_GS_COL = "column"; - NODE_GS_FIELD = "field"; - NODE_ROW_COUNT = "rowCount"; - NODE_COL_COUNT = "colCount"; - } - // Fix_11_JAN_2011_Prasanta] - - Feed f = null; - Entry e = null; - Field field = null; - String node = null; - - public Feed parse(byte[] data){ - - SAXParserFactory factory = SAXParserFactory.newInstance(); - try{ - SAXParser parser = factory.newSAXParser(); - parser.parse(new ByteArrayInputStream(data), this); - }catch(Exception ex){ - Log.p(TAG, "Error in parsing: "+ ex.toString()); - ex.printStackTrace(); - } - - return f; - } - - @Override - public void characters(char[] ch, int start, int length) - throws SAXException { - super.characters(ch, start, length); - - if(node.equals(NODE_TITLE)){ - if(e == null) - f.setTitle(new String(ch).substring(start, start+length)); - else - e.setTitle(new String(ch).substring(start, start+length)); - } - if(node.equals(NODE_SUMMARY)){ - if(e != null) - e.setSummary(new String(ch).substring(start, start+length)); - } - else if(node.equals(NODE_NAME)){ - if(e != null) - e.setAuthorName(new String(ch).substring(start, start+length)); - } - else if(node.equals(NODE_EMAIL)){ - if(e != null) - e.setAuthorEmail(new String(ch).substring(start, start+length)); - } - else if(node.equals(NODE_ID)){ - if(e == null) - f.setId(new String(ch).substring(start, start+length)); - else - e.setId(new String(ch).substring(start, start+length)); - } - else if(node.equals(NODE_ROW_COUNT)){ - if(e != null) - e.setRowCount(Integer.parseInt(new String(ch).substring(start, start+length))); - } - else if(node.equals(NODE_COL_COUNT)){ - if(e != null) - e.setColCount(Integer.parseInt(new String(ch).substring(start, start+length))); - } - else if(node.toLowerCase().startsWith(NODE_GSX)){ - node = node.toLowerCase(); - WorkSheetCell cell = new WorkSheetCell(); - cell.setName(node.toLowerCase().substring(node.indexOf(":") + 1)); - cell.setValue(new String(ch).substring(start, start+length)); - // TODO: Cell Data Type - if(e != null) - e.addCell(cell); - } - else if(node.equals(NODE_GD_RESOURCEID)){ - e.setResID(new String(ch).substring(start, start+length)); - } - else if(node.equals(NODE_GS_FIELD)){ - field.setValue(new String(ch).substring(start, start+length)); - e.addField(field); - } - else if(node.equals(NODE_GS_CELL)){ - // Cell Feed: gs:cell - WorkSheetCell cellInfo = e.getCellInfo(); - if(cellInfo != null){ - cellInfo.setName(new String(ch).substring(start, start+length)); - if(e != null) - e.setCellInfo(cellInfo); - } - } - } - - @Override - public void startDocument() throws SAXException { - super.startDocument(); - f = new Feed(); - } - - @Override - public void startElement(String uri, String localName, String name, - Attributes attributes) throws SAXException { - super.startElement(uri, localName, name, attributes); - - if(name.trim().length() == 0) - node = localName; - else - node = name; - - //Log.p(TAG, "LocalName: "+ localName +" Name="+ name +" URI="+ uri); - - if(node.equals(NODE_FEED)){ - f = new Feed(); - // read ETag - //f.setEtag(attributes.getValue("http://schemas.google.com/g/2005", "gd:etag")); - f.setEtag(attributes.getValue("gd:etag")); - } - else if(node.equals(NODE_ENTRY)){ - //Log.p(TAG, "Entry...XML Feed"); - e = new Entry(); - // read ETag - e.setETAG(attributes.getValue("gd:etag")); - } - else if(node.equals(NODE_CONTENT)){ - /* - * TODO: - * Fetch WorkSheet or Main access URL for any SpreadSheet or WorkSheet - * from - */ - e.setWorkSheetURL(attributes.getValue("src")); - } - else if(node.equals(NODE_LINK)){ - if(e != null){ - // Consider Link only of Entry node - String rel = attributes.getValue("rel"); - if(rel != null && rel.equals("alternate")){ - String href = attributes.getValue("href"); - int index = href.indexOf("?key="); - if(index != -1) - e.setResID("spreadsheet:"+ href.substring(index + 5)); - } - else if(rel != null && rel.equals("edit")){ - // Read Edit Link - e.setEditLink(attributes.getValue("href")); - } - } - } - else if(node.equals(NODE_GS_COL)){ - String colName = attributes.getValue("name"); - //Log.p(TAG, "[gs:column:] node..."+ colName); - if(colName != null) - e.addCol(colName); - } - else if(node.equals(NODE_GS_FIELD)){ - String fieldName = attributes.getValue("name"); - if(fieldName != null){ - field = new Field(); - field.setColName(fieldName); - field.setIndex(attributes.getValue("index")); - } - } - else if(node.equals(NODE_GACL_ROLE)){ - //ACL Role - e.setAclRole(attributes.getValue("value")); - } - else if(node.equals(NODE_GACL_SCOPE)){ - // ACL Scope- Type and Value - e.setAclScopeType(attributes.getValue("type")); - e.setAclScopeValue(attributes.getValue("value")); - } - else if(node.equals(NODE_GS_CELL)){ - // Cell Feed: gs:cell - WorkSheetCell cellInfo = new WorkSheetCell(); - cellInfo.setRow(Integer.parseInt(attributes.getValue(ATTRITUBE_ROW))); - cellInfo.setCol(Integer.parseInt(attributes.getValue(ATTRITUBE_COL))); - if(e != null) - e.setCellInfo(cellInfo); - } - } - - @Override - public void endDocument() throws SAXException { - super.endDocument(); - } - - @Override - public void endElement(String uri, String localName, String name) - throws SAXException { - super.endElement(uri, localName, name); - - if(name.trim().length() == 0) - node = localName; - else - node = name; - - if(node == null) - return; - - if(node.equals(NODE_ENTRY)){ - // end of entry - f.addEntry(e); - e = null; - } - } -} diff --git a/jars/gss-lib-2.2/src/com/pras/table/Record.java b/jars/gss-lib-2.2/src/com/pras/table/Record.java deleted file mode 100644 index 84661e8..0000000 --- a/jars/gss-lib-2.2/src/com/pras/table/Record.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras.table; - -import java.util.HashMap; - -/** - * This class represents individual records of the Table (associated with an WorkSheet) - * - * @author Prasanta Paul - */ -public class Record { - /** - * - */ - String editURL; - /** - * node of an entry - */ - String id; - - /** - * It will store data of a single row - * - */ - HashMap data = new HashMap(); - - /** - * Get Record Edit URL - * @return - */ - public String getEditURL() { - return editURL; - } - - /** - * Set Record Edit URL - * @param editURL - */ - public void setEditURL(String editURL) { - this.editURL = editURL; - } - - /** - * Get data of this Record - * @return - */ - public HashMap getData() { - return data; - } - - /** - * Remove all stored data from this Record - */ - public void clearData(){ - data.clear(); - } - - /** - * Add data into this Record - * - * @param colName - * @param value - */ - public void addData(String colName, String value){ - data.put(colName, value); - } - - /** - * Set Data into this Record - * @param data - */ - public void setData(HashMap data) { - this.data = data; - } - /** - * Get ID URL of this Record - * @return - */ - public String getId() { - return id; - } - - /** - * Set ID URL of this Record - * @param id - */ - public void setId(String id) { - this.id = id; - } -} diff --git a/jars/gss-lib-2.2/src/com/pras/table/Table.java b/jars/gss-lib-2.2/src/com/pras/table/Table.java deleted file mode 100644 index bcda11e..0000000 --- a/jars/gss-lib-2.2/src/com/pras/table/Table.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com - * - * Licensed 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 com.pras.table; - -import java.util.ArrayList; -import java.util.HashMap; - -/** - * Table associated with WorkSheet. It holds data and internally used in WorkSheet. - * - * @author Prasanta Paul - */ -public class Table { - /** - * Table ID - */ - private String id; - /** - * Table name - */ - private String name; - /** - * Table description - */ - private String description; - /** - * Table access URL - */ - private String url; - /** - * Number of rows - */ - private int rowNum; - /** - * Number of columns - */ - private int colNum; - /** - * Column name - */ - private ArrayList cols; - /** - * Records- - * , , , - */ - ArrayList records = new ArrayList(); - - public String getId() { - return id; - } - public void setId(String id) { - this.id = id; - } - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - public String getUrl() { - return url; - } - public String getDescription() { - return description; - } - public void setDescription(String description) { - this.description = description; - } - public void setUrl(String url) { - this.url = url; - } - public int getRowNum() { - return rowNum; - } - public void setRowNum(int rowNum) { - this.rowNum = rowNum; - } - public int getColNum() { - return colNum; - } - public void setColNum(int colNum) { - this.colNum = colNum; - } - public ArrayList getCols() { - return cols; - } - public void setCols(ArrayList cols) { - this.cols = cols; - if(cols != null) - setColNum(cols.size()); - else - setColNum(0); - } - public ArrayList getRecords() { - return records; - } - public void addRecord(Record data){ - records.add(data); - } - public void clearData(){ - records.clear(); - } - public void setRecords(ArrayList records) { - this.records = records; - } -}