-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from brunogasparetto/master
Adiciona alguns elementos dos serviços SOAP
- Loading branch information
Showing
10 changed files
with
2,276 additions
and
1,156 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
declare namespace com.totvs.technology.ecm.dm.ws { | ||
|
||
/** | ||
* Serviço para tratar registros de formulários | ||
*/ | ||
declare class CardService { | ||
|
||
/** | ||
* Cria um registro de formulário | ||
*/ | ||
create(companyId: number, username: string, password: string, card: CardDtoArray): WebServiceMessageArray; | ||
|
||
/** | ||
* Atualiza o registro do formulário | ||
*/ | ||
updateCardData(companyId: number, username: string, password: string, cardId: number, cardData: CardFieldDtoArray): WebServiceMessageArray; | ||
|
||
/** | ||
* Apaga o registro do formulário | ||
*/ | ||
deleteCard(companyId: number, username: string, password: string, cardId: number): WebServiceMessageArray; | ||
} | ||
|
||
/** | ||
* Representa um Documento/Formulário | ||
*/ | ||
declare class CardDto { | ||
setUserNotify(notify: boolean): void; | ||
setInheritSecurity(inherit: boolean): void; | ||
setDocumentDescription(description: string): void; | ||
setParentDocumentId(parentId: number): void; | ||
getCardData(): java.util.List<CardFieldDto>; | ||
} | ||
|
||
/** | ||
* Representa um campo do Documento/Formulário | ||
*/ | ||
declare class CardFieldDto { | ||
setField(field: string): void; | ||
setValue(value: string): void; | ||
} | ||
|
||
/** | ||
* Representa um conjunto de Documentos/Formulários | ||
* | ||
* Utilizado ao criar um documento/formulário. | ||
*/ | ||
declare class CardDtoArray { | ||
getItem(): java.util.List<CardDto>; | ||
} | ||
|
||
/** | ||
* Representa um conjunto de campos do Documento/Formulário | ||
* | ||
* Utilizado ao editar um documento/formulário. | ||
*/ | ||
declare class CardFieldDtoArray { | ||
getItem(): java.util.List<CardFieldDto>; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
declare namespace com.totvs.technology.ecm.dm.ws { | ||
/** | ||
* Serviço para gerenciar os documentos via SOAP | ||
* | ||
* @example | ||
* var serviceHelper = ServiceManager.getService("ECMDocumentService").getBean(); | ||
* | ||
* // Instanciando o objeto da classe DocumentService | ||
* var service = serviceHelper | ||
* .instantiate("com.totvs.technology.ecm.dm.ws.ECMDocumentServiceService") | ||
* .getDocumentServicePort() | ||
* ; | ||
*/ | ||
declare class DocumentService { | ||
/** | ||
* Cria um documento do jeito simplificado | ||
*/ | ||
createSimpleDocument( | ||
username: string, | ||
password: string, | ||
companyId: number, | ||
folderId: number, | ||
publisherCode: string, | ||
fileName: string, | ||
attachmentArray: AttachmentArray | ||
): WebServiceMessageArray; | ||
|
||
/** | ||
* Pega o conteúdo de um arquivo do GED | ||
*/ | ||
getDocumentContent( | ||
username: string, | ||
password: string, | ||
companyId: number, | ||
documentId: number, | ||
userCode: string, | ||
version: number, | ||
documentDescription: string | ||
): java.lang.Byte[]; | ||
} | ||
|
||
declare class Attachment { | ||
setFileName(fileName: string): void; | ||
setFileSize(fileSize: number): void; | ||
setAttach(isAttach: boolean): void; | ||
setEditing(isEditing: boolean): void; | ||
setPrincipal(isPrincipal: boolean): void; | ||
|
||
/** | ||
* Configura o conteúdo do arquivo | ||
* | ||
* @param content Conteúdo em ByteArray | ||
* | ||
* @example | ||
* var serviceHelper = ServiceManager | ||
* .getService("ECMDocumentService") | ||
* .getBean() | ||
* ; | ||
* | ||
* var service = serviceHelper | ||
* .instantiate("com.totvs.technology.ecm.dm.ws.ECMDocumentServiceService") | ||
* .getDocumentServicePort() | ||
* ; | ||
* | ||
* var attachment = serviceHelper | ||
* .instantiate("com.totvs.technology.ecm.dm.ws.Attachment") | ||
* ; | ||
* | ||
* // Inserindo conteúdo em Base64 | ||
* attachment.setFileContent(java.util.Base64.getDecoder().decode(new java.lang.String("string em Base64").getBytes("UTF-8")) | ||
*/ | ||
setFilecontent(content: java.lang.Byte[]): void; | ||
} | ||
|
||
declare class AttachmentArray { | ||
getItem(): java.util.List<Attachment>; | ||
} | ||
} |
Oops, something went wrong.