jsegd-fluig-types 1.0.58 → 1.0.60
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
|
@@ -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
|
+
}
|
|
@@ -259,6 +259,40 @@ declare global {
|
|
|
259
259
|
'javax.naming.InitialContext': javax.naming.InitialContext
|
|
260
260
|
'com.fluig.sdk.api.FluigAPI': com.fluig.sdk.api.FluigAPI
|
|
261
261
|
'com.totvs.technology.ecm.workflow.ws.ECMWorkflowEngineServiceService': com.totvs.technology.ecm.workflow.ws.ECMWorkflowEngineServiceService
|
|
262
|
+
'com.totvs.technology.ecm.workflow.ws.Attachment': com.totvs.technology.ecm.workflow.ws.Attachment
|
|
263
|
+
'com.totvs.technology.ecm.workflow.ws.AttachmentArray': com.totvs.technology.ecm.workflow.ws.AttachmentArray
|
|
264
|
+
'com.totvs.technology.ecm.workflow.ws.ProcessDefinitionDto': com.totvs.technology.ecm.workflow.ws.ProcessDefinitionDto
|
|
265
|
+
'com.totvs.technology.ecm.workflow.ws.ProcessDefinitionDtoArray': com.totvs.technology.ecm.workflow.ws.ProcessDefinitionDtoArray
|
|
266
|
+
'com.totvs.technology.ecm.workflow.ws.ProcessDefinitionVersionDto': com.totvs.technology.ecm.workflow.ws.ProcessDefinitionVersionDto
|
|
267
|
+
'com.totvs.technology.ecm.workflow.ws.ProcessDefinitionVersionDtoArray': com.totvs.technology.ecm.workflow.ws.ProcessDefinitionVersionDtoArray
|
|
268
|
+
'com.totvs.technology.ecm.workflow.ws.ProcessStateDto': com.totvs.technology.ecm.workflow.ws.ProcessStateDto
|
|
269
|
+
'com.totvs.technology.ecm.workflow.ws.ProcessStateDtoArray': com.totvs.technology.ecm.workflow.ws.ProcessStateDtoArray
|
|
270
|
+
'com.totvs.technology.ecm.workflow.ws.ProcessAttachmentDto': com.totvs.technology.ecm.workflow.ws.ProcessAttachmentDto
|
|
271
|
+
'com.totvs.technology.ecm.workflow.ws.ProcessAttachmentDtoArray': com.totvs.technology.ecm.workflow.ws.ProcessAttachmentDtoArray
|
|
272
|
+
'com.totvs.technology.ecm.workflow.ws.ProcessTaskAppointmentDto': com.totvs.technology.ecm.workflow.ws.ProcessTaskAppointmentDto
|
|
273
|
+
'com.totvs.technology.ecm.workflow.ws.ProcessTaskAppointmentDtoArray': com.totvs.technology.ecm.workflow.ws.ProcessTaskAppointmentDtoArray
|
|
274
|
+
'com.totvs.technology.ecm.workflow.ws.KeyValueDto': com.totvs.technology.ecm.workflow.ws.KeyValueDto
|
|
275
|
+
'com.totvs.technology.ecm.workflow.ws.KeyValueDtoArray': com.totvs.technology.ecm.workflow.ws.KeyValueDtoArray
|
|
276
|
+
'com.totvs.technology.ecm.workflow.ws.DeadLineDto': com.totvs.technology.ecm.workflow.ws.DeadLineDto
|
|
277
|
+
'com.totvs.technology.ecm.workflow.ws.ProcessHistoryDto': com.totvs.technology.ecm.workflow.ws.ProcessHistoryDto
|
|
278
|
+
'com.totvs.technology.ecm.workflow.ws.ProcessHistoryDtoArray': com.totvs.technology.ecm.workflow.ws.ProcessHistoryDtoArray
|
|
279
|
+
'com.totvs.technology.ecm.workflow.ws.AvailableUsersDto': com.totvs.technology.ecm.workflow.ws.AvailableUsersDto
|
|
280
|
+
'com.totvs.technology.ecm.workflow.ws.ColleagueDto': com.totvs.technology.ecm.workflow.ws.ColleagueDto
|
|
281
|
+
'com.totvs.technology.ecm.dm.ws.ECMCardServiceService': com.totvs.technology.ecm.dm.ws.ECMCardServiceService
|
|
282
|
+
'com.totvs.technology.ecm.dm.ws.CardDto': com.totvs.technology.ecm.dm.ws.CardDto
|
|
283
|
+
'com.totvs.technology.ecm.dm.ws.CardDtoArray': com.totvs.technology.ecm.dm.ws.CardDtoArray
|
|
284
|
+
'com.totvs.technology.ecm.dm.ws.CardFieldDto': com.totvs.technology.ecm.dm.ws.CardFieldDto
|
|
285
|
+
'com.totvs.technology.ecm.dm.ws.CardFieldDtoArray': com.totvs.technology.ecm.dm.ws.CardFieldDtoArray
|
|
286
|
+
'com.totvs.technology.ecm.dm.ws.ApproverDto': com.totvs.technology.ecm.dm.ws.ApproverDto
|
|
287
|
+
'com.totvs.technology.ecm.dm.ws.ApproverDtoArray': com.totvs.technology.ecm.dm.ws.ApproverDtoArray
|
|
288
|
+
'com.totvs.technology.ecm.dm.ws.DocumentSecurityConfigDto': com.totvs.technology.ecm.dm.ws.DocumentSecurityConfigDto
|
|
289
|
+
'com.totvs.technology.ecm.dm.ws.DocumentSecurityConfigDtoArray': com.totvs.technology.ecm.dm.ws.DocumentSecurityConfigDtoArray
|
|
290
|
+
'com.totvs.technology.ecm.dm.ws.RelatedDocumentDto': com.totvs.technology.ecm.dm.ws.RelatedDocumentDto
|
|
291
|
+
'com.totvs.technology.ecm.dm.ws.RelatedDocumentDtoArray': com.totvs.technology.ecm.dm.ws.RelatedDocumentDtoArray
|
|
292
|
+
'com.totvs.technology.ecm.dm.ws.Attachment': com.totvs.technology.ecm.dm.ws.Attachment
|
|
293
|
+
'com.totvs.technology.ecm.dm.ws.AttachmentArray': com.totvs.technology.ecm.dm.ws.AttachmentArray
|
|
294
|
+
'com.totvs.technology.ecm.dm.ws.WebServiceMessage': com.totvs.technology.ecm.dm.ws.WebServiceMessage
|
|
295
|
+
'com.totvs.technology.ecm.dm.ws.WebServiceMessageArray': com.totvs.technology.ecm.dm.ws.WebServiceMessageArray
|
|
262
296
|
}
|
|
263
297
|
|
|
264
298
|
class ServiceManager {
|
|
@@ -1371,6 +1371,249 @@ declare global {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
|
+
namespace dm {
|
|
1375
|
+
namespace ws {
|
|
1376
|
+
// Localizador do serviço ECMCardService
|
|
1377
|
+
class ECMCardServiceService {
|
|
1378
|
+
constructor()
|
|
1379
|
+
getCardServicePort(): com.totvs.technology.ecm.dm.ws.CardService
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
// Interface do port/endpoint do serviço
|
|
1383
|
+
interface CardService {
|
|
1384
|
+
create(
|
|
1385
|
+
companyId: number,
|
|
1386
|
+
username: string,
|
|
1387
|
+
password: string,
|
|
1388
|
+
card: com.totvs.technology.ecm.dm.ws.CardDtoArray
|
|
1389
|
+
): com.totvs.technology.ecm.dm.ws.WebServiceMessageArray
|
|
1390
|
+
updateCardData(
|
|
1391
|
+
companyId: number,
|
|
1392
|
+
username: string,
|
|
1393
|
+
password: string,
|
|
1394
|
+
cardId: number,
|
|
1395
|
+
cardData: com.totvs.technology.ecm.dm.ws.CardFieldDtoArray
|
|
1396
|
+
): com.totvs.technology.ecm.dm.ws.WebServiceMessageArray
|
|
1397
|
+
getCardVersion(
|
|
1398
|
+
companyId: number,
|
|
1399
|
+
username: string,
|
|
1400
|
+
password: string,
|
|
1401
|
+
documentId: number,
|
|
1402
|
+
version: number,
|
|
1403
|
+
colleagueId: string
|
|
1404
|
+
): com.totvs.technology.ecm.dm.ws.CardDtoArray
|
|
1405
|
+
updateCard(
|
|
1406
|
+
companyId: number,
|
|
1407
|
+
username: string,
|
|
1408
|
+
password: string,
|
|
1409
|
+
card: com.totvs.technology.ecm.dm.ws.CardDtoArray,
|
|
1410
|
+
attachments: com.totvs.technology.ecm.dm.ws.AttachmentArray,
|
|
1411
|
+
security: com.totvs.technology.ecm.dm.ws.DocumentSecurityConfigDtoArray,
|
|
1412
|
+
approvers: com.totvs.technology.ecm.dm.ws.ApproverDtoArray,
|
|
1413
|
+
relatedDocuments: com.totvs.technology.ecm.dm.ws.RelatedDocumentDtoArray
|
|
1414
|
+
): com.totvs.technology.ecm.dm.ws.WebServiceMessageArray
|
|
1415
|
+
deleteCard(
|
|
1416
|
+
companyId: number,
|
|
1417
|
+
username: string,
|
|
1418
|
+
password: string,
|
|
1419
|
+
cardId: number
|
|
1420
|
+
): com.totvs.technology.ecm.dm.ws.WebServiceMessageArray
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
// DTOs e tipos auxiliares
|
|
1424
|
+
class Attachment {
|
|
1425
|
+
constructor()
|
|
1426
|
+
getAttach(): boolean
|
|
1427
|
+
setAttach(value: boolean): void
|
|
1428
|
+
getDescriptor(): boolean
|
|
1429
|
+
setDescriptor(value: boolean): void
|
|
1430
|
+
getEditing(): boolean
|
|
1431
|
+
setEditing(value: boolean): void
|
|
1432
|
+
getFileName(): string
|
|
1433
|
+
setFileName(value: string): void
|
|
1434
|
+
getFileSelected(): com.totvs.technology.ecm.dm.ws.Attachment
|
|
1435
|
+
setFileSelected(value: com.totvs.technology.ecm.dm.ws.Attachment): void
|
|
1436
|
+
getFileSize(): number
|
|
1437
|
+
setFileSize(value: number): void
|
|
1438
|
+
getFilecontent(): unknown
|
|
1439
|
+
setFilecontent(value: unknown): void
|
|
1440
|
+
getFullPatch(): string
|
|
1441
|
+
setFullPatch(value: string): void
|
|
1442
|
+
getIconPath(): string
|
|
1443
|
+
setIconPath(value: string): void
|
|
1444
|
+
getMobile(): boolean
|
|
1445
|
+
setMobile(value: boolean): void
|
|
1446
|
+
getPathName(): string
|
|
1447
|
+
setPathName(value: string): void
|
|
1448
|
+
getPrincipal(): boolean
|
|
1449
|
+
setPrincipal(value: boolean): void
|
|
1450
|
+
getSupportedNewViewer(): boolean
|
|
1451
|
+
setSupportedNewViewer(value: boolean): void
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
class AttachmentArray {
|
|
1455
|
+
constructor()
|
|
1456
|
+
getItem(): java.util.List<com.totvs.technology.ecm.dm.ws.Attachment>
|
|
1457
|
+
setItem(value: java.util.List<com.totvs.technology.ecm.dm.ws.Attachment>): void
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
class CardFieldDto {
|
|
1461
|
+
constructor()
|
|
1462
|
+
getField(): string
|
|
1463
|
+
setField(value: string): void
|
|
1464
|
+
getValue(): string
|
|
1465
|
+
setValue(value: string): void
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
class CardFieldDtoArray {
|
|
1469
|
+
constructor()
|
|
1470
|
+
getItem(): java.util.List<com.totvs.technology.ecm.dm.ws.CardFieldDto>
|
|
1471
|
+
setItem(value: java.util.List<com.totvs.technology.ecm.dm.ws.CardFieldDto>): void
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
class ApproverDto {
|
|
1475
|
+
constructor()
|
|
1476
|
+
getApprovelMode(): number
|
|
1477
|
+
setApprovelMode(value: number): void
|
|
1478
|
+
getApproverType(): number
|
|
1479
|
+
setApproverType(value: number): void
|
|
1480
|
+
getColleagueId(): string
|
|
1481
|
+
setColleagueId(value: string): void
|
|
1482
|
+
getCompanyId(): number
|
|
1483
|
+
setCompanyId(value: number): void
|
|
1484
|
+
getDocumentId(): number
|
|
1485
|
+
setDocumentId(value: number): void
|
|
1486
|
+
getLevelDescription(): string
|
|
1487
|
+
setLevelDescription(value: string): void
|
|
1488
|
+
getLevelId(): number
|
|
1489
|
+
setLevelId(value: number): void
|
|
1490
|
+
getVersion(): number
|
|
1491
|
+
setVersion(value: number): void
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
class ApproverDtoArray {
|
|
1495
|
+
constructor()
|
|
1496
|
+
getItem(): java.util.List<com.totvs.technology.ecm.dm.ws.ApproverDto>
|
|
1497
|
+
setItem(value: java.util.List<com.totvs.technology.ecm.dm.ws.ApproverDto>): void
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
class DocumentSecurityConfigDto {
|
|
1501
|
+
constructor()
|
|
1502
|
+
getAttributionType(): number
|
|
1503
|
+
setAttributionType(value: number): void
|
|
1504
|
+
getAttributionValue(): string
|
|
1505
|
+
setAttributionValue(value: string): void
|
|
1506
|
+
getCompanyId(): number
|
|
1507
|
+
setCompanyId(value: number): void
|
|
1508
|
+
getDocumentId(): number
|
|
1509
|
+
setDocumentId(value: number): void
|
|
1510
|
+
getDownloadEnabled(): boolean
|
|
1511
|
+
setDownloadEnabled(value: boolean): void
|
|
1512
|
+
getInheritSecurity(): boolean
|
|
1513
|
+
setInheritSecurity(value: boolean): void
|
|
1514
|
+
getPermission(): boolean
|
|
1515
|
+
setPermission(value: boolean): void
|
|
1516
|
+
getSecurityLevel(): number
|
|
1517
|
+
setSecurityLevel(value: number): void
|
|
1518
|
+
getSecurityVersion(): boolean
|
|
1519
|
+
setSecurityVersion(value: boolean): void
|
|
1520
|
+
getSequence(): number
|
|
1521
|
+
setSequence(value: number): void
|
|
1522
|
+
getShowContent(): boolean
|
|
1523
|
+
setShowContent(value: boolean): void
|
|
1524
|
+
getVersion(): number
|
|
1525
|
+
setVersion(value: number): void
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
class DocumentSecurityConfigDtoArray {
|
|
1529
|
+
constructor()
|
|
1530
|
+
getItem(): java.util.List<com.totvs.technology.ecm.dm.ws.DocumentSecurityConfigDto>
|
|
1531
|
+
setItem(value: java.util.List<com.totvs.technology.ecm.dm.ws.DocumentSecurityConfigDto>): void
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
class RelatedDocumentDto {
|
|
1535
|
+
constructor()
|
|
1536
|
+
getCompanyId(): number
|
|
1537
|
+
setCompanyId(value: number): void
|
|
1538
|
+
getDocumentId(): number
|
|
1539
|
+
setDocumentId(value: number): void
|
|
1540
|
+
getRelatedDocumentId(): number
|
|
1541
|
+
setRelatedDocumentId(value: number): void
|
|
1542
|
+
getVersion(): number
|
|
1543
|
+
setVersion(value: number): void
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
class RelatedDocumentDtoArray {
|
|
1547
|
+
constructor()
|
|
1548
|
+
getItem(): java.util.List<com.totvs.technology.ecm.dm.ws.RelatedDocumentDto>
|
|
1549
|
+
setItem(value: java.util.List<com.totvs.technology.ecm.dm.ws.RelatedDocumentDto>): void
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
class WebServiceMessage {
|
|
1553
|
+
constructor()
|
|
1554
|
+
getCompanyId(): number
|
|
1555
|
+
setCompanyId(value: number): void
|
|
1556
|
+
getDocumentDescription(): string
|
|
1557
|
+
setDocumentDescription(value: string): void
|
|
1558
|
+
getDocumentId(): number
|
|
1559
|
+
setDocumentId(value: number): void
|
|
1560
|
+
getVersion(): number
|
|
1561
|
+
setVersion(value: number): void
|
|
1562
|
+
getWebServiceMessage(): string
|
|
1563
|
+
setWebServiceMessage(value: string): void
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
class WebServiceMessageArray {
|
|
1567
|
+
constructor()
|
|
1568
|
+
getItem(): java.util.List<com.totvs.technology.ecm.dm.ws.WebServiceMessage>
|
|
1569
|
+
setItem(value: java.util.List<com.totvs.technology.ecm.dm.ws.WebServiceMessage>): void
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
class CardDto {
|
|
1573
|
+
constructor()
|
|
1574
|
+
getAdditionalComments(): string
|
|
1575
|
+
setAdditionalComments(value: string): void
|
|
1576
|
+
// Campos de lista (JAXB): somente getter, adicione com .add()
|
|
1577
|
+
getAttachs(): java.util.List<com.totvs.technology.ecm.dm.ws.Attachment>
|
|
1578
|
+
getCardData(): java.util.List<com.totvs.technology.ecm.dm.ws.CardFieldDto>
|
|
1579
|
+
getDocapprovers(): java.util.List<com.totvs.technology.ecm.dm.ws.ApproverDto>
|
|
1580
|
+
getDocsecurity(): java.util.List<com.totvs.technology.ecm.dm.ws.DocumentSecurityConfigDto>
|
|
1581
|
+
getReldocs(): java.util.List<com.totvs.technology.ecm.dm.ws.RelatedDocumentDto>
|
|
1582
|
+
getColleagueId(): string
|
|
1583
|
+
setColleagueId(value: string): void
|
|
1584
|
+
getDocumentDescription(): string
|
|
1585
|
+
setDocumentDescription(value: string): void
|
|
1586
|
+
getDocumentId(): number
|
|
1587
|
+
setDocumentId(value: number): void
|
|
1588
|
+
getDocumentKeyWord(): string
|
|
1589
|
+
setDocumentKeyWord(value: string): void
|
|
1590
|
+
getExpirationDate(): string
|
|
1591
|
+
setExpirationDate(value: string): void
|
|
1592
|
+
getExpires(): boolean
|
|
1593
|
+
setExpires(value: boolean): void
|
|
1594
|
+
getInheritSecurity(): boolean
|
|
1595
|
+
setInheritSecurity(value: boolean): void
|
|
1596
|
+
getParentDocumentId(): number
|
|
1597
|
+
setParentDocumentId(value: number): void
|
|
1598
|
+
getTopicId(): number
|
|
1599
|
+
setTopicId(value: number): void
|
|
1600
|
+
getUserNotify(): boolean
|
|
1601
|
+
setUserNotify(value: boolean): void
|
|
1602
|
+
getValidationStartDate(): string
|
|
1603
|
+
setValidationStartDate(value: string): void
|
|
1604
|
+
getVersion(): number
|
|
1605
|
+
setVersion(value: number): void
|
|
1606
|
+
getVersionDescription(): string
|
|
1607
|
+
setVersionDescription(value: string): void
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
class CardDtoArray {
|
|
1611
|
+
constructor()
|
|
1612
|
+
getItem(): java.util.List<com.totvs.technology.ecm.dm.ws.CardDto>
|
|
1613
|
+
setItem(value: java.util.List<com.totvs.technology.ecm.dm.ws.CardDto>): void
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1374
1617
|
}
|
|
1375
1618
|
}
|
|
1376
1619
|
}
|