assas-dms
Service icon

Assas DMS

Stable version 1.0.8 (Compatible with OutSystems 11)
Uploaded
 on 16 November 2023
 by 
Assas IT
5.0
 (5 ratings)
assas-dms

Assas DMS

Documentation
1.0.8




Assas Document Management System


File Sharding by two ways:

      Date

      Serial


Document digital signature with RSA PK.

Verify signature by public key with two ways.

          File Id

          Signature

Encrypt Files by AES Algorithm.

Decrypt Files by AES Algorithm.

Generate AES key to use it at encrypt and decrypt.

Generate Private Key to use it at create digital signature.

Generate Public key to use it at Verify signature.


Get Resized Images


Module consist from 4 sub modules: -


Assas_DMS_CS -> Core layer module has database, crud function and service actions for tables.

Assas_DMS_BL -> business layer module has all business logic at service action to use.

Assas_DMS_Timer -> contain timers for fragment and purging.

Assas_DMS_Api -> consist from many APIS to do application Job.




Service Actions: -


File: -

FileCreate

Use to create file and return file Id.

Create_file server action takes for input parameters (File_content, File_name, File_Type, IsTemp), save it and return File_Id to use at any other features.



FileDelete

Use to Delete file with specific Id.

Delete_File Server Action take file_Id and delete it from Database.


 


GetFile

Use to Get file with specific Id.

Get_File Server Action take file_Id and return it from Database.



GetFiles

Use to Get list of files with list of Ids.

Get_Files Server Action take list of file Ids and return with list of files from Database.




Temp: -


UpdateTempToRegular

Use to Update File list from temp to Current file location.


AES: -


AESNewKey

Use to Generat New AES key to use it at encrypt.




AESEncrypt

Encrypt files used AES algorithm.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, AESKey) and assign it to AES_EncryptionAction which return FileId after encrypt it and save in database.


AESDecrypt

Decrypt files used AES algorithm.


Takes 2 input parameters (InFileId, Key) and assign it to AES_DecryptAction which return 3 parameters (InFileContent, InFileType, InFileName).

 


RSA: -


GetRSAEncryptPrivateKey

Generate a new Private RSA key.

           

GetRSAPublicKeyByPrivateKey

Extract the public key from a private key.


File Signature: -


SignFile

Create Digital signature.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, PrivateKey) and assign it to Create_NewSignature which return 2 parameters (FileId, Signature) after Create it and save in database.



VerifyById

            Verify Signature by signature Id.




Takes 3 input parameters (InFileContent, InFileId, PublicKey) and assign it to Verify_SignatureById which return Is Valid or not.


Verify_SignaturebyId

Verify signature using RSA algorithm by Id by steps: -

Get file content by signature Id.

Convert file type from binary to text.

Verify signature throw public key and RSA algorithm

Return if signature valid or not.



VerifyBySignature

            Verify Signature by old signature.


Takes 3 input parameters (InFileContent, InSignature, PublicKey) and assign it to Verify_BySignature which return Is Valid or not.


             


Assas_DMS_API


Rest API: -

                                   

AESEncrypt

            Encrypt File by AES algorithm by take structure of encrypt file information as input parameter and return file id.


AESDecrypt

Decrypt File by AES algorithm by take 2 Input parameters (FileId, Key) and return structure of file information.





GenerateNewAESKey

                        Generate a new AES key to use it at encrypt and decrypt methods.


GeneratPrivateKey

          Generate a new RSA private key to use at create signature.



GeneratePublicKey

          Generate a new RSA public key to use at verify signature.



CreateSignarture

          Create Digital Signature and store it in database, take structure of signature needed data and return signature Id and Signature.



VerifySignatureBySignature


          Verify signature by sending signature and new file, take (publickey, Signature, FileContent) as input parameters and return Is valid or not.


VerifySignatureById

          Verify signature by sending signature Id and new file, take (publickey, FileId, FileContent) as input parameters and return Is valid or not.



Create

          Upload the content wrote in the component by take File structure which held file data and return (CreateResponce) structure which consist from (Id, URL).



Download

Download the content wrote in the component by take GUID as input parameter and return file content.





DownloadResizedImage

Download The Content Wrote in The Component by take 3 parameters (GUID, width, height) as input parameters and return file content.


UpdateTempFilesToRegular

Update Temp files to Regular files by take file list as input parameter.



UploadFromHTTPRequest

Upload the content From HTTP Request by take IsTemp as an input parameter and return content.






Assas_DMS_Timer


FileFragmentForAll

            This timer can run by two ways

By Serial

By Month

we control this by “ShardingType” site property, we can also control on number of entities that sharding will hold by two site properties based on type of sharding.

FaragmentSerialCount.

