jsegd-fluig-types 1.0.58 → 1.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsegd-fluig-types",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "description": "Definições de tipos TypeScript para desenvolvimento na plataforma Fluig - Inclui APIs, SDK, datasets, workflows e webservices",
5
5
  "keywords": [
6
6
  "fluig",
@@ -0,0 +1,490 @@
1
+ package ExemplosCardService;
2
+
3
+ import java.io.BufferedInputStream;
4
+ import java.io.ByteArrayOutputStream;
5
+ import java.io.File;
6
+ import java.io.FileInputStream;
7
+ import java.util.HashMap;
8
+ import java.util.List;
9
+
10
+ import javax.xml.datatype.DatatypeFactory;
11
+ import javax.xml.datatype.XMLGregorianCalendar;
12
+ import javax.xml.ws.BindingProvider;
13
+
14
+ import net.java.dev.jaxb.array.StringArray;
15
+
16
+ import com.datasul.technology.webdesk.dm.ws.ApproverDto;
17
+ import com.datasul.technology.webdesk.dm.ws.ApproverDtoArray;
18
+ import com.datasul.technology.webdesk.dm.ws.Attachment;
19
+ import com.datasul.technology.webdesk.dm.ws.AttachmentArray;
20
+ import com.datasul.technology.webdesk.dm.ws.CardDto;
21
+ import com.datasul.technology.webdesk.dm.ws.CardDtoArray;
22
+ import com.datasul.technology.webdesk.dm.ws.CardFieldDto;
23
+ import com.datasul.technology.webdesk.dm.ws.CardFieldDtoArray;
24
+ import com.datasul.technology.webdesk.dm.ws.CardService;
25
+ import com.datasul.technology.webdesk.dm.ws.CardServiceService;
26
+ import com.datasul.technology.webdesk.dm.ws.DocumentSecurityConfigDto;
27
+ import com.datasul.technology.webdesk.dm.ws.DocumentSecurityConfigDtoArray;
28
+ import com.datasul.technology.webdesk.dm.ws.RelatedDocumentDto;
29
+ import com.datasul.technology.webdesk.dm.ws.RelatedDocumentDtoArray;
30
+ import com.datasul.technology.webdesk.dm.ws.WebServiceMessageArray;
31
+
32
+ /**
33
+ * Classe que utiliza todos os métodos da CardService.
34
+ * Com essa classe, pode-se criar, alterar, excluir e pesquisar fichas, além de realizar outras atividades relacionadas a fichas.
35
+ * No método setParameters, pode-se setar algumas das variáveis que são mais utilizadas como parâmetros nos métodos desta classe.
36
+ * No método changeMethod, pode-se escolher qual método será executado.
37
+ */
38
+ public class CardServiceClient {
39
+
40
+ // Variáveis.
41
+ String loginColaborador, senhaColaborador, matriculaColaborador, matriculaAprovador, matriculaColaboradorSeguranca, publicadorFicha, descricaoFicha, arquivo, nomeArquivo;
42
+ int codigoEmpresa, numeroFicha, versaoFicha, numeroDocumentoPai, numeroDocumentoRelacionado;
43
+ byte[] arrayBytes = null;
44
+ HashMap<String, String> values = new HashMap<String, String>();
45
+
46
+ // Variáveis de data.
47
+ XMLGregorianCalendar expirationDate, validationStartDate;
48
+
49
+ // Dto's.
50
+ Attachment attachment = new Attachment();
51
+ DocumentSecurityConfigDto documentSecurityConfigDto = new DocumentSecurityConfigDto();
52
+ ApproverDto approverDto = new ApproverDto();
53
+ RelatedDocumentDto relatedDocumentDto = new RelatedDocumentDto();
54
+ CardDto cardDto = new CardDto();
55
+
56
+ // Array's
57
+ AttachmentArray attachmentArray = new AttachmentArray();
58
+ DocumentSecurityConfigDtoArray documentSecurityConfigDtoArray = new DocumentSecurityConfigDtoArray();
59
+ ApproverDtoArray approverDtoArray = new ApproverDtoArray();
60
+ RelatedDocumentDtoArray relatedDocumentDtoArray = new RelatedDocumentDtoArray();
61
+ WebServiceMessageArray webServiceMessageArray = new WebServiceMessageArray();
62
+ CardDtoArray cardDtoArray = new CardDtoArray();
63
+ CardFieldDtoArray cardFieldDtoArray = new CardFieldDtoArray();
64
+
65
+ // Instancia CardServiceService.
66
+ CardServiceService cardService = new CardServiceService();
67
+ CardService service = cardService.getCardServicePort();
68
+
69
+ // Inicia execução da classe.
70
+ public static void main (String args[]) {
71
+ System.out.println("\nClasse CardService");
72
+
73
+ // Instancia classe CardServiceClient.
74
+ CardServiceClient csc = new CardServiceClient();
75
+
76
+ // Configura acesso ao WebServices.
77
+ BindingProvider bp = (BindingProvider) csc.service;
78
+ bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://10.80.74.87:8080/webdesk/CardService");
79
+
80
+ try {
81
+ // Chama método que configura os valores das variáveis.
82
+ csc.setParameters();
83
+
84
+ // Chama método que é responsável por executar os métodos da classe.
85
+ csc.changeMethod();
86
+ } catch (Exception e) {
87
+ e.printStackTrace();
88
+ }
89
+ }
90
+
91
+ /**
92
+ * Configura parâmetros.
93
+ * Nesse método, pode-se setar algumas das variáveis que são mais utilizadas como parâmetros nos métodos desta classe.
94
+ */
95
+ public void setParameters() throws Exception {
96
+ this.loginColaborador = "adm";
97
+ this.senhaColaborador = "adm";
98
+ this.matriculaColaborador = "adm";
99
+ this.matriculaAprovador = "adm";
100
+ this.matriculaColaboradorSeguranca = "adm";
101
+ this.codigoEmpresa = 1;
102
+ this.numeroFicha = 44124;
103
+ this.versaoFicha = 1000;
104
+ this.descricaoFicha = "Ficha do ECM";
105
+ this.publicadorFicha = "adm";
106
+ this.numeroDocumentoRelacionado = 44056;
107
+ this.numeroDocumentoPai = 44052;
108
+ this.arquivo = "C:\\DOC.doc";
109
+ this.nomeArquivo = "DOC.doc";
110
+
111
+ // Cria data de expiração da ficha.
112
+ this.expirationDate = DatatypeFactory.newInstance().newXMLGregorianCalendar();
113
+ this.expirationDate.setYear(2010);
114
+ this.expirationDate.setMonth(04);
115
+ this.expirationDate.setDay(30);
116
+ this.expirationDate.setHour(0);
117
+ this.expirationDate.setMinute(0);
118
+ this.expirationDate.setSecond(0);
119
+
120
+ // Cria data de validação inicial da ficha.
121
+ this.validationStartDate = DatatypeFactory.newInstance().newXMLGregorianCalendar();
122
+ this.validationStartDate.setYear(2010);
123
+ this.validationStartDate.setMonth(04);
124
+ this.validationStartDate.setDay(27);
125
+ this.validationStartDate.setHour(0);
126
+ this.validationStartDate.setMinute(0);
127
+ this.validationStartDate.setSecond(0);
128
+ }
129
+
130
+ /**
131
+ * Escolhe método.
132
+ * Nesse método, pode-se escolher qual método da classe será executado.
133
+ */
134
+ public void changeMethod() throws Exception {
135
+ // Chama método updateCardData.
136
+ //this.updateCardData();
137
+
138
+ // Chama método create.
139
+ //this.create();
140
+
141
+ // Chama método deleteCard.
142
+ //this.deleteCard();
143
+
144
+ // Chama método updateCard.
145
+ //this.updateCard();
146
+
147
+ // Chama método getCardVersion.
148
+ //this.getCardVersion();
149
+
150
+ this.getCardIndexesWithoutApprover();
151
+ }
152
+
153
+ /**
154
+ * Retorna o arquivo que será anexado no documento.
155
+ */
156
+ public File getArchive() {
157
+ // Cria arquivo.
158
+ File file = new File(this.arquivo);
159
+
160
+ if(file.exists()){
161
+ try{
162
+ byte[] buffer = new byte[8192];
163
+ FileInputStream fis = new FileInputStream(file);
164
+ BufferedInputStream bis = new BufferedInputStream(fis, 8192);
165
+
166
+ ByteArrayOutputStream baos = new ByteArrayOutputStream((int) file.length());
167
+ int len = 0;
168
+ while ((len = bis.read(buffer, 0, buffer.length)) != -1) {
169
+ baos.write(buffer, 0, len);
170
+ }
171
+
172
+ this.arrayBytes = baos.toByteArray();
173
+ }catch(Exception e){
174
+ e.printStackTrace();
175
+ }
176
+ }else{
177
+ System.out.println("Arquivo " + this.arquivo + " não encontrado.");
178
+ return null;
179
+ }
180
+
181
+ return file;
182
+ }
183
+
184
+ /**
185
+ * Altera os campos de uma ficha.
186
+ *
187
+ * Método: updateCardData.
188
+ *
189
+ * Parâmetros:
190
+ * - Código da empresa;
191
+ * - Login do colaborador;
192
+ * - Senha do colaborador;
193
+ * - Número da ficha;
194
+ * - Array de campos da ficha.
195
+ */
196
+ public void updateCardData() throws Exception {
197
+ System.out.println("\nMétodo updateCardData\n");
198
+
199
+ // Verifica se ficha existe.
200
+ this.cardDtoArray = service.getCardVersion(this.codigoEmpresa, this.loginColaborador, this.senhaColaborador, this.numeroFicha, this.versaoFicha, this.matriculaColaborador);
201
+
202
+ // Se existe...
203
+ if (this.cardDtoArray != null) {
204
+
205
+ // Limpa campo da ficha.
206
+ this.cardDtoArray.getItem().get(0).getCardData().clear();
207
+
208
+ // Seta campos da ficha.
209
+ this.values.put("Titulo","Titulo");
210
+ this.values.put("Data","27/05/2011");
211
+ this.values.put("Escopo","Escopo");
212
+ this.values.put("Objetivo","Objetivo");
213
+ this.values.put("Responsavel","Responsavel");
214
+
215
+ // Array para armazenar campos da ficha.
216
+ StringArray campos = new StringArray();
217
+ campos.getItem().addAll(this.values.keySet());
218
+
219
+ // Array para armazenar valores da ficha.
220
+ StringArray valores = new StringArray();
221
+ valores.getItem().addAll(this.values.values());
222
+
223
+ for (int i = 0; i < this.values.size(); i++) {
224
+
225
+ CardFieldDto cardField = new CardFieldDto();
226
+ cardField.setField(campos.getItem().get(i));
227
+ cardField.setValue(valores.getItem().get(i));
228
+
229
+ // Armazena campos na ficha.
230
+ this.cardFieldDtoArray.getItem().add(i, cardField);
231
+ }
232
+
233
+ // Altera os campos de uma ficha.
234
+ this.webServiceMessageArray = service.updateCardData(this.codigoEmpresa, this.loginColaborador, this.senhaColaborador, this.numeroFicha, this.cardFieldDtoArray);
235
+
236
+ // Mostra resultado.
237
+ if (this.webServiceMessageArray.getItem().get(0).getWebServiceMessage().equals("ok")) {
238
+ System.out.println("Ficha " + this.webServiceMessageArray.getItem().get(0).getDocumentId() + " foi alterada!");
239
+ } else {
240
+ System.out.println(this.webServiceMessageArray.getItem().get(0).getWebServiceMessage());
241
+ }
242
+ } else {
243
+ System.out.println("Ficha " + this.numeroFicha + " com versão " + this.versaoFicha + " não foi encontrada!");
244
+ }
245
+ }
246
+
247
+ /**
248
+ * Cria uma ficha.
249
+ *
250
+ * Método: create.
251
+ *
252
+ * Parâmetros:
253
+ * - Código da empresa;
254
+ * - Login do colaborador;
255
+ * - Senha do colaborador;
256
+ * - Array de fichas.
257
+ */
258
+ public void create() throws Exception {
259
+ System.out.println("\nMétodo create\n");
260
+
261
+ // Cria ficha.
262
+ this.cardDto.setDocumentDescription(this.descricaoFicha);
263
+ this.cardDto.setAdditionalComments("Ficha criada por Webservices");
264
+ this.cardDto.setParentDocumentId(this.numeroDocumentoPai);
265
+ this.cardDto.setColleagueId(this.publicadorFicha);
266
+ this.cardDto.setValidationStartDate(this.validationStartDate);
267
+ this.cardDto.setExpires(false);
268
+ this.cardDto.setExpirationDate(this.expirationDate);
269
+ this.cardDto.setUserNotify(false);
270
+ this.cardDto.setInheritSecurity(true);
271
+ this.cardDto.setTopicId(1);
272
+ this.cardDto.setVersionDescription("");
273
+ this.cardDto.setDocumentKeyWord("");
274
+
275
+ // Cria anexo do documento.
276
+ this.attachment.setFileName(this.getArchive().getName());
277
+ this.attachment.setPrincipal(true);
278
+ this.attachment.setFilecontent(this.arrayBytes);
279
+
280
+ // Adiciona anexo na ficha.
281
+ this.cardDto.getAttachs().add(this.attachment);
282
+
283
+ // Recupera a seguranca da ficha.
284
+ List<DocumentSecurityConfigDto> ll = this.cardDto.getDocsecurity();
285
+ for (DocumentSecurityConfigDto dsc : ll) {
286
+ this.documentSecurityConfigDtoArray.getItem().add(dsc);
287
+ }
288
+
289
+ // Cria segurança da ficha.
290
+ this.documentSecurityConfigDto.setAttributionValue(this.matriculaColaboradorSeguranca);
291
+ this.documentSecurityConfigDto.setAttributionType(1); // 1 - Colaborador; 2 - Grupos; 3 - Todos.
292
+ this.documentSecurityConfigDto.setSecurityLevel(3); // 0 - Leitura; 1 - Gravação; 2 - Modificação; 3 - Total.
293
+ this.documentSecurityConfigDto.setPermission(true);
294
+ this.documentSecurityConfigDto.setSecurityVersion(false);
295
+ this.documentSecurityConfigDto.setShowContent(true);
296
+
297
+ // Adiciona segurança na ficha.
298
+ this.cardDto.getDocsecurity().add(this.documentSecurityConfigDto);
299
+
300
+ // Cria aprovador da ficha.
301
+ this.approverDto.setColleagueId(this.matriculaAprovador);
302
+ this.approverDto.setApproverType(0); // 0 - Colaborador; 1 - Grupo de usuários.
303
+ this.approverDto.setCompanyId(1);
304
+
305
+ // Adiciona aprovador na ficha.
306
+ this.cardDto.getDocapprovers().add(this.approverDto);
307
+
308
+ // Cria documento relacionado.
309
+ this.relatedDocumentDto.setRelatedDocumentId(this.numeroDocumentoRelacionado);
310
+ this.relatedDocumentDto.setCompanyId(1);
311
+
312
+ // Adiciona documento relacionado na ficha.
313
+ this.cardDto.getReldocs().add(this.relatedDocumentDto);
314
+
315
+ // Seta campos da ficha.
316
+ this.values.put("Titulo","Titulo 1");
317
+ this.values.put("Data","26/05/2011");
318
+ this.values.put("Escopo","Escopo 1");
319
+ this.values.put("Objetivo","Objetivo 1");
320
+ this.values.put("Responsavel","Responsavel 1");
321
+
322
+ // Array para armazenar campos da ficha.
323
+ StringArray campos = new StringArray();
324
+ campos.getItem().addAll(this.values.keySet());
325
+
326
+ // Array para armazenar valores da ficha.
327
+ StringArray valores = new StringArray();
328
+ valores.getItem().addAll(this.values.values());
329
+
330
+ for (int i = 0; i < this.values.size(); i++) {
331
+
332
+ CardFieldDto cardField = new CardFieldDto();
333
+ cardField.setField(campos.getItem().get(i));
334
+ cardField.setValue(valores.getItem().get(i));
335
+
336
+ // Armazena campos na ficha.
337
+ this.cardDto.getCardData().add(i, cardField);
338
+ }
339
+
340
+ // Adiciona ficha no array de fichas.
341
+ this.cardDtoArray.getItem().add(this.cardDto);
342
+
343
+ // Cria ficha.
344
+ this.webServiceMessageArray = service.create(this.codigoEmpresa, this.matriculaColaborador, this.senhaColaborador, this.cardDtoArray);
345
+
346
+ // Mostra resultado.
347
+ if (this.webServiceMessageArray.getItem().get(0).getWebServiceMessage().equals("ok")) {
348
+ System.out.println("Ficha " + this.webServiceMessageArray.getItem().get(0).getDocumentId() + " foi publicada!");
349
+ } else {
350
+ System.out.println(this.webServiceMessageArray.getItem().get(0).getWebServiceMessage());
351
+ }
352
+ }
353
+
354
+ /**
355
+ * Exclui uma ficha e envia para a lixeira.
356
+ *
357
+ * Método: deleteCard.
358
+ *
359
+ * Parâmetros:
360
+ * - Código da empresa;
361
+ * - Login do colaborador;
362
+ * - Senha do colaborador;
363
+ * - Número da ficha.
364
+ */
365
+ public void deleteCard() throws Exception {
366
+ System.out.println("\nMétodo deleteCard\n");
367
+
368
+ // Exclui uma ficha e envia para a lixeira.
369
+ this.webServiceMessageArray = service.deleteCard(this.codigoEmpresa, this.loginColaborador, this.senhaColaborador, this.numeroFicha);
370
+
371
+ // Mostra resultado.
372
+ if (this.webServiceMessageArray.getItem().get(0).getWebServiceMessage().equals("ok")) {
373
+ System.out.println("Ficha " + this.numeroFicha + " foi excluida!");
374
+ } else {
375
+ System.out.println(this.webServiceMessageArray.getItem().get(0).getWebServiceMessage());
376
+ }
377
+ }
378
+
379
+ /**
380
+ * Altera os metadados de uma ficha.
381
+ *
382
+ * Método: updateCard.
383
+ *
384
+ * Parâmetros:
385
+ * - Código da empresa;
386
+ * - Login do colaborador;
387
+ * - Senha do colaborador;
388
+ * - Array de fichas;
389
+ * - Array de anexos da ficha;
390
+ * - Array de segurança da ficha;
391
+ * - Array de aprovadores da ficha;
392
+ * - Array de documentos relacionados da ficha.
393
+ */
394
+ public void updateCard() throws Exception {
395
+ System.out.println("\nMétodo updateCard\n");
396
+
397
+ // Verifica se ficha existe.
398
+ this.cardDtoArray = service.getCardVersion(this.codigoEmpresa, this.loginColaborador, this.senhaColaborador, this.numeroFicha, this.versaoFicha, this.matriculaColaborador);
399
+
400
+ // Se existe...
401
+ if (this.cardDtoArray != null) {
402
+
403
+ // Altera ficha.
404
+ this.cardDtoArray.getItem().get(0).setDocumentDescription(this.descricaoFicha);
405
+
406
+ // Altera anexo da ficha.
407
+ this.attachment.setFileName(this.getArchive().getName());
408
+ this.attachment.setPrincipal(true);
409
+ this.attachment.setFilecontent(this.arrayBytes);
410
+
411
+ // Adiciona anexo no array de anexos.
412
+ this.attachmentArray.getItem().add(this.attachment);
413
+
414
+ // Recupera a seguranca da ficha.
415
+ List<DocumentSecurityConfigDto> ll = this.cardDto.getDocsecurity();
416
+ for (DocumentSecurityConfigDto dsc : ll) {
417
+ this.documentSecurityConfigDtoArray.getItem().add(dsc);
418
+ }
419
+
420
+ // Altera segurança da ficha.
421
+ this.documentSecurityConfigDto.setAttributionValue(this.matriculaColaboradorSeguranca);
422
+ this.documentSecurityConfigDto.setAttributionType(1); // 1 - Colaborador; 2 - Grupos; 3 - Todos.
423
+ this.documentSecurityConfigDto.setSecurityLevel(3); // 0 - Leitura; 1 - Gravação; 2 - Modificação; 3 - Total.
424
+ this.documentSecurityConfigDto.setPermission(true);
425
+ this.documentSecurityConfigDto.setSecurityVersion(false);
426
+ this.documentSecurityConfigDto.setShowContent(true);
427
+
428
+ // Adiciona segurança no array de segurança.
429
+ this.documentSecurityConfigDtoArray.getItem().add(this.documentSecurityConfigDto);
430
+
431
+ // Altera aprovador da ficha.
432
+ this.approverDto.setColleagueId(this.matriculaAprovador);
433
+ this.approverDto.setApproverType(0); // 0 - Colaborador; 1 - Grupo de usuários.
434
+ this.approverDto.setCompanyId(1);
435
+
436
+ // Adiciona aprovador no array de aprovadores.
437
+ this.approverDtoArray.getItem().add(this.approverDto);
438
+
439
+ // Altera documento relacionado.
440
+ this.relatedDocumentDto.setRelatedDocumentId(this.numeroDocumentoRelacionado);
441
+ this.relatedDocumentDto.setCompanyId(1);
442
+
443
+ // Adiciona documento no array de documentos relacionados.
444
+ this.relatedDocumentDtoArray.getItem().add(this.relatedDocumentDto);
445
+
446
+ // Altera os metadados de uma ficha.
447
+ this.webServiceMessageArray = service.updateCard(this.codigoEmpresa, this.loginColaborador, this.senhaColaborador, this.cardDtoArray, this.attachmentArray, this.documentSecurityConfigDtoArray, this.approverDtoArray, this.relatedDocumentDtoArray);
448
+
449
+ // Mostra resultado.
450
+ if (this.webServiceMessageArray.getItem().get(0).getWebServiceMessage().equals("ok")) {
451
+ System.out.println("Ficha " + this.webServiceMessageArray.getItem().get(0).getDocumentId() + " foi alterada!");
452
+ } else {
453
+ System.out.println(this.webServiceMessageArray.getItem().get(0).getWebServiceMessage());
454
+ }
455
+ } else {
456
+ System.out.println("Ficha " + this.numeroFicha + " com versão " + this.versaoFicha + " não foi encontrada!");
457
+ }
458
+ }
459
+
460
+ /**
461
+ * Retorna a versão de uma ficha.
462
+ *
463
+ * Método: getCardVersion.
464
+ *
465
+ * Parâmetros:
466
+ * - Código da empresa;
467
+ * - Login do colaborador;
468
+ * - Senha do colaborador;
469
+ * - Número da ficha;
470
+ * - Versão da ficha;
471
+ * - Matrícula do colaborador.
472
+ */
473
+ public void getCardVersion() throws Exception {
474
+ System.out.println("\nMétodo getCardVersion\n");
475
+
476
+ // Retorna a versão de uma ficha.
477
+ this.cardDtoArray = service.getCardVersion(this.codigoEmpresa, this.loginColaborador, this.senhaColaborador, this.numeroFicha, this.versaoFicha, this.matriculaColaborador);
478
+
479
+ // Mostra resultado.
480
+ if (this.cardDtoArray != null) {
481
+ System.out.println("Nome da ficha: " + cardDtoArray.getItem().get(0).getDocumentDescription());
482
+
483
+ for (CardFieldDto campo : this.cardDtoArray.getItem().get(0).getCardData()) {
484
+ System.out.println(" Valor do campo " + campo.getField() + ": " + campo.getValue());
485
+ }
486
+ } else {
487
+ System.out.println("Ficha " + this.numeroFicha + " com versão " + this.versaoFicha + " não foi encontrada!");
488
+ }
489
+ }
490
+ }
@@ -1400,6 +1400,258 @@ declare global {
1400
1400
  }
1401
1401
  }
