{
    "title": "yade filter",
    "id": "schemas/order/transferFilter",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.yade.TransferFilter",
    "type": "object",
    "properties": {
        "jobschedulerId": {
            "type": "string"
        },
        "transferIds": {
            "type": "array",
            "items": {
                "id": "schemas/common/nonNegativeLong",
                "type": "string",
                "format": "utc-millisec"
            }
        },
        "compact": {
            "id": "schemas/common/compactParam",
            "description": "controls if the object view is compact or detailed",
            "type": "boolean",
            "default": false
        },
        "regex": {
            "id": "schemas/common/regexFilter",
            "description": "regular expression to filter JobScheduler objects by matching the path",
            "type": "string"
        },
        "profiles": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "mandator": {
            "type": "string"
        },
        "states": {
            "type": "array",
            "items": {
                "id": "schemas/yade/transferStateText",
                "javaType": "com.sos.joc.model.yade.TransferStateText",
                "type": "string",
                "enum": [
                    "SUCCESSFUL",
                    "FAILED",
                    "INCOMPLETE"
                ]
            }
        },
        "operations": {
            "type": "array",
            "items": {
                "id": "schemas/yade/operation",
                "javaType": "com.sos.joc.model.yade.Operation",
                "type": "string",
                "enum": [
                    "COPY",
                    "MOVE",
                    "GETLIST",
                    "RENAME",
                    "COPYTOINTERNET",
                    "COPYFROMINTERNET"
                ]
            }
        },
        "dateFrom": {
            "type": "string",
            "pattern": "^(0|([0-9-]+[smhdwMy])+|\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(,\\d{1,3})?)(Z|[+-]\\d{2}(:?\\d{2})?)?$"
        },
        "dateTo": {
            "type": "string",
            "pattern": "^(0|([0-9-]+[smhdwMy])+|\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(,\\d{1,3})?)(Z|[+-]\\d{2}(:?\\d{2})?)?$"
        },
        "timeZone": {
            "description": "see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones",
            "type": "string"
        },
        "limit": {
            "description": "only for db history urls to restrict the number of responsed records; -1=unlimited",
            "type": "integer",
            "default": 10000
        },
        "hasIntervention": {
            "type": "boolean"
        },
        "isIntervention": {
            "type": "boolean"
        },
        "sources": {
            "type": "array",
            "items": {
                "id": "schemas/yade/protocolFragment",
                "javaType": "com.sos.joc.model.yade.ProtocolFragment",
                "type": "object",
                "description": "compact=true -> only required fields",
                "required": [
                    "protocol",
                    "host"
                ],
                "properties": {
                    "host": {
                        "type": "string"
                    },
                    "protocol": {
                        "id": "schemas/yade/protocol",
                        "javaType": "com.sos.joc.model.yade.Protocol",
                        "type": "string",
                        "enum": [
                            "LOCAL",
                            "FTP",
                            "FTPS",
                            "SFTP",
                            "HTTP",
                            "HTTPS",
                            "WEBDAV",
                            "WEBDAVS",
                            "SMB"
                        ]
                    },
                    "port": {
                        "id": "schemas/common/nonNegativeInteger",
                        "type": "integer",
                        "minimum": 0
                    },
                    "account": {
                        "type": "string"
                    }
                }
            }
        },
        "targets": {
            "type": "array",
            "items": {
                "id": "schemas/yade/protocolFragment",
                "javaType": "com.sos.joc.model.yade.ProtocolFragment",
                "type": "object",
                "description": "compact=true -> only required fields",
                "required": [
                    "protocol",
                    "host"
                ],
                "properties": {
                    "host": {
                        "type": "string"
                    },
                    "protocol": {
                        "id": "schemas/yade/protocol",
                        "javaType": "com.sos.joc.model.yade.Protocol",
                        "type": "string",
                        "enum": [
                            "LOCAL",
                            "FTP",
                            "FTPS",
                            "SFTP",
                            "HTTP",
                            "HTTPS",
                            "WEBDAV",
                            "WEBDAVS",
                            "SMB"
                        ]
                    },
                    "port": {
                        "id": "schemas/common/nonNegativeInteger",
                        "type": "integer",
                        "minimum": 0
                    },
                    "account": {
                        "type": "string"
                    }
                }
            }
        },
        "sourceFilesRegex": {
            "id": "schemas/common/regexFilter",
            "description": "regular expression to filter JobScheduler objects by matching the path",
            "type": "string"
        },
        "targetFilesRegex": {
            "id": "schemas/common/regexFilter",
            "description": "regular expression to filter JobScheduler objects by matching the path",
            "type": "string"
        },
        "sourceFiles": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "targetFiles": {
            "type": "array",
            "items": {
                "type": "string"
            }
        }
    }
}