Skip to content

Commit 9d581d7

Browse files
author
Pavel-Teplitsky
committed
updated sdk
1 parent 38fecea commit 9d581d7

File tree

440 files changed

+9904
-24105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

440 files changed

+9904
-24105
lines changed

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<groupId>com.groupdocs</groupId>
99
<artifactId>groupdocs-java-client</artifactId>
1010
<packaging>jar</packaging>
11-
<version>1.7.3-SNAPSHOT</version>
11+
<version>1.7.2</version>
1212

1313
<name>GroupDocsJava</name>
1414
<description>GroupDocs API library for Java</description>

‎src/main/java/com/groupdocs/sdk/api/MergeApi.java‎

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,12 @@ public GetQuestionnaireResponse GetQuestionnaire (String userId, String question
316316
}
317317
}
318318
}
319-
publicGetQuestionnairesResponseGetQuestionnaires (StringuserId, Stringstatus, IntegerpageNumber, IntegerpageSize) throwsApiException{
319+
publicGetQuestionnairesResponseGetQuestionnaires (StringuserId, Stringstatus, IntegerpageNumber, IntegerpageSize, StringorderBy, BooleanisAscending) throwsApiException{
320320
// verify required params are set
321321
if(userId == null ){
322322
thrownewApiException(400, "missing required params");
323323
}
324-
StringresourcePath = "/merge/{userId}/questionnaires?status={status}&page_number={pageNumber}&page_size={pageSize}".replace("*", "");
324+
StringresourcePath = "/merge/{userId}/questionnaires?status={status}&page_number={pageNumber}&page_size={pageSize}&orderBy={orderBy}&isAscending={isAscending}".replace("*", "");
325325
intpos = resourcePath.indexOf("?");
326326
if(pos > -1){
327327
resourcePath = resourcePath.substring(0, pos);
@@ -339,6 +339,10 @@ public GetQuestionnairesResponse GetQuestionnaires (String userId, String status
339339
queryParams.put("page_number", String.valueOf(pageNumber));
340340
if(!"null".equals(String.valueOf(pageSize)))
341341
queryParams.put("page_size", String.valueOf(pageSize));
342+
if(!"null".equals(String.valueOf(orderBy)))
343+
queryParams.put("orderBy", String.valueOf(orderBy));
344+
if(!"null".equals(String.valueOf(isAscending)))
345+
queryParams.put("isAscending", String.valueOf(isAscending));
342346
try{
343347
Stringresponse = apiInvoker.invokeAPI(basePath, resourcePath, "GET", queryParams, null, headerParams, String.class);
344348
if(response != null){
@@ -968,19 +972,27 @@ public UpdateQuestionnaireExecutionResponse UpdateQuestionnaireExecutionStatus (
968972
}
969973
}
970974
}
971-
publicGetQuestionnaireCollectorsResponseGetQuestionnaireCollectors (StringuserId, StringquestionnaireId) throwsApiException{
975+
publicGetQuestionnaireCollectorsResponseGetQuestionnaireCollectors (StringuserId, StringquestionnaireId, StringorderBy, BooleanisAsc) throwsApiException{
972976
// verify required params are set
973-
if(userId == null || questionnaireId == null ){
977+
if(userId == null || questionnaireId == null|| orderBy == null || isAsc == null){
974978
thrownewApiException(400, "missing required params");
975979
}
976-
StringresourcePath = "/merge/{userId}/questionnaires/{questionnaireId}/collectors".replace("*", "");
980+
StringresourcePath = "/merge/{userId}/questionnaires/{questionnaireId}/collectors?orderBy={orderBy}&isAsc={isAsc}".replace("*", "");
981+
intpos = resourcePath.indexOf("?");
982+
if(pos > -1){
983+
resourcePath = resourcePath.substring(0, pos);
984+
}
977985
// create path and map variables
978986
resourcePath = resourcePath.replace("{format}","json").replace("{" + "userId" + "}", String.valueOf(userId)).replace("{" + "questionnaireId" + "}", String.valueOf(questionnaireId));
979987

980988
// query params
981989
Map<String, String> queryParams = newHashMap<String, String>();
982990
Map<String, String> headerParams = newHashMap<String, String>();
983991

992+
if(!"null".equals(String.valueOf(orderBy)))
993+
queryParams.put("orderBy", String.valueOf(orderBy));
994+
if(!"null".equals(String.valueOf(isAsc)))
995+
queryParams.put("isAsc", String.valueOf(isAsc));
984996
try{
985997
Stringresponse = apiInvoker.invokeAPI(basePath, resourcePath, "GET", queryParams, null, headerParams, String.class);
986998
if(response != null){
@@ -1244,5 +1256,43 @@ public UpdateQuestionnaireResponse UpdateQuestionnaireMetadata (String userId, S
12441256
}
12451257
}
12461258
}
1259+
publicGetTemplatesResponseCopyFileToTemplates (StringuserId, Stringpath, Stringmode, StringGroupdocs_Copy, StringGroupdocs_Move) throwsApiException{
1260+
// verify required params are set
1261+
if(userId == null || path == null ){
1262+
thrownewApiException(400, "missing required params");
1263+
}
1264+
StringresourcePath = "/merge/{userId}/files/{*path}".replace("*", "");
1265+
intpos = resourcePath.indexOf("?");
1266+
if(pos > -1){
1267+
resourcePath = resourcePath.substring(0, pos);
1268+
}
1269+
// create path and map variables
1270+
resourcePath = resourcePath.replace("{format}","json").replace("{" + "userId" + "}", String.valueOf(userId)).replace("{" + "path" + "}", String.valueOf(path));
1271+
1272+
// query params
1273+
Map<String, String> queryParams = newHashMap<String, String>();
1274+
Map<String, String> headerParams = newHashMap<String, String>();
1275+
1276+
if(!"null".equals(String.valueOf(mode)))
1277+
queryParams.put("mode", String.valueOf(mode));
1278+
headerParams.put("Groupdocs-Copy", Groupdocs_Copy);
1279+
headerParams.put("Groupdocs-Move", Groupdocs_Move);
1280+
try{
1281+
Stringresponse = apiInvoker.invokeAPI(basePath, resourcePath, "PUT", queryParams, null, headerParams, String.class);
1282+
if(response != null){
1283+
return (GetTemplatesResponse) ApiInvoker.deserialize(response, "", GetTemplatesResponse.class);
1284+
}
1285+
else{
1286+
returnnull;
1287+
}
1288+
} catch (ApiExceptionex){
1289+
if(ex.getCode() == 404){
1290+
returnnull;
1291+
}
1292+
else{
1293+
throwex;
1294+
}
1295+
}
1296+
}
12471297
}
12481298

‎src/main/java/com/groupdocs/sdk/api/SignatureApi.java‎

Lines changed: 108 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
importcom.groupdocs.sdk.model.SignatureTemplateFieldsResponse;
4343
importcom.groupdocs.sdk.model.SignatureEnvelopeFieldSettingsInfo;
4444
importcom.groupdocs.sdk.model.SignatureEnvelopeFieldResponse;
45+
importcom.groupdocs.sdk.model.SignatureDocumentFieldsResponse;
4546
importcom.groupdocs.sdk.model.SignatureContactsResponse;
4647
importcom.groupdocs.sdk.model.SignatureFormsResponse;
4748
importcom.groupdocs.sdk.model.SignatureTemplateDocumentResponse;
@@ -98,6 +99,46 @@ public String getBasePath(){
9899
returnbasePath;
99100
}
100101

102+
publicSignatureTemplateRecipientResponseAddSignatureTemplateRecipient (StringuserId, StringtemplateGuid, Stringnickname, StringroleGuid, Integerorder) throwsApiException{
103+
// verify required params are set
104+
if(userId == null || templateGuid == null || nickname == null || roleGuid == null ){
105+
thrownewApiException(400, "missing required params");
106+
}
107+
StringresourcePath = "/signature/{userId}/templates/{templateGuid}/recipient?nickname={nickname}&role={roleGuid}&order={order}".replace("*", "");
108+
intpos = resourcePath.indexOf("?");
109+
if(pos > -1){
110+
resourcePath = resourcePath.substring(0, pos);
111+
}
112+
// create path and map variables
113+
resourcePath = resourcePath.replace("{format}","json").replace("{" + "userId" + "}", String.valueOf(userId)).replace("{" + "templateGuid" + "}", String.valueOf(templateGuid));
114+
115+
// query params
116+
Map<String, String> queryParams = newHashMap<String, String>();
117+
Map<String, String> headerParams = newHashMap<String, String>();
118+
119+
if(!"null".equals(String.valueOf(nickname)))
120+
queryParams.put("nickname", String.valueOf(nickname));
121+
if(!"null".equals(String.valueOf(roleGuid)))
122+
queryParams.put("role", String.valueOf(roleGuid));
123+
if(!"null".equals(String.valueOf(order)))
124+
queryParams.put("order", String.valueOf(order));
125+
try{
126+
Stringresponse = apiInvoker.invokeAPI(basePath, resourcePath, "POST", queryParams, null, headerParams, String.class);
127+
if(response != null){
128+
return (SignatureTemplateRecipientResponse) ApiInvoker.deserialize(response, "", SignatureTemplateRecipientResponse.class);
129+
}
130+
else{
131+
returnnull;
132+
}
133+
} catch (ApiExceptionex){
134+
if(ex.getCode() == 404){
135+
returnnull;
136+
}
137+
else{
138+
throwex;
139+
}
140+
}
141+
}
101142
publicSignatureTemplateRecipientsResponseGetSignatureTemplateRecipients (StringuserId, StringtemplateGuid) throwsApiException{
102143
// verify required params are set
103144
if(userId == null || templateGuid == null ){
@@ -580,12 +621,12 @@ public SignatureTemplateDocumentResponse RenameSignatureTemplateDocument (String
580621
}
581622
}
582623
}
583-
publicSignatureContactsResponseGetContacts (StringuserId, Integerpage, Integerrecords, StringfirstName, StringlastName, Stringemail) throwsApiException{
624+
publicSignatureContactsResponseGetContacts (StringuserId, Integerpage, Integerrecords, StringfirstName, StringlastName, Stringemail, BooleanuseAnd) throwsApiException{
584625
// verify required params are set
585626
if(userId == null ){
586627
thrownewApiException(400, "missing required params");
587628
}
588-
StringresourcePath = "/signature/{userId}/contacts?firstName={firstName}&lastName={lastName}&email={email}&records={records}&page={page}".replace("*", "");
629+
StringresourcePath = "/signature/{userId}/contacts?firstName={firstName}&lastName={lastName}&email={email}&records={records}&page={page}&useAnd={useAnd}".replace("*", "");
589630
intpos = resourcePath.indexOf("?");
590631
if(pos > -1){
591632
resourcePath = resourcePath.substring(0, pos);
@@ -607,6 +648,8 @@ public SignatureContactsResponse GetContacts (String userId, Integer page, Integ
607648
queryParams.put("lastName", String.valueOf(lastName));
608649
if(!"null".equals(String.valueOf(email)))
609650
queryParams.put("email", String.valueOf(email));
651+
if(!"null".equals(String.valueOf(useAnd)))
652+
queryParams.put("useAnd", String.valueOf(useAnd));
610653
try{
611654
Stringresponse = apiInvoker.invokeAPI(basePath, resourcePath, "GET", queryParams, null, headerParams, String.class);
612655
if(response != null){
@@ -1992,6 +2035,36 @@ public SignatureStatusResponse RetrySignEnvelope (String userId, String envelope
19922035
}
19932036
}
19942037
}
2038+
publicSignatureEnvelopeResponseUpdateEnvelopeFromTemplate (StringuserId, StringenvelopeGuid, StringtemplateGuid) throwsApiException{
2039+
// verify required params are set
2040+
if(userId == null || envelopeGuid == null || templateGuid == null ){
2041+
thrownewApiException(400, "missing required params");
2042+
}
2043+
StringresourcePath = "/signature/{userId}/envelopes/{envelopeGuid}/templates/{templateGuid}".replace("*", "");
2044+
// create path and map variables
2045+
resourcePath = resourcePath.replace("{format}","json").replace("{" + "userId" + "}", String.valueOf(userId)).replace("{" + "envelopeGuid" + "}", String.valueOf(envelopeGuid)).replace("{" + "templateGuid" + "}", String.valueOf(templateGuid));
2046+
2047+
// query params
2048+
Map<String, String> queryParams = newHashMap<String, String>();
2049+
Map<String, String> headerParams = newHashMap<String, String>();
2050+
2051+
try{
2052+
Stringresponse = apiInvoker.invokeAPI(basePath, resourcePath, "POST", queryParams, null, headerParams, String.class);
2053+
if(response != null){
2054+
return (SignatureEnvelopeResponse) ApiInvoker.deserialize(response, "", SignatureEnvelopeResponse.class);
2055+
}
2056+
else{
2057+
returnnull;
2058+
}
2059+
} catch (ApiExceptionex){
2060+
if(ex.getCode() == 404){
2061+
returnnull;
2062+
}
2063+
else{
2064+
throwex;
2065+
}
2066+
}
2067+
}
19952068
publicSignatureFieldsResponseGetFieldsList (StringuserId, StringfieldGuid) throwsApiException{
19962069
// verify required params are set
19972070
if(userId == null ){
@@ -2916,7 +2989,7 @@ public SignaturePredefinedListResponse AddPredefinedList (String userId, Signatu
29162989
}
29172990
}
29182991
}
2919-
publicSignaturePredefinedListResponseDeletePredefinedList (StringuserId, StringlistGuid) throwsApiException{
2992+
publicSignaturePredefinedListsResponseDeletePredefinedList (StringuserId, StringlistGuid) throwsApiException{
29202993
// verify required params are set
29212994
if(userId == null || listGuid == null ){
29222995
thrownewApiException(400, "missing required params");
@@ -2932,7 +3005,7 @@ public SignaturePredefinedListResponse DeletePredefinedList (String userId, Stri
29323005
try{
29333006
Stringresponse = apiInvoker.invokeAPI(basePath, resourcePath, "DELETE", queryParams, null, headerParams, String.class);
29343007
if(response != null){
2935-
return (SignaturePredefinedListResponse) ApiInvoker.deserialize(response, "", SignaturePredefinedListResponse.class);
3008+
return (SignaturePredefinedListsResponse) ApiInvoker.deserialize(response, "", SignaturePredefinedListsResponse.class);
29363009
}
29373010
else{
29383011
returnnull;
@@ -3164,7 +3237,7 @@ public SignatureTemplateResponse GetSignatureTemplate (String userId, String tem
31643237
}
31653238
publicSignatureTemplateResponseCreateSignatureTemplate (StringuserId, Stringname, StringtemplateGuid, StringenvelopeGuid, SignatureTemplateSettingsInfobody) throwsApiException{
31663239
// verify required params are set
3167-
if(userId == null ){
3240+
if(userId == null|| name == null){
31683241
thrownewApiException(400, "missing required params");
31693242
}
31703243
StringresourcePath = "/signature/{userId}/template?name={name}&templateId={templateGuid}&envelopeId={envelopeGuid}".replace("*", "");
@@ -3298,46 +3371,6 @@ public SignatureStatusResponse DeleteSignatureTemplate (String userId, String te
32983371
}
32993372
}
33003373
}
3301-
publicSignatureTemplateRecipientResponseAddSignatureTemplateRecipient (StringuserId, StringtemplateGuid, Stringnickname, StringroleGuid, Integerorder) throwsApiException{
3302-
// verify required params are set
3303-
if(userId == null || templateGuid == null || nickname == null || roleGuid == null ){
3304-
thrownewApiException(400, "missing required params");
3305-
}
3306-
StringresourcePath = "/signature/{userId}/templates/{templateGuid}/recipient?nickname={nickname}&role={roleGuid}&order={order}".replace("*", "");
3307-
intpos = resourcePath.indexOf("?");
3308-
if(pos > -1){
3309-
resourcePath = resourcePath.substring(0, pos);
3310-
}
3311-
// create path and map variables
3312-
resourcePath = resourcePath.replace("{format}","json").replace("{" + "userId" + "}", String.valueOf(userId)).replace("{" + "templateGuid" + "}", String.valueOf(templateGuid));
3313-
3314-
// query params
3315-
Map<String, String> queryParams = newHashMap<String, String>();
3316-
Map<String, String> headerParams = newHashMap<String, String>();
3317-
3318-
if(!"null".equals(String.valueOf(nickname)))
3319-
queryParams.put("nickname", String.valueOf(nickname));
3320-
if(!"null".equals(String.valueOf(roleGuid)))
3321-
queryParams.put("role", String.valueOf(roleGuid));
3322-
if(!"null".equals(String.valueOf(order)))
3323-
queryParams.put("order", String.valueOf(order));
3324-
try{
3325-
Stringresponse = apiInvoker.invokeAPI(basePath, resourcePath, "POST", queryParams, null, headerParams, String.class);
3326-
if(response != null){
3327-
return (SignatureTemplateRecipientResponse) ApiInvoker.deserialize(response, "", SignatureTemplateRecipientResponse.class);
3328-
}
3329-
else{
3330-
returnnull;
3331-
}
3332-
} catch (ApiExceptionex){
3333-
if(ex.getCode() == 404){
3334-
returnnull;
3335-
}
3336-
else{
3337-
throwex;
3338-
}
3339-
}
3340-
}
33413374
publicSignatureEnvelopeFieldResponsePublicFillEnvelopeField (StringenvelopeGuid, StringdocumentGuid, StringrecipientGuid, StringfieldGuid, Stringbody) throwsApiException{
33423375
// verify required params are set
33433376
if(envelopeGuid == null || documentGuid == null || recipientGuid == null || fieldGuid == null ){
@@ -3894,6 +3927,36 @@ public SignatureSignDocumentStatusResponse PublicGetSignDocumentStatus (String j
38943927
}
38953928
}
38963929
}
3930+
publicSignatureDocumentFieldsResponsePublicGetDocumentFields (StringdocumentGuid) throwsApiException{
3931+
// verify required params are set
3932+
if(documentGuid == null ){
3933+
thrownewApiException(400, "missing required params");
3934+
}
3935+
StringresourcePath = "/signature/public/documents/{documentGuid}/fields".replace("*", "");
3936+
// create path and map variables
3937+
resourcePath = resourcePath.replace("{format}","json").replace("{" + "documentGuid" + "}", String.valueOf(documentGuid));
3938+
3939+
// query params
3940+
Map<String, String> queryParams = newHashMap<String, String>();
3941+
Map<String, String> headerParams = newHashMap<String, String>();
3942+
3943+
try{
3944+
Stringresponse = apiInvoker.invokeAPI(basePath, resourcePath, "GET", queryParams, null, headerParams, String.class);
3945+
if(response != null){
3946+
return (SignatureDocumentFieldsResponse) ApiInvoker.deserialize(response, "", SignatureDocumentFieldsResponse.class);
3947+
}
3948+
else{
3949+
returnnull;
3950+
}
3951+
} catch (ApiExceptionex){
3952+
if(ex.getCode() == 404){
3953+
returnnull;
3954+
}
3955+
else{
3956+
throwex;
3957+
}
3958+
}
3959+
}
38973960
publicFileStreamGetSignatureEnvelopeFieldData (StringenvelopeGuid, StringrecipientGuid, StringfieldGuid) throwsApiException{
38983961
// verify required params are set
38993962
if(envelopeGuid == null || recipientGuid == null || fieldGuid == null ){

‎src/main/java/com/groupdocs/sdk/model/PublicSignatureSignDocumentSignerSettingsInfo.java‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*/
1616
packagecom.groupdocs.sdk.model;
1717

18+
importjava.util.*;
19+
importcom.groupdocs.sdk.model.SignatureDocumentFieldInfo;
1820
/**
1921
*
2022
* <p>
@@ -31,6 +33,7 @@ public class PublicSignatureSignDocumentSignerSettingsInfo{
3133
privateDoubleheight = null;
3234
privateStringplaceSignatureOn = null;
3335
privateStringdata = null;
36+
privateList<SignatureDocumentFieldInfo> fields = newArrayList<SignatureDocumentFieldInfo>();
3437
publicStringgetWaterMarkText(){
3538
returnwaterMarkText;
3639
}
@@ -94,6 +97,13 @@ public void setData(String data){
9497
this.data = data;
9598
}
9699

100+
publicList<SignatureDocumentFieldInfo> getFields(){
101+
returnfields;
102+
}
103+
publicvoidsetFields(List<SignatureDocumentFieldInfo> fields){
104+
this.fields = fields;
105+
}
106+
97107
@Override
98108
publicStringtoString(){
99109
StringBuildersb = newStringBuilder();
@@ -107,6 +117,7 @@ public String toString(){
107117
sb.append(" height: ").append(height).append("\n");
108118
sb.append(" placeSignatureOn: ").append(placeSignatureOn).append("\n");
109119
sb.append(" data: ").append(data).append("\n");
120+
sb.append(" fields: ").append(fields).append("\n");
110121
sb.append("}\n");
111122
returnsb.toString();
112123
}

0 commit comments

Comments
(0)