FragmentDaysCount.


FilePurging

Timer run when want to purging current files from database used PurgingDaysCount site property.


TempPurging

Timer run when want to purging temp files from database used TempPurgingDaysCount site property.


1.0.7




Assas Document Management System


File Sharding by two ways:

      Date

      Serial


Document digital signature with RSA PK.

Verify signature by public key with two ways.

          File Id

          Signature

Encrypt Files by AES Algorithm.

Decrypt Files by AES Algorithm.

Generate AES key to use it at encrypt and decrypt.

Generate Private Key to use it at create digital signature.

Generate Public key to use it at Verify signature.


Get Resized Images


Module consist from 4 sub modules: -


Assas_DMS_CS -> Core layer module has database, crud function and service actions for tables.

Assas_DMS_BL -> business layer module has all business logic at service action to use.

Assas_DMS_Timer -> contain timers for fragment and purging.

Assas_DMS_Api -> consist from many APIS to do application Job.




Service Actions: -


File: -

FileCreate

Use to create file and return file Id.

Create_file server action takes for input parameters (File_content, File_name, File_Type, IsTemp), save it and return File_Id to use at any other features.



FileDelete

Use to Delete file with specific Id.

Delete_File Server Action take file_Id and delete it from Database.


 


GetFile

Use to Get file with specific Id.

Get_File Server Action take file_Id and return it from Database.



GetFiles

Use to Get list of files with list of Ids.

Get_Files Server Action take list of file Ids and return with list of files from Database.




Temp: -


UpdateTempToRegular

Use to Update File list from temp to Current file location.


AES: -


AESNewKey

Use to Generat New AES key to use it at encrypt.




AESEncrypt

Encrypt files used AES algorithm.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, AESKey) and assign it to AES_EncryptionAction which return FileId after encrypt it and save in database.


AESDecrypt

Decrypt files used AES algorithm.


Takes 2 input parameters (InFileId, Key) and assign it to AES_DecryptAction which return 3 parameters (InFileContent, InFileType, InFileName).

 


RSA: -


GetRSAEncryptPrivateKey

Generate a new Private RSA key.

           

GetRSAPublicKeyByPrivateKey

Extract the public key from a private key.


File Signature: -


SignFile

Create Digital signature.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, PrivateKey) and assign it to Create_NewSignature which return 2 parameters (FileId, Signature) after Create it and save in database.



VerifyById

            Verify Signature by signature Id.




Takes 3 input parameters (InFileContent, InFileId, PublicKey) and assign it to Verify_SignatureById which return Is Valid or not.


Verify_SignaturebyId

Verify signature using RSA algorithm by Id by steps: -

Get file content by signature Id.

Convert file type from binary to text.

Verify signature throw public key and RSA algorithm

Return if signature valid or not.



VerifyBySignature

            Verify Signature by old signature.


Takes 3 input parameters (InFileContent, InSignature, PublicKey) and assign it to Verify_BySignature which return Is Valid or not.


             


Assas_DMS_API


Rest API: -

                                   

AESEncrypt

            Encrypt File by AES algorithm by take structure of encrypt file information as input parameter and return file id.


AESDecrypt

Decrypt File by AES algorithm by take 2 Input parameters (FileId, Key) and return structure of file information.





GenerateNewAESKey

                        Generate a new AES key to use it at encrypt and decrypt methods.


GeneratPrivateKey

          Generate a new RSA private key to use at create signature.



GeneratePublicKey

          Generate a new RSA public key to use at verify signature.



CreateSignarture

          Create Digital Signature and store it in database, take structure of signature needed data and return signature Id and Signature.



VerifySignatureBySignature


          Verify signature by sending signature and new file, take (publickey, Signature, FileContent) as input parameters and return Is valid or not.


VerifySignatureById

          Verify signature by sending signature Id and new file, take (publickey, FileId, FileContent) as input parameters and return Is valid or not.



Create

          Upload the content wrote in the component by take File structure which held file data and return (CreateResponce) structure which consist from (Id, URL).



Download

Download the content wrote in the component by take GUID as input parameter and return file content.





DownloadResizedImage

Download The Content Wrote in The Component by take 3 parameters (GUID, width, height) as input parameters and return file content.


UpdateTempFilesToRegular

Update Temp files to Regular files by take file list as input parameter.



UploadFromHTTPRequest

Upload the content From HTTP Request by take IsTemp as an input parameter and return content.






Assas_DMS_Timer


FileFragmentForAll

            This timer can run by two ways

By Serial

By Month

we control this by “ShardingType” site property, we can also control on number of entities that sharding will hold by two site properties based on type of sharding.

FaragmentSerialCount.

FragmentDaysCount.


FilePurging

Timer run when want to purging current files from database used PurgingDaysCount site property.


TempPurging

Timer run when want to purging temp files from database used TempPurgingDaysCount site property.


1.0.6




Assas Document Management System


File Sharding by two ways:

      Date

      Serial


Document digital signature with RSA PK.

Verify signature by public key with two ways.

          File Id

          Signature

Encrypt Files by AES Algorithm.

Decrypt Files by AES Algorithm.

Generate AES key to use it at encrypt and decrypt.

Generate Private Key to use it at create digital signature.

Generate Public key to use it at Verify signature.


Get Resized Images


Module consist from 4 sub modules: -


Assas_DMS_CS -> Core layer module has database, crud function and service actions for tables.

Assas_DMS_BL -> business layer module has all business logic at service action to use.

Assas_DMS_Timer -> contain timers for fragment and purging.

Assas_DMS_Api -> consist from many APIS to do application Job.




Service Actions: -


File: -

FileCreate

Use to create file and return file Id.

Create_file server action takes for input parameters (File_content, File_name, File_Type, IsTemp), save it and return File_Id to use at any other features.



FileDelete

Use to Delete file with specific Id.

Delete_File Server Action take file_Id and delete it from Database.


 


GetFile

Use to Get file with specific Id.

Get_File Server Action take file_Id and return it from Database.



GetFiles

Use to Get list of files with list of Ids.

Get_Files Server Action take list of file Ids and return with list of files from Database.




Temp: -


UpdateTempToRegular

Use to Update File list from temp to Current file location.


AES: -


AESNewKey

Use to Generat New AES key to use it at encrypt.




AESEncrypt

Encrypt files used AES algorithm.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, AESKey) and assign it to AES_EncryptionAction which return FileId after encrypt it and save in database.


AESDecrypt

Decrypt files used AES algorithm.


Takes 2 input parameters (InFileId, Key) and assign it to AES_DecryptAction which return 3 parameters (InFileContent, InFileType, InFileName).

 


RSA: -


GetRSAEncryptPrivateKey

Generate a new Private RSA key.

           

GetRSAPublicKeyByPrivateKey

Extract the public key from a private key.


File Signature: -


SignFile

Create Digital signature.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, PrivateKey) and assign it to Create_NewSignature which return 2 parameters (FileId, Signature) after Create it and save in database.



VerifyById

            Verify Signature by signature Id.




Takes 3 input parameters (InFileContent, InFileId, PublicKey) and assign it to Verify_SignatureById which return Is Valid or not.


Verify_SignaturebyId

Verify signature using RSA algorithm by Id by steps: -

Get file content by signature Id.

Convert file type from binary to text.

Verify signature throw public key and RSA algorithm

Return if signature valid or not.



VerifyBySignature

            Verify Signature by old signature.


Takes 3 input parameters (InFileContent, InSignature, PublicKey) and assign it to Verify_BySignature which return Is Valid or not.


             


Assas_DMS_API


Rest API: -

                                   

AESEncrypt

            Encrypt File by AES algorithm by take structure of encrypt file information as input parameter and return file id.


AESDecrypt

Decrypt File by AES algorithm by take 2 Input parameters (FileId, Key) and return structure of file information.





GenerateNewAESKey

                        Generate a new AES key to use it at encrypt and decrypt methods.


GeneratPrivateKey

          Generate a new RSA private key to use at create signature.



GeneratePublicKey

          Generate a new RSA public key to use at verify signature.



CreateSignarture

          Create Digital Signature and store it in database, take structure of signature needed data and return signature Id and Signature.



VerifySignatureBySignature


          Verify signature by sending signature and new file, take (publickey, Signature, FileContent) as input parameters and return Is valid or not.


VerifySignatureById

          Verify signature by sending signature Id and new file, take (publickey, FileId, FileContent) as input parameters and return Is valid or not.



Create

          Upload the content wrote in the component by take File structure which held file data and return (CreateResponce) structure which consist from (Id, URL).



Download

Download the content wrote in the component by take GUID as input parameter and return file content.





DownloadResizedImage

Download The Content Wrote in The Component by take 3 parameters (GUID, width, height) as input parameters and return file content.


UpdateTempFilesToRegular

Update Temp files to Regular files by take file list as input parameter.



UploadFromHTTPRequest

Upload the content From HTTP Request by take IsTemp as an input parameter and return content.






Assas_DMS_Timer


FileFragmentForAll

            This timer can run by two ways

By Serial

By Month

we control this by “ShardingType” site property, we can also control on number of entities that sharding will hold by two site properties based on type of sharding.

FaragmentSerialCount.

FragmentDaysCount.


FilePurging

