Class DocumentService
java.lang.Object
org.bh_foundation.e_sign.services.data.DocumentService
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentService(DocumentRepository documentRepository, UserRepository userRepository, DocumentApprovalRepository documentApprovalRepository, StampRepository stampRepository, JwtService jwtService, FileStorageService fileStorageService, LocationService locationService, jakarta.servlet.http.HttpServletRequest servletRequest, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, Crypt crypt, PDFVerifierService verifierService) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]applyStamp(org.springframework.web.multipart.MultipartFile file, Integer page, RenderChoice renderChoice, String passphrase, com.itextpdf.kernel.geom.Rectangle rect, DocSize docSize) ResponseDto<?> ResponseDto<?> ResponseDto<?> ResponseDto<?> getMine()ResponseDto<?> getMineById(String id) ResponseDto<?> ResponseDto<?> ResponseDto<?> getUrlByFilename(String filename) ResponseDto<?> send(String title, boolean orderSign, org.springframework.web.multipart.MultipartFile file, List<Long> signersId, List<Integer> pageNumbers) ResponseDto<?> sign(String documentId, org.springframework.web.multipart.MultipartFile signedFile, String passphrase, RenderChoice renderChoice, com.itextpdf.kernel.geom.Rectangle rect, DocSize docSize) byte[]signSelf(org.springframework.web.multipart.MultipartFile file, Integer page, RenderChoice renderChoice, String passphrase, com.itextpdf.kernel.geom.Rectangle rect, DocSize docSize) ResponseDto<?> verify(org.springframework.web.multipart.MultipartFile file)
-
Constructor Details
-
DocumentService
public DocumentService(DocumentRepository documentRepository, UserRepository userRepository, DocumentApprovalRepository documentApprovalRepository, StampRepository stampRepository, JwtService jwtService, FileStorageService fileStorageService, LocationService locationService, jakarta.servlet.http.HttpServletRequest servletRequest, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, Crypt crypt, PDFVerifierService verifierService)
-
-
Method Details
-
getRequested
-
getRequestedById
- Throws:
Exception
-
getMine
-
getMineById
- Throws:
Exception
-
getMineSigned
-
send
public ResponseDto<?> send(String title, boolean orderSign, org.springframework.web.multipart.MultipartFile file, List<Long> signersId, List<Integer> pageNumbers) throws IOException - Throws:
IOException
-
approve
- Throws:
Exception
-
deny
- Throws:
Exception
-
sign
public ResponseDto<?> sign(String documentId, org.springframework.web.multipart.MultipartFile signedFile, String passphrase, RenderChoice renderChoice, com.itextpdf.kernel.geom.Rectangle rect, DocSize docSize) throws IOException, Exception - Throws:
IOExceptionException
-
delete
- Throws:
IOExceptionException
-
signSelf
-
applyStamp
-
verify
-
getUrlByFilename
-