1402
1402
  }
1403
+
1404
+ namespace com {
1405
+ namespace totvs {
1406
+ namespace technology {
1407
+ namespace ecm {
1408
+ namespace dm {
1409
+ namespace ws {
1410
+ // Localizador do serviço ECMCardService
1411
+ class ECMCardServiceService {
1412
+ constructor()
1413
+ getCardServicePort(): com.totvs.technology.ecm.dm.ws.CardService
1414
+ }
1415
+
1416
+ // Interface do port/endpoint do serviço
1417
+ interface CardService {
1418
+ create(
1419
+ companyId: number,
1420
+ username: string,
1421
+ password: string,
1422
+ card: com.totvs.technology.ecm.dm.ws.CardDtoArray
1423
+ ): com.totvs.technology.ecm.dm.ws.WebServiceMessageArray
1424
+ updateCardData(
1425
+ companyId: number,
1426
+ username: string,
1427
+ password: string,
1428
+ cardId: number,
1429
+ cardData: com.totvs.technology.ecm.dm.ws.CardFieldDtoArray
1430
+ ): com.totvs.technology.ecm.dm.ws.WebServiceMessageArray
1431
+ getCardVersion(
1432
+ companyId: number,
1433
+ username: string,
1434
+ password: string,
1435
+ documentId: number,
1436
+ version: number,
1437
+ colleagueId: string
1438
+ ): com.totvs.technology.ecm.dm.ws.CardDtoArray
1439
+ updateCard(
1440
+ companyId: number,
1441
+ username: string,
1442
+ password: string,
1443
+ card: com.totvs.technology.ecm.dm.ws.CardDtoArray,
1444
+ attachments: com.totvs.technology.ecm.dm.ws.AttachmentArray,
1445
+ security: com.totvs.technology.ecm.dm.ws.DocumentSecurityConfigDtoArray,
1446
+ approvers: com.totvs.technology.ecm.dm.ws.ApproverDtoArray,
1447
+ relatedDocuments: com.totvs.technology.ecm.dm.ws.RelatedDocumentDtoArray
1448
+ ): com.totvs.technology.ecm.dm.ws.WebServiceMessageArray
1449
+ deleteCard(
1450
+ companyId: number,
1451
+ username: string,
1452
+ password: string,
1453
+ cardId: number
1454
+ ): com.totvs.technology.ecm.dm.ws.WebServiceMessageArray
1455
+ }
1456
+
1457
+ // DTOs e tipos auxiliares
1458
+ class Attachment {
1459
+ constructor()
1460
+ getAttach(): boolean
1461
+ setAttach(value: boolean): void
1462
+ getDescriptor(): boolean
1463
+ setDescriptor(value: boolean): void
1464
+ getEditing(): boolean
1465
+ setEditing(value: boolean): void
1466
+ getFileName(): string
1467
+ setFileName(value: string): void
1468
+ getFileSelected(): com.totvs.technology.ecm.dm.ws.Attachment
1469
+ setFileSelected(value: com.totvs.technology.ecm.dm.ws.Attachment): void
1470
+ getFileSize(): number
1471
+ setFileSize(value: number): void
1472
+ getFilecontent(): unknown
1473
+ setFilecontent(value: unknown): void
1474
+ getFullPatch(): string
1475
+ setFullPatch(value: string): void
1476
+ getIconPath(): string
1477
+ setIconPath(value: string): void
1478
+ getMobile(): boolean
1479
+ setMobile(value: boolean): void
1480
+ getPathName(): string
1481
+ setPathName(value: string): void
1482
+ getPrincipal(): boolean
1483
+ setPrincipal(value: boolean): void
1484
+ getSupportedNewViewer(): boolean
1485
+ setSupportedNewViewer(value: boolean): void
1486
+ }
1487
+
1488
+ class AttachmentArray {
1489
+ constructor()
1490
+ getItem(): java.util.List<com.totvs.technology.ecm.dm.ws.Attachment>
1491
+ setItem(value: java.util.List<com.totvs.technology.ecm.dm.ws.Attachment>): void
1492
+ }
1493
+
1494
+ class CardFieldDto {
1495
+ constructor()
1496
+ getField(): string
1497
+ setField(value: string): void
1498
+ getValue(): string
1499
+ setValue(value: string): void
1500
+ }
1501
+
1502
+ class CardFieldDtoArray {
1503
+ constructor()
1504
+ getItem(): java.util.List<com.totvs.technology.ecm.dm.ws.CardFieldDto>
1505
+ setItem(value: java.util.List<com.totvs.technology.ecm.dm.ws.CardFieldDto>): void
1506
+ }
1507
+
1508
+ class ApproverDto {
1509
+ constructor()
1510
+ getApprovelMode(): number
1511
+ setApprovelMode(value: number): void
1512
+ getApproverType(): number
1513
+ setApproverType(value: number): void
1514
+ getColleagueId(): string
1515
+ setColleagueId(value: string): void
1516
+ getCompanyId(): number
1517
+ setCompanyId(value: number): void
1518
+ getDocumentId(): number
1519
+ setDocumentId(value: number): void
1520
+ getLevelDescription(): string
1521
+ setLevelDescription(value: string): void
1522
+ getLevelId(): number
1523
+ setLevelId(value: number): void
1524
+ getVersion(): number
1525
+ setVersion(value: number): void
1526
+ }
1527
+
1528
+ class ApproverDtoArray {
1529
+ constructor()
1530
+ getItem(): java.util.List<com.totvs.technology.ecm.dm.ws.ApproverDto>
1531
+ setItem(value: java.util.List<com.totvs.technology.ecm.dm.ws.ApproverDto>): void
1532
+ }
1533
+
1534
+ class DocumentSecurityConfigDto {
1535
+ constructor()
1536
+ getAttributionType(): number
1537
+ setAttributionType(value: number): void
1538
+ getAttributionValue(): string
1539
+ setAttributionValue(value: string): void
1540
+ getCompanyId(): number
1541
+ setCompanyId(value: number): void
1542
+ getDocumentId(): number
1543
+ setDocumentId(value: number): void
1544
+ getDownloadEnabled(): boolean
1545
+ setDownloadEnabled(value: boolean): void
1546
+ getInheritSecurity(): boolean
1547
+ setInheritSecurity(value: boolean): void
1548
+ getPermission(): boolean
1549
+ setPermission(value: boolean): void
1550
+ getSecurityLevel(): number
1551
+ setSecurityLevel(value: number): void
1552
+ getSecurityVersion(): boolean
1553
+ setSecurityVersion(value: boolean): void
1554
+ getSequence(): number
1555
+ setSequence(value: number): void
1556
+ getShowContent(): boolean
1557
+ setShowContent(value: boolean): void
1558
+ getVersion(): number
1559
+ setVersion(value: number): void
1560
+ }
1561
+
1562
+ class DocumentSecurityConfigDtoArray {
1563
+ constructor()
1564
+ getItem(): java.util.List<com.totvs.technology.ecm.dm.ws.DocumentSecurityConfigDto>
1565
+ setItem(value: java.util.List<com.totvs.technology.ecm.dm.ws.DocumentSecurityConfigDto>): void
1566
+ }
1567
+
1568
+ class RelatedDocumentDto {
1569
+ constructor()
1570
+ getCompanyId(): number
1571
+ setCompanyId(value: number): void
1572
+ getDocumentId(): number
1573
+ setDocumentId(value: number): void
1574
+ getRelatedDocumentId(): number
1575
+ setRelatedDocumentId(value: number): void
1576
+ getVersion(): number
1577
+ setVersion(value: number): void
1578
+ }
1579
+
1580
+ class RelatedDocumentDtoArray {
1581
+ constructor()
1582
+ getItem(): java.util.List<com.totvs.technology.ecm.dm.ws.RelatedDocumentDto>
1583
+ setItem(value: java.util.List<com.totvs.technology.ecm.dm.ws.RelatedDocumentDto>): void
1584
+ }
1585
+
1586
+ class WebServiceMessage {
1587
+ constructor()
1588
+ getCompanyId(): number
1589
+ setCompanyId(value: number): void
1590
+ getDocumentDescription(): string
1591
+ setDocumentDescription(value: string): void
1592
+ getDocumentId(): number
1593
+ setDocumentId(value: number): void
1594
+ getVersion(): number
1595
+ setVersion(value: number): void
1596
+ getWebServiceMessage(): string
1597
+ setWebServiceMessage(value: string): void
1598
+ }
1599
+
1600
+ class WebServiceMessageArray {
1601
+ constructor()
1602
+ getItem(): java.util.List<com.totvs.technology.ecm.dm.ws.WebServiceMessage>
1603
+ setItem(value: java.util.List<com.totvs.technology.ecm.dm.ws.WebServiceMessage>): void
1604
+ }
1605
+
1606
+ class CardDto {
1607
+ constructor()
1608
+ getAdditionalComments(): string
1609
+ setAdditionalComments(value: string): void
1610
+ // Campos de lista (JAXB): somente getter, adicione com .add()
1611
+ getAttachs(): java.util.List<com.totvs.technology.ecm.dm.ws.Attachment>
1612
+ getCardData(): java.util.List<com.totvs.technology.ecm.dm.ws.CardFieldDto>
1613
+ getDocapprovers(): java.util.List<com.totvs.technology.ecm.dm.ws.ApproverDto>
1614
+ getDocsecurity(): java.util.List<com.totvs.technology.ecm.dm.ws.DocumentSecurityConfigDto>
1615
+ getReldocs(): java.util.List<com.totvs.technology.ecm.dm.ws.RelatedDocumentDto>
1616
+ getColleagueId(): string
1617
+ setColleagueId(value: string): void
1618
+ getDocumentDescription(): string
1619
+ setDocumentDescription(value: string): void
1620
+ getDocumentId(): number
1621
+ setDocumentId(value: number): void
1622
+ getDocumentKeyWord(): string
1623
+ setDocumentKeyWord(value: string): void
1624
+ getExpirationDate(): string
1625
+ setExpirationDate(value: string): void
1626
+ getExpires(): boolean
1627
+ setExpires(value: boolean): void
1628
+ getInheritSecurity(): boolean
1629
+ setInheritSecurity(value: boolean): void
1630
+ getParentDocumentId(): number
1631
+ setParentDocumentId(value: number): void
1632
+ getTopicId(): number
1633
+ setTopicId(value: number): void
1634
+ getUserNotify(): boolean
1635
+ setUserNotify(value: boolean): void
1636
+ getValidationStartDate(): string
1637
+ setValidationStartDate(value: string): void
1638
+ getVersion(): number
1639
+ setVersion(value: number): void
1640
+ getVersionDescription(): string
1641
+ setVersionDescription(value: string): void
1642
+ }
1643
+
1644
+ class CardDtoArray {
1645
+ constructor()
1646
+ getItem(): java.util.List<com.totvs.technology.ecm.dm.ws.CardDto>
1647
+ setItem(value: java.util.List<com.totvs.technology.ecm.dm.ws.CardDto>): void
1648
+ }
1649
+ }
1650
+ }
1651
+ }
1652
+ }
1653
+ }
1654
+ }
1403
1655
  }
1404
1656
 
1405
1657
  export {}