Timer run when want to purging current files from database used PurgingDaysCount site property.


TempPurging

Timer run when want to purging temp files from database used TempPurgingDaysCount site property.




1.0.5




Assas Document Management System


File Sharding by two ways:

      Date

      Serial


Document digital signature with RSA PK.

Verify signature by public key with two ways.

          File Id

          Signature

Encrypt Files by AES Algorithm.

Decrypt Files by AES Algorithm.

Generate AES key to use it at encrypt and decrypt.

Generate Private Key to use it at create digital signature.

Generate Public key to use it at Verify signature.


Get Resized Images


Module consist from 4 sub modules: -


Assas_DMS_CS -> Core layer module has database, crud function and service actions for tables.

Assas_DMS_BL -> business layer module has all business logic at service action to use.

Assas_DMS_Timer -> contain timers for fragment and purging.

Assas_DMS_Api -> consist from many APIS to do application Job.




Service Actions: -


File: -

FileCreate

Use to create file and return file Id.

Create_file server action takes for input parameters (File_content, File_name, File_Type, IsTemp), save it and return File_Id to use at any other features.



FileDelete

Use to Delete file with specific Id.

Delete_File Server Action take file_Id and delete it from Database.


 


GetFile

Use to Get file with specific Id.

Get_File Server Action take file_Id and return it from Database.



GetFiles

Use to Get list of files with list of Ids.

Get_Files Server Action take list of file Ids and return with list of files from Database.




Temp: -


UpdateTempToRegular

Use to Update File list from temp to Current file location.


AES: -


AESNewKey

Use to Generat New AES key to use it at encrypt.




AESEncrypt

Encrypt files used AES algorithm.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, AESKey) and assign it to AES_EncryptionAction which return FileId after encrypt it and save in database.


AESDecrypt

Decrypt files used AES algorithm.


Takes 2 input parameters (InFileId, Key) and assign it to AES_DecryptAction which return 3 parameters (InFileContent, InFileType, InFileName).

 


RSA: -


GetRSAEncryptPrivateKey

Generate a new Private RSA key.

           

GetRSAPublicKeyByPrivateKey

Extract the public key from a private key.


File Signature: -


SignFile

Create Digital signature.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, PrivateKey) and assign it to Create_NewSignature which return 2 parameters (FileId, Signature) after Create it and save in database.



VerifyById

            Verify Signature by signature Id.




Takes 3 input parameters (InFileContent, InFileId, PublicKey) and assign it to Verify_SignatureById which return Is Valid or not.


Verify_SignaturebyId

Verify signature using RSA algorithm by Id by steps: -

Get file content by signature Id.

Convert file type from binary to text.

Verify signature throw public key and RSA algorithm

Return if signature valid or not.



VerifyBySignature

            Verify Signature by old signature.


Takes 3 input parameters (InFileContent, InSignature, PublicKey) and assign it to Verify_BySignature which return Is Valid or not.


             


Assas_DMS_API


Rest API: -

                                   

AESEncrypt

            Encrypt File by AES algorithm by take structure of encrypt file information as input parameter and return file id.


AESDecrypt

Decrypt File by AES algorithm by take 2 Input parameters (FileId, Key) and return structure of file information.





GenerateNewAESKey

                        Generate a new AES key to use it at encrypt and decrypt methods.


GeneratPrivateKey

          Generate a new RSA private key to use at create signature.



GeneratePublicKey

          Generate a new RSA public key to use at verify signature.



CreateSignarture

          Create Digital Signature and store it in database, take structure of signature needed data and return signature Id and Signature.



VerifySignatureBySignature


          Verify signature by sending signature and new file, take (publickey, Signature, FileContent) as input parameters and return Is valid or not.


VerifySignatureById

          Verify signature by sending signature Id and new file, take (publickey, FileId, FileContent) as input parameters and return Is valid or not.



Create

          Upload the content wrote in the component by take File structure which held file data and return (CreateResponce) structure which consist from (Id, URL).



Download

Download the content wrote in the component by take GUID as input parameter and return file content.





DownloadResizedImage

Download The Content Wrote in The Component by take 3 parameters (GUID, width, height) as input parameters and return file content.


UpdateTempFilesToRegular

Update Temp files to Regular files by take file list as input parameter.



UploadFromHTTPRequest

Upload the content From HTTP Request by take IsTemp as an input parameter and return content.






Assas_DMS_Timer


FileFragmentForAll

            This timer can run by two ways

By Serial

By Month

we control this by “ShardingType” site property, we can also control on number of entities that sharding will hold by two site properties based on type of sharding.

FaragmentSerialCount.

FragmentDaysCount.


FilePurging

Timer run when want to purging current files from database used PurgingDaysCount site property.


TempPurging

Timer run when want to purging temp files from database used TempPurgingDaysCount site property.




1.0.3




Assas Document Management System


File Sharding by two ways:

      Date

      Serial


Document digital signature with RSA PK.

Verify signature by public key with two ways.

          File Id

          Signature

Encrypt Files by AES Algorithm.

Decrypt Files by AES Algorithm.

Generate AES key to use it at encrypt and decrypt.

Generate Private Key to use it at create digital signature.

Generate Public key to use it at Verify signature.


Get Resized Images


Module consist from 4 sub modules: -


Assas_DMS_CS -> Core layer module has database, crud function and service actions for tables.

Assas_DMS_BL -> business layer module has all business logic at service action to use.

Assas_DMS_Timer -> contain timers for fragment and purging.

Assas_DMS_Api -> consist from many APIS to do application Job.




Service Actions: -


File: -

FileCreate

Use to create file and return file Id.

Create_file server action takes for input parameters (File_content, File_name, File_Type, IsTemp), save it and return File_Id to use at any other features.



FileDelete

Use to Delete file with specific Id.

Delete_File Server Action take file_Id and delete it from Database.


 


GetFile

Use to Get file with specific Id.

Get_File Server Action take file_Id and return it from Database.



GetFiles

Use to Get list of files with list of Ids.

Get_Files Server Action take list of file Ids and return with list of files from Database.




Temp: -


UpdateTempToRegular

Use to Update File list from temp to Current file location.


AES: -


AESNewKey

Use to Generat New AES key to use it at encrypt.




AESEncrypt

Encrypt files used AES algorithm.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, AESKey) and assign it to AES_EncryptionAction which return FileId after encrypt it and save in database.


AESDecrypt

Decrypt files used AES algorithm.


Takes 2 input parameters (InFileId, Key) and assign it to AES_DecryptAction which return 3 parameters (InFileContent, InFileType, InFileName).

 


RSA: -


GetRSAEncryptPrivateKey

Generate a new Private RSA key.

           

GetRSAPublicKeyByPrivateKey

Extract the public key from a private key.


File Signature: -


SignFile

Create Digital signature.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, PrivateKey) and assign it to Create_NewSignature which return 2 parameters (FileId, Signature) after Create it and save in database.



VerifyById

            Verify Signature by signature Id.




Takes 3 input parameters (InFileContent, InFileId, PublicKey) and assign it to Verify_SignatureById which return Is Valid or not.


Verify_SignaturebyId

Verify signature using RSA algorithm by Id by steps: -

Get file content by signature Id.

Convert file type from binary to text.

Verify signature throw public key and RSA algorithm

Return if signature valid or not.



VerifyBySignature

            Verify Signature by old signature.


Takes 3 input parameters (InFileContent, InSignature, PublicKey) and assign it to Verify_BySignature which return Is Valid or not.


             


Assas_DMS_API


Rest API: -

                                   

AESEncrypt

            Encrypt File by AES algorithm by take structure of encrypt file information as input parameter and return file id.


AESDecrypt

Decrypt File by AES algorithm by take 2 Input parameters (FileId, Key) and return structure of file information.





GenerateNewAESKey

                        Generate a new AES key to use it at encrypt and decrypt methods.


GeneratPrivateKey

          Generate a new RSA private key to use at create signature.



GeneratePublicKey

          Generate a new RSA public key to use at verify signature.



CreateSignarture

          Create Digital Signature and store it in database, take structure of signature needed data and return signature Id and Signature.



VerifySignatureBySignature


          Verify signature by sending signature and new file, take (publickey, Signature, FileContent) as input parameters and return Is valid or not.


VerifySignatureById

          Verify signature by sending signature Id and new file, take (publickey, FileId, FileContent) as input parameters and return Is valid or not.



Create

          Upload the content wrote in the component by take File structure which held file data and return (CreateResponce) structure which consist from (Id, URL).



Download

Download the content wrote in the component by take GUID as input parameter and return file content.





DownloadResizedImage

Download The Content Wrote in The Component by take 3 parameters (GUID, width, height) as input parameters and return file content.


UpdateTempFilesToRegular

Update Temp files to Regular files by take file list as input parameter.



UploadFromHTTPRequest

Upload the content From HTTP Request by take IsTemp as an input parameter and return content.






Assas_DMS_Timer


FileFragmentForAll

            This timer can run by two ways

By Serial

By Month

we control this by “ShardingType” site property, we can also control on number of entities that sharding will hold by two site properties based on type of sharding.

FaragmentSerialCount.

FragmentDaysCount.


FilePurging

Timer run when want to purging current files from database used PurgingDaysCount site property.


TempPurging

