User Tools

Site Tools


tnt2:sysdoc:manifest:readers:filereader

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tnt2:sysdoc:manifest:readers:filereader [2019/10/25 09:32] (current)
hubbe created
Line 1: Line 1:
 +====== Manifest Importer Service - FileReader ======
  
 +The FileReader reads a file from a configured file area. 
 +
 +==== Configuration ====
 +
 +<code javascript manifestsources.filereader>​
 +{
 +        "​type"​ : "​file",​
 +        "​description"​ : "File importer service",​
 +        "​sendercode"​ : "​SourceCode",​
 +        "​path"​ : "/​opt/​node/​manifestImport",​
 +        "​localarchiveto"​ : "/​opt/​node/​manifestArchive",​
 +        "​active"​ : true,
 +        "​filter"​ : [
 +                "<​name>​[^<​]*mySite[^>​]*</​name>​]",​
 +                "<​city>​[^<​]*City</​city>",​
 +                "<​country>​se</​country>"​
 +        ]
 +}
 +</​code>​
 +
 +Description:​
 +  * type: "​file"​ - specifies the type of configuration,​ this configuration is for the FileReader
 +  * description:​ Plaintext description of this configuration
 +  * sendercode: A code to set in the imported manifest data to identify the source of the manifest
 +  * path: The file path where to look for manifest files
 +  * localarchiveto:​ A file path where to move the imported manifest files to for archiving purpouses
 +  * active: boolean, whether to use this configuration or not
 +  * filter: A set of REGEX rules to match, if the read XML file doesn'​t match all the set rules it is ignored and will probably be picked up by some other manifest importer service
tnt2/sysdoc/manifest/readers/filereader.txt ยท Last modified: 2019/10/25 09:32 by hubbe