Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MARP-616-A-Trust-Refactoring #38

Merged
merged 6 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions a-trust-connector-demo/cms/Templates/SampleSignatureSeal.xml

Large diffs are not rendered by default.

59 changes: 59 additions & 0 deletions a-trust-connector-demo/cms/cms.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
Dialogs:
com:
axonivy:
connector:
atrust:
demo:
DocumentSignature:
ATrustHeader: This is an <a href="https://www.a-trust.at/de/handy-signatur/">A-Trust HandySignatur</a> integration example
AdditionalHints: The x and y coordinates define a corner of the signature image. It should be noted that the coordinate origin is in the lower-left corner of the PDF file. W and h define the image's second corner. These coordinates are expressed as percentages (page height/page width). The
page onto which the signature image is to be placed has to be defined as well. If you entered one of them, you must complete all, otherwise, it will use default.
AdditionalProperties: Additional properties
Confirmation: Confirmation
CoordinateHPlaceholder: The number defines the image's second corner, compute with Y
CoordinateWPlaceholder: The number defines the image's second corner, compute with X
CoordinateXPlaceholder: The coordinate of the left corner of the PDF
CoordinateYPlaceholder: The coordinate of the lower left corner of the PDF
CreateASignSession: Create a Sign session
DeleteDocMessage: '{0} has been deleted'
DemoATrust: Demo A-Trust integration
DuplicatedDocument: Document {0} already exists
EmbeddedInframe: Embedded Inframe?
PageNumber: Page number
PageNumberPlaceholder: Page to insert sign stamp
RequiredParamsHints: If you are just entering the required parameter (location, reason, and document) without inputting the template. This will result in an invisible signature
RequiredProperties: Required properties
SignDocument: Sign Document
SignDocumentInFrame: Sign Document in Iframe
SignInFrame: 'Sign Document in Frame: an Frame will appear and allow user login to ATrust, then user can stay here and sign the doc!'
SignInFrameHeader: Sign your document by A-Trust HandySignature
SignatureByATrust: 'Signature Document: redirect user to ATrust-HandySignature page, and then user can sign the document! To prevent "Block Popup" feature of web browser, after click on Signature Document button, a new button will be appear and you can click on it to sign.'
TheHPosition: H position
TheWPosition: W position
TheXPosition: X position
TheYPosition: Y position
TypeToSearchSignatureTemplate: Type signature name or id to search
UploadDocumentSuccessfully: Upload file {0} to case {1} successfully
YourATrustIsReadyMessage: Your ATrust HandySignature session is created, please click Sign to start
YourHandySignature: 'Your handy signature session:'
Labels:
AreYouSureYouToDelete: Are you sure you want to delete this item?
AvailableTemplates: Available signature template
Close: Close
Creator: Creator
DocumentOfCase: Document of case
FileSize: File size
Filename: Filename
Finish: Finish
Functions: Functions
ID: ID
InputYourInfo: Input your signature information
Location: Location
Name: Name
'No': 'No'
NoFilesAreFound: No files are found!
Reason: Reason
Sign: Sign
Template: Template
UploadYourDoc: Upload your doc
'Yes': 'Yes'
26 changes: 19 additions & 7 deletions a-trust-connector-demo/config/variables.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
Variables:
# Custom variables of ATrust Handysignatur API
ATrust:
# API Key for "A-Trust Handysignatur API"
APIKey: 'TEST-API-KEY-UXWRZBKTTMQOFXFQFIUPABGUCZQGYTXDFPYTUOYRGIFQHKRELBR'
# API Key for "A-Trust Handysignature API"
APIKey: ''

# The endpoint uri of A-Trust Handysignatur Signatur-box webservice
EndpointUri: 'https://handy-signatur.at/demosignaturbox/intern/HandySignaturPdf.svc'
# The Server URL under which the SigBox Server is reachable
ServerUrl: ''

# The SignBox belong to your ATrust server
SignBox: ''

# The ID of the signature template to be used.
TemplateId: 14464
# The default signature template ID to be used
TemplateId: 0

# To config the Handy-Signature view in iframe. The Details can be found on the A-Trust Website https://labs.a-trust.at/developer/Handy-Signatur.aspx.
HandySignaturParameter:
# For setting width of frame.
Width: 350
# For setting height of frame.
Height: 350
# For setting background color of frame.
BackgroundColor: 0
# For setting phone number of frame.
PhoneNumber: 0
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ myIvyFile File #field
templateData com.axonivy.connector.atrust.bo.TemplateData #field
templateId Number #field
templateId PERSISTENT #fieldModifier
signatureTemplates at.a.trust.rest.api.client.SignatureTemplates #field
Loading
Loading