Timer run when want to purging temp files from database used TempPurgingDaysCount site property.




1.0.2




Assas Document Management System


File Sharding by two ways:

      Date

      Serial


Document digital signature with RSA PK.

Verify signature by public key with two ways.

          File Id

          Signature

Encrypt Files by AES Algorithm.

Decrypt Files by AES Algorithm.

Generate AES key to use it at encrypt and decrypt.

Generate Private Key to use it at create digital signature.

Generate Public key to use it at Verify signature.


Get Resized Images


Module consist from 4 sub modules: -


Assas_DMS_CS -> Core layer module has database, crud function and service actions for tables.

Assas_DMS_BL -> business layer module has all business logic at service action to use.

Assas_DMS_Timer -> contain timers for fragment and purging.

Assas_DMS_Api -> consist from many APIS to do application Job.




Service Actions: -


File: -

FileCreate

Use to create file and return file Id.

Create_file server action takes for input parameters (File_content, File_name, File_Type, IsTemp), save it and return File_Id to use at any other features.



FileDelete

Use to Delete file with specific Id.

Delete_File Server Action take file_Id and delete it from Database.


 


GetFile

Use to Get file with specific Id.

Get_File Server Action take file_Id and return it from Database.



GetFiles

Use to Get list of files with list of Ids.

Get_Files Server Action take list of file Ids and return with list of files from Database.




Temp: -


UpdateTempToRegular

Use to Update File list from temp to Current file location.


AES: -


AESNewKey

Use to Generat New AES key to use it at encrypt.




AESEncrypt

Encrypt files used AES algorithm.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, AESKey) and assign it to AES_EncryptionAction which return FileId after encrypt it and save in database.


AESDecrypt

Decrypt files used AES algorithm.


Takes 2 input parameters (InFileId, Key) and assign it to AES_DecryptAction which return 3 parameters (InFileContent, InFileType, InFileName).

 


RSA: -


GetRSAEncryptPrivateKey

Generate a new Private RSA key.

           

GetRSAPublicKeyByPrivateKey

Extract the public key from a private key.


File Signature: -


SignFile

Create Digital signature.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, PrivateKey) and assign it to Create_NewSignature which return 2 parameters (FileId, Signature) after Create it and save in database.



VerifyById

            Verify Signature by signature Id.




Takes 3 input parameters (InFileContent, InFileId, PublicKey) and assign it to Verify_SignatureById which return Is Valid or not.


Verify_SignaturebyId

Verify signature using RSA algorithm by Id by steps: -

Get file content by signature Id.

Convert file type from binary to text.

Verify signature throw public key and RSA algorithm

Return if signature valid or not.



VerifyBySignature

            Verify Signature by old signature.


Takes 3 input parameters (InFileContent, InSignature, PublicKey) and assign it to Verify_BySignature which return Is Valid or not.


             


Assas_DMS_API


Rest API: -

                                   

AESEncrypt

            Encrypt File by AES algorithm by take structure of encrypt file information as input parameter and return file id.


AESDecrypt

Decrypt File by AES algorithm by take 2 Input parameters (FileId, Key) and return structure of file information.





GenerateNewAESKey

                        Generate a new AES key to use it at encrypt and decrypt methods.


GeneratPrivateKey

          Generate a new RSA private key to use at create signature.



GeneratePublicKey

          Generate a new RSA public key to use at verify signature.



CreateSignarture

          Create Digital Signature and store it in database, take structure of signature needed data and return signature Id and Signature.



VerifySignatureBySignature


          Verify signature by sending signature and new file, take (publickey, Signature, FileContent) as input parameters and return Is valid or not.


VerifySignatureById

          Verify signature by sending signature Id and new file, take (publickey, FileId, FileContent) as input parameters and return Is valid or not.



Create

          Upload the content wrote in the component by take File structure which held file data and return (CreateResponce) structure which consist from (Id, URL).



Download

Download the content wrote in the component by take GUID as input parameter and return file content.





DownloadResizedImage

Download The Content Wrote in The Component by take 3 parameters (GUID, width, height) as input parameters and return file content.


UpdateTempFilesToRegular

Update Temp files to Regular files by take file list as input parameter.



UploadFromHTTPRequest

Upload the content From HTTP Request by take IsTemp as an input parameter and return content.






Assas_DMS_Timer


FileFragmentForAll

            This timer can run by two ways

By Serial

By Month

we control this by “ShardingType” site property, we can also control on number of entities that sharding will hold by two site properties based on type of sharding.

FaragmentSerialCount.

FragmentDaysCount.


FilePurging

Timer run when want to purging current files from database used PurgingDaysCount site property.


TempPurging

Timer run when want to purging temp files from database used TempPurgingDaysCount site property.




1.0.1




Assas Document Management System


File Sharding by two ways:

      Date

      Serial


Document digital signature with RSA PK.

Verify signature by public key with two ways.

          File Id

          Signature

Encrypt Files by AES Algorithm.

Decrypt Files by AES Algorithm.

Generate AES key to use it at encrypt and decrypt.

Generate Private Key to use it at create digital signature.

Generate Public key to use it at Verify signature.


Get Resized Images


Module consist from 4 sub modules: -


Assas_DMS_CS -> Core layer module has database, crud function and service actions for tables.

Assas_DMS_BL -> business layer module has all business logic at service action to use.

Assas_DMS_Timer -> contain timers for fragment and purging.

Assas_DMS_Api -> consist from many APIS to do application Job.




Service Actions: -


File: -

FileCreate

Use to create file and return file Id.

Create_file server action takes for input parameters (File_content, File_name, File_Type, IsTemp), save it and return File_Id to use at any other features.



FileDelete

Use to Delete file with specific Id.

Delete_File Server Action take file_Id and delete it from Database.


 


GetFile

Use to Get file with specific Id.

Get_File Server Action take file_Id and return it from Database.



GetFiles

Use to Get list of files with list of Ids.

Get_Files Server Action take list of file Ids and return with list of files from Database.




Temp: -


UpdateTempToRegular

Use to Update File list from temp to Current file location.


AES: -


AESNewKey

Use to Generat New AES key to use it at encrypt.




AESEncrypt

Encrypt files used AES algorithm.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, AESKey) and assign it to AES_EncryptionAction which return FileId after encrypt it and save in database.


AESDecrypt

Decrypt files used AES algorithm.


Takes 2 input parameters (InFileId, Key) and assign it to AES_DecryptAction which return 3 parameters (InFileContent, InFileType, InFileName).

 


RSA: -


GetRSAEncryptPrivateKey

Generate a new Private RSA key.

           

GetRSAPublicKeyByPrivateKey

Extract the public key from a private key.


File Signature: -


SignFile

Create Digital signature.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, PrivateKey) and assign it to Create_NewSignature which return 2 parameters (FileId, Signature) after Create it and save in database.



VerifyById

            Verify Signature by signature Id.




Takes 3 input parameters (InFileContent, InFileId, PublicKey) and assign it to Verify_SignatureById which return Is Valid or not.


Verify_SignaturebyId

Verify signature using RSA algorithm by Id by steps: -

Get file content by signature Id.

Convert file type from binary to text.

Verify signature throw public key and RSA algorithm

Return if signature valid or not.



VerifyBySignature

            Verify Signature by old signature.


Takes 3 input parameters (InFileContent, InSignature, PublicKey) and assign it to Verify_BySignature which return Is Valid or not.


             


Assas_DMS_API


Rest API: -

                                   

AESEncrypt

            Encrypt File by AES algorithm by take structure of encrypt file information as input parameter and return file id.


AESDecrypt

Decrypt File by AES algorithm by take 2 Input parameters (FileId, Key) and return structure of file information.





GenerateNewAESKey

                        Generate a new AES key to use it at encrypt and decrypt methods.


GeneratPrivateKey

          Generate a new RSA private key to use at create signature.



GeneratePublicKey

          Generate a new RSA public key to use at verify signature.



CreateSignarture

          Create Digital Signature and store it in database, take structure of signature needed data and return signature Id and Signature.



VerifySignatureBySignature


          Verify signature by sending signature and new file, take (publickey, Signature, FileContent) as input parameters and return Is valid or not.


VerifySignatureById

          Verify signature by sending signature Id and new file, take (publickey, FileId, FileContent) as input parameters and return Is valid or not.



Create

          Upload the content wrote in the component by take File structure which held file data and return (CreateResponce) structure which consist from (Id, URL).



Download

Download the content wrote in the component by take GUID as input parameter and return file content.





DownloadResizedImage

Download The Content Wrote in The Component by take 3 parameters (GUID, width, height) as input parameters and return file content.


UpdateTempFilesToRegular

Update Temp files to Regular files by take file list as input parameter.



UploadFromHTTPRequest

Upload the content From HTTP Request by take IsTemp as an input parameter and return content.






Assas_DMS_Timer


FileFragmentForAll

            This timer can run by two ways

By Serial

By Month

we control this by “ShardingType” site property, we can also control on number of entities that sharding will hold by two site properties based on type of sharding.

FaragmentSerialCount.

FragmentDaysCount.


FilePurging

Timer run when want to purging current files from database used PurgingDaysCount site property.


TempPurging

Timer run when want to purging temp files from database used TempPurgingDaysCount site property.




1.0.0




Assas Document Management System


