All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lacunasoftware.restpkicore.ModelConverters Maven / Gradle / Ivy

There is a newer version: 1.1.4
Show newest version
package com.lacunasoftware.restpkicore;

class ModelConverters {

      static DocumentModel toDocumentModel(SignatureSessionDocumentSummary model){
        DocumentModel documentModel = new DocumentModel();
        documentModel.setId(model.getId());
        documentModel.setKey(model.getKey());
        documentModel.setFormattedKey(model.getFormattedKey());
        documentModel.setOriginalFile(model.getOriginalFile());
        documentModel.setSignedFile(model.getSignedFile());
        documentModel.setMarkedFile(model.getMarkedFile());
        documentModel.setSignatureType(model.getSignatureType());
        documentModel.setAvailableUntil(model.getAvailableUntil());

        return documentModel;
    }

    static Signer toSigner(SignerModel signerModel){
          Signer signer = new Signer(signerModel);
          return signer;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy