public class Sdk extends Object
| Constructor and Description |
|---|
Sdk(String orchestratorServer,
String token)
Constructor of SpreadSheetSpace Sdk.
|
Sdk(String orchestratorServer,
String username,
String password)
Constructor of SpreadSheetSpace Sdk.
|
| Modifier and Type | Method and Description |
|---|---|
ChangeRecipientDescriptor |
addRecipients(String id,
String view_server,
LinkedList<String> listRecipient)
Add recipient(s) to existing view.
|
void |
contextDestroyed()
This method destroy Sdk notification thread.
|
ViewDescriptor |
createPrivateCoedit(String description,
Set<String> recipients,
String[][] table,
String excelTemplate,
boolean isTable,
boolean hasHeaders,
Integer rows,
Integer cols,
boolean encrypt,
boolean tagged)
Create a SpreadSheetSpace Coedit and send it to a specific set of recipients.
|
ViewDescriptor |
createPrivateCoedit(String description,
Set<String> recipients,
String[][] table,
String excelTemplate,
boolean isTable,
boolean hasHeaders,
Integer rows,
Integer cols,
boolean encrypt,
boolean tagged,
Timestamp ts)
Create a SpreadSheetSpace Coedit and send it to a specific set of recipients.
|
ViewDescriptor |
createPrivateForm(String description,
String recipient,
String[][] table,
String excelTemplate,
boolean isTable,
boolean hasHeaders,
Integer rows,
Integer cols,
boolean encrypt,
boolean tagged)
Create a SpreadSheetSpace Form and send it to a specific recipient.
|
ViewDescriptor |
createPrivateForm(String description,
String recipient,
String[][] table,
String excelTemplate,
boolean isTable,
boolean hasHeaders,
Integer rows,
Integer cols,
boolean encrypt,
boolean tagged,
Timestamp ts)
Create a SpreadSheetSpace Form and send it to a specific recipient.
|
ViewDescriptor |
createPrivateView(String description,
Set<String> recipients,
String[][] table,
String excelTemplate,
boolean isTable,
boolean hasHeaders,
Integer rows,
Integer cols,
boolean encrypt,
boolean tagged)
Create a SpreadSheetSpace View and send it to a specific set of recipients.
|
ViewDescriptor |
createPrivateView(String description,
Set<String> recipients,
String[][] table,
String excelTemplate,
boolean isTable,
boolean hasHeaders,
Integer rows,
Integer cols,
boolean encrypt,
boolean tagged,
Timestamp ts)
Create a SpreadSheetSpace View and send it to a specific set of recipients.
|
ViewDescriptor |
createPublicView(String description,
String[][] table,
String excelTemplate,
boolean isTable,
boolean hasHeaders,
Integer rows,
Integer cols,
boolean tagged)
Create a SpreadSheetSpace View on the T-Space.
|
ViewDescriptor |
createPublicView(String description,
String[][] table,
String excelTemplate,
boolean isTable,
boolean hasHeaders,
Integer rows,
Integer cols,
boolean tagged,
Timestamp ts)
Create a SpreadSheetSpace View on the T-Space.
|
ViewDescriptor |
deleteView(String viewId,
String viewServer)
Delete an owned view on SpreadSheetSpace.
|
ViewDescriptor |
deleteViews(List<ViewObj> listView)
Delete owned views on SpreadSheetSpace.
|
GenerateKeyDescriptor |
generateKey()
Generate your personal public and private keys.
|
AddressBookDescriptor |
getAddressBook()
Retrieve my addressbook list.
|
ListViewDescriptor |
getInboxView()
Retrieve my inbox views list.
|
ListViewDescriptor |
getOwnedView()
Retrieve my owned views list.
|
ValuesViewDescriptor |
getValuesView(String view_id,
String view_server,
String private_key,
String excelTemplate)
Retrieve values from view.
|
protected ViewServer |
getViewServer() |
ViewDescriptor |
publishPublicView(String id,
String view_server,
String comment)
Publish on T-Space of an existing Public View.
|
ChangeRecipientDescriptor |
removeRecipients(String id,
String view_server,
LinkedList<String> listRecipient)
Remove recipient(s) to existing view.
|
void |
subscribeNotificationView(String id,
String viewServer,
NotificationCallback notificationCallback)
Subscription to perform a callback function when you receive an update notification of a specific view.
|
void |
subscribeNotificationView(UserView userView,
NotificationCallback notificationCallback)
Subscription to perform a callback function when you receive an update notification of a specific view.
|
void |
subscribeNotificationView(ViewDescriptor viewDescriptor,
NotificationCallback notificationCallback)
Subscription to perform a callback function when you receive an update notification of a specific view.
|
void |
unsubscribeNotificationView(String viewId,
String viewServer)
Deletes a subscription previously created to receive an update of a specific view.
|
void |
unsubscribeNotificationView(UserView userView)
Deletes a subscription previously created to receive an update of a specific view.
|
void |
unsubscribeNotificationView(ViewDescriptor viewDescriptor)
Deletes a subscription previously created to receive an update of a specific view.
|
ViewDescriptor |
updateView(ViewDescriptor viewDescriptor,
String[][] table,
String excelTemplate,
boolean encrypt,
boolean tagged)
Update the data and the template of an existing SpreadSheetSpace View.
|
ViewDescriptor |
updateView(ViewDescriptor viewDescriptor,
String[][] table,
String excelTemplate,
boolean encrypt,
boolean tagged,
boolean forceLock)
Update the data and the template of an existing SpreadSheetSpace View.
|
ViewDescriptor |
updateView(ViewDescriptor viewDescriptor,
String[][] table,
String excelTemplate,
boolean encrypt,
boolean tagged,
Timestamp ts)
Update the data and the template of an existing SpreadSheetSpace View.
|
ViewDescriptor |
updateView(ViewDescriptor viewDescriptor,
String[][] table,
String excelTemplate,
boolean encrypt,
boolean tagged,
Timestamp ts,
boolean forceLock)
Update the data and the template of an existing SpreadSheetSpace View.
|
public Sdk(String orchestratorServer, String username, String password) throws Exception
orchestratorServer - Server address of SpreadSheetSpace infrastructure (e.g. "https://www.spreadsheetspace.net")username - The username that will be used to authenticate on the SpreadSheetSpace server.password - The password that will be used to authenticate on the SpreadSheetSpace server.Exceptionpublic Sdk(String orchestratorServer, String token) throws Exception
orchestratorServer - Server address of SpreadSheetSpace infrastructure (e.g. "https://www.spreadsheetspace.net")token - The token that will be used to authenticate the user on the SpreadSheetSpace server.Exceptionpublic void contextDestroyed()
protected ViewServer getViewServer()
public ViewDescriptor publishPublicView(String id, String view_server, String comment)
id - This string represents the View identifier.view_server - This string represents the server address where the View is stored.comment - This string represents a detailed description of the View. This description is shows as a comment on T-Space.public ViewDescriptor createPublicView(String description, String[][] table, String excelTemplate, boolean isTable, boolean hasHeaders, Integer rows, Integer cols, boolean tagged, Timestamp ts) throws FileNotFoundException, IOException
description - The description of the View.table - A matrix that represents the values of the View cells.excelTemplate - The path to the Excel file that will be used as a template. Set it "null" if you want to create a View without template.isTable - Set it "true" if you want to create a View with Excel table.hasHeaders - If "isTable" is "true" set it true if the first line of your data rappresent the header of your Excel table.rows - rows represent the number of rows of your View. If rows equals "-1" and cols equals "-1" the View is full-sheet.cols - cols represent the number of columns of your View. If rows equals "-1" and cols equals "-1" the View is full-sheet.tagged - set it "true" if you want to create a history version of your View.ts - set it if you want to set a specific timestamp to your View.FileNotFoundExceptionIOExceptionpublic ViewDescriptor createPublicView(String description, String[][] table, String excelTemplate, boolean isTable, boolean hasHeaders, Integer rows, Integer cols, boolean tagged) throws FileNotFoundException, IOException
description - The description of the View.table - A matrix that represents the values of the View cells.excelTemplate - The path to the Excel file that will be used as a template. Set it "null" if you want to create a View without template.isTable - Set it "true" if you want to create a View with Excel table.hasHeaders - If "isTable" is "true" set it true if the first line of your data rappresent the header of your Excel table.rows - rows represent the number of rows of your View. If rows equals "-1" and cols equals "-1" the View is full-sheet.cols - cols represent the number of columns of your View. If rows equals "-1" and cols equals "-1" the View is full-sheet.tagged - set it "true" if you want to create a history version of your View.FileNotFoundExceptionIOExceptionpublic ViewDescriptor createPrivateView(String description, Set<String> recipients, String[][] table, String excelTemplate, boolean isTable, boolean hasHeaders, Integer rows, Integer cols, boolean encrypt, boolean tagged, Timestamp ts) throws IOException
description - The description of the View.recipients - A list of mail addresses that represent the recipients of the View.table - A matrix that represents the values of the View cells.excelTemplate - The path to the Excel file that will be used as a template. Set it "null" if you want to create a View without template.isTable - Set it "true" if you want to create a View with Excel table.hasHeaders - If "isTable" is "true" set it true if the first line of your data rappresent the header of your Excel table.rows - rows represent the number of rows of your View.cols - cols represent the number of columns of your View.encrypt - set it "true" if you want to encrypt your View.tagged - set it "true" if you want to create a history version of your View.ts - set it if you want to set a specific timestamp to your View.FileNotFoundExceptionIOExceptionpublic ViewDescriptor createPrivateView(String description, Set<String> recipients, String[][] table, String excelTemplate, boolean isTable, boolean hasHeaders, Integer rows, Integer cols, boolean encrypt, boolean tagged) throws IOException
description - The description of the View.recipients - A list of mail addresses that represent the recipients of the View.table - A matrix that represents the values of the View cells.excelTemplate - The path to the Excel file that will be used as a template. Set it "null" if you want to create a View without template.isTable - Set it "true" if you want to create a View with Excel table.hasHeaders - If "isTable" is "true" set it true if the first line of your data rappresent the header of your Excel table.rows - rows represent the number of rows of your View.cols - cols represent the number of columns of your View.encrypt - set it "true" if you want to encrypt your View.tagged - set it "true" if you want to create a history version of your View.FileNotFoundExceptionIOExceptionpublic ViewDescriptor createPrivateForm(String description, String recipient, String[][] table, String excelTemplate, boolean isTable, boolean hasHeaders, Integer rows, Integer cols, boolean encrypt, boolean tagged, Timestamp ts) throws IOException
description - The description of the Form.recipient - A mail addresses that represent the recipient of the Form.table - A matrix that represents the values of the Form cells.excelTemplate - The path to the Excel file that will be used as a template. Set it "null" if you want to create a Form without template.isTable - Set it "true" if you want to create a Form with Excel table.hasHeaders - If "isTable" is "true" set it true if the first line of your data rappresent the header of your Excel table.rows - rows represent the number of rows of your Form.cols - cols represent the number of columns of your Form.encrypt - set it "true" if you want to encrypt this elementtagged - set it "true" if you want to create a history version of your View.ts - set it if you want to set a specific timestamp to your View.FileNotFoundExceptionIOExceptionpublic ViewDescriptor createPrivateForm(String description, String recipient, String[][] table, String excelTemplate, boolean isTable, boolean hasHeaders, Integer rows, Integer cols, boolean encrypt, boolean tagged) throws IOException
description - The description of the Form.recipient - A mail addresses that represent the recipient of the Form.table - A matrix that represents the values of the Form cells.excelTemplate - The path to the Excel file that will be used as a template. Set it "null" if you want to create a Form without template.isTable - Set it "true" if you want to create a Form with Excel table.hasHeaders - If "isTable" is "true" set it true if the first line of your data rappresent the header of your Excel table.rows - rows represent the number of rows of your Form.cols - cols represent the number of columns of your Form.encrypt - set it "true" if you want to encrypt this elementtagged - set it "true" if you want to create a history version of your View.FileNotFoundExceptionIOExceptionpublic ViewDescriptor createPrivateCoedit(String description, Set<String> recipients, String[][] table, String excelTemplate, boolean isTable, boolean hasHeaders, Integer rows, Integer cols, boolean encrypt, boolean tagged) throws IOException
description - The description of the View.recipients - A list of mail addresses that represent the recipients of the Coedit.table - A matrix that represents the values of the View cells.excelTemplate - The path to the Excel file that will be used as a template. Set it "null" if you want to create a Coedit without template.isTable - Set it "true" if you want to create a View with Excel table.hasHeaders - If "isTable" is "true" set it true if the first line of your data rappresent the header of your Excel table.rows - rows represent the number of rows of your Coedit.cols - cols represent the number of columns of your Coedit.encrypt - set it "true" if you want to encrypt your Coedit.tagged - set it "true" if you want to create a history version of your Coedit.FileNotFoundExceptionIOExceptionpublic ViewDescriptor createPrivateCoedit(String description, Set<String> recipients, String[][] table, String excelTemplate, boolean isTable, boolean hasHeaders, Integer rows, Integer cols, boolean encrypt, boolean tagged, Timestamp ts) throws IOException
description - The description of the View.recipients - A list of mail addresses that represent the recipients of the Coedit.table - A matrix that represents the values of the View cells.excelTemplate - The path to the Excel file that will be used as a template. Set it "null" if you want to create a Coedit without template.isTable - Set it "true" if you want to create a View with Excel table.hasHeaders - If "isTable" is "true" set it true if the first line of your data rappresent the header of your Excel table.rows - rows represent the number of rows of your Coedit.cols - cols represent the number of columns of your Coedit.encrypt - set it "true" if you want to encrypt your Coedit.tagged - set it "true" if you want to create a history version of your Coedit.ts - set it if you want to set a specific timestamp to your View.FileNotFoundExceptionIOExceptionpublic ViewDescriptor updateView(ViewDescriptor viewDescriptor, String[][] table, String excelTemplate, boolean encrypt, boolean tagged, Timestamp ts)
viewDescriptor - A descriptor of the View that that you want to update. See the documentation of "ViewDescriptor" for more details.table - A matrix that represents the values of the View cells.excelTemplate - The path to the Excel file that will be used as a template. Set it "null" if you don't want to update the View template.encrypt - set it "true" if you want to encrypt your View.tagged - set it "true" if you want to create a history version of your View.ts - set it if you want to set a specific timestamp to your View.public ViewDescriptor updateView(ViewDescriptor viewDescriptor, String[][] table, String excelTemplate, boolean encrypt, boolean tagged)
viewDescriptor - A descriptor of the View that that you want to update. See the documentation of "ViewDescriptor" for more details.table - A matrix that represents the values of the View cells.excelTemplate - The path to the Excel file that will be used as a template. Set it "null" if you don't want to update the View template.encrypt - set it "true" if you want to encrypt your View.tagged - set it "true" if you want to create a history version of your View.public ViewDescriptor updateView(ViewDescriptor viewDescriptor, String[][] table, String excelTemplate, boolean encrypt, boolean tagged, Timestamp ts, boolean forceLock)
viewDescriptor - A descriptor of the View that that you want to update. See the documentation of "ViewDescriptor" for more details.table - A matrix that represents the values of the View cells.excelTemplate - The path to the Excel file that will be used as a template. Set it "null" if you don't want to update the View template.encrypt - set it "true" if you want to encrypt your View.tagged - set it "true" if you want to create a history version of your View.ts - set it if you want to set a specific timestamp to your View.forceLock - set it "true" id you want to force lock in your coeditpublic ViewDescriptor updateView(ViewDescriptor viewDescriptor, String[][] table, String excelTemplate, boolean encrypt, boolean tagged, boolean forceLock)
viewDescriptor - A descriptor of the View that that you want to update. See the documentation of "ViewDescriptor" for more details.table - A matrix that represents the values of the View cells.excelTemplate - The path to the Excel file that will be used as a template. Set it "null" if you don't want to update the View template.encrypt - set it "true" if you want to encrypt your View.tagged - set it "true" if you want to create a history version of your View.forceLock - set it "true" id you want to force lock in your coeditpublic ViewDescriptor deleteView(String viewId, String viewServer)
viewId - This string represents the View identifier.viewServer - This string represents the server address where the View is stored.public ViewDescriptor deleteViews(List<ViewObj> listView)
listView - This list represents a list of Views to delete.public AddressBookDescriptor getAddressBook()
public ListViewDescriptor getOwnedView()
public ListViewDescriptor getInboxView()
public GenerateKeyDescriptor generateKey()
public ValuesViewDescriptor getValuesView(String view_id, String view_server, String private_key, String excelTemplate)
view_id - This string represents the View identifier.view_server - This string represents the server address where the View is stored.private_key - This string represents your private key.excelTemplate - The path in where to store the View Excel template file. Set it "null" if you don't want to retrieve the View template.public ChangeRecipientDescriptor addRecipients(String id, String view_server, LinkedList<String> listRecipient)
id - This string represents the View identifier.view_server - This string represents the server address where the View is stored.listRecipient - Recipient mail list to added.public ChangeRecipientDescriptor removeRecipients(String id, String view_server, LinkedList<String> listRecipient)
id - This string represents the View identifier.view_server - This string represents the server address where the View is storedlistRecipient - Recipient mail list to remove.public void subscribeNotificationView(ViewDescriptor viewDescriptor, NotificationCallback notificationCallback)
viewDescriptor - This object represents a descriptor of an existing View. See the documentation of "ViewDescriptor" for more details.notificationCallback - This object represent a callback routinespublic void subscribeNotificationView(UserView userView, NotificationCallback notificationCallback)
userView - This object represents a descriptor of an existing View. See the documentation of "UserView" for more details.notificationCallback - public void subscribeNotificationView(String id, String viewServer, NotificationCallback notificationCallback)
id - This string represents the View identifier.viewServer - This string represents the server address where the View is storednotificationCallback - public void unsubscribeNotificationView(ViewDescriptor viewDescriptor)
viewDescriptor - This object represents a descriptor of an existing View. See the documentation of "ViewDescriptor" for more details.public void unsubscribeNotificationView(UserView userView)
userView - This object represents a descriptor of an existing View. See the documentation of "UserView" for more details.public void unsubscribeNotificationView(String viewId, String viewServer)
viewId - This string represents the View identifier.viewServer - This string represents the server address where the View is storedCopyright © 2023. All rights reserved.