File Sharding by two ways:

      Date

      Serial


Document digital signature with RSA PK.

Verify signature by public key with two ways.

          File Id

          Signature

Encrypt Files by AES Algorithm.

Decrypt Files by AES Algorithm.

Generate AES key to use it at encrypt and decrypt.

Generate Private Key to use it at create digital signature.

Generate Public key to use it at Verify signature.


Get Resized Images


Module consist from 4 sub modules: -


Assas_DMS_CS -> Core layer module has database, crud function and service actions for tables.

Assas_DMS_BL -> business layer module has all business logic at service action to use.

Assas_DMS_Timer -> contain timers for fragment and purging.

Assas_DMS_Api -> consist from many APIS to do application Job.




Service Actions: -


File: -

FileCreate

Use to create file and return file Id.

Create_file server action takes for input parameters (File_content, File_name, File_Type, IsTemp), save it and return File_Id to use at any other features.



FileDelete

Use to Delete file with specific Id.

Delete_File Server Action take file_Id and delete it from Database.


 


GetFile

Use to Get file with specific Id.

Get_File Server Action take file_Id and return it from Database.



GetFiles

Use to Get list of files with list of Ids.

Get_Files Server Action take list of file Ids and return with list of files from Database.




Temp: -


UpdateTempToRegular

Use to Update File list from temp to Current file location.


AES: -


AESNewKey

Use to Generat New AES key to use it at encrypt.




AESEncrypt

Encrypt files used AES algorithm.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, AESKey) and assign it to AES_EncryptionAction which return FileId after encrypt it and save in database.


AESDecrypt

Decrypt files used AES algorithm.


Takes 2 input parameters (InFileId, Key) and assign it to AES_DecryptAction which return 3 parameters (InFileContent, InFileType, InFileName).

 


RSA: -


GetRSAEncryptPrivateKey

Generate a new Private RSA key.

           

GetRSAPublicKeyByPrivateKey

Extract the public key from a private key.


File Signature: -


SignFile

Create Digital signature.

Takes 5 input parameters (InFileContent, InFileName, InFileType, IsTemp, PrivateKey) and assign it to Create_NewSignature which return 2 parameters (FileId, Signature) after Create it and save in database.



VerifyById

            Verify Signature by signature Id.




Takes 3 input parameters (InFileContent, InFileId, PublicKey) and assign it to Verify_SignatureById which return Is Valid or not.


Verify_SignaturebyId

Verify signature using RSA algorithm by Id by steps: -

Get file content by signature Id.

Convert file type from binary to text.

Verify signature throw public key and RSA algorithm

Return if signature valid or not.



VerifyBySignature

            Verify Signature by old signature.


Takes 3 input parameters (InFileContent, InSignature, PublicKey) and assign it to Verify_BySignature which return Is Valid or not.


             


Assas_DMS_API


Rest API: -

                                   

AESEncrypt

            Encrypt File by AES algorithm by take structure of encrypt file information as input parameter and return file id.


AESDecrypt

Decrypt File by AES algorithm by take 2 Input parameters (FileId, Key) and return structure of file information.





GenerateNewAESKey

                        Generate a new AES key to use it at encrypt and decrypt methods.


GeneratPrivateKey

          Generate a new RSA private key to use at create signature.



GeneratePublicKey

          Generate a new RSA public key to use at verify signature.



CreateSignarture

          Create Digital Signature and store it in database, take structure of signature needed data and return signature Id and Signature.



VerifySignatureBySignature


          Verify signature by sending signature and new file, take (publickey, Signature, FileContent) as input parameters and return Is valid or not.


VerifySignatureById

          Verify signature by sending signature Id and new file, take (publickey, FileId, FileContent) as input parameters and return Is valid or not.



Create

          Upload the content wrote in the component by take File structure which held file data and return (CreateResponce) structure which consist from (Id, URL).



Download

Download the content wrote in the component by take GUID as input parameter and return file content.





DownloadResizedImage

Download The Content Wrote in The Component by take 3 parameters (GUID, width, height) as input parameters and return file content.


UpdateTempFilesToRegular

Update Temp files to Regular files by take file list as input parameter.



UploadFromHTTPRequest

Upload the content From HTTP Request by take IsTemp as an input parameter and return content.






Assas_DMS_Timer


FileFragmentForAll

            This timer can run by two ways

By Serial

By Month

we control this by “ShardingType” site property, we can also control on number of entities that sharding will hold by two site properties based on type of sharding.

FaragmentSerialCount.

FragmentDaysCount.


FilePurging

Timer run when want to purging current files from database used PurgingDaysCount site property.


TempPurging

Timer run when want to purging temp files from database used TempPurgingDaysCount site property.