The FMP class is a factory for creating various object-oriented framework models.
class FMP
Property | Description |
connection |
Builder object for the FMPConnection class. var connection: FMPConnection.Builder { get } |
user | Builder object for the FMPUser class. var user: FMPUser.Builder { get } |
scheme | Builder object for the FMPScheme class. var scheme: FMPScheme.Builder { get } |
query | Builder object for the FMPQuery class. var query: FMPQuery.Builder { get } |
web | Builder object for the FMPWeb class. var web: FMPWeb.Builder { get } |
file | Builder object for the FMPFile class. var file: FMPFile.Builder { get } |
dss | Builder object for the FMPDSS class. var dss: FMPDSS.Builder { get } |
certificate | Builder object for the FMPDSS.Certificate class. var certificate: FMPDSS.Certificate.Builder { get } |
push | Builder object for the FMPPush class. var push: FMPPush.Builder { get } |
database | Builder object for the FMPDatabase class. var database: FMPDatabase.Builder { get } |
resource | Builder object for the FMPResource class. var resource: FMPResource.Builder { get } |
table | Builder object for the FMPTable class. var table: FMPTable.Builder { get } |
transaction | Builder object for the FMPTransaction class. var transaction: FMPTransaction.Builder { get } |
log | Builder object for the FMPLog class. var log: FMPLog.Builder { get } |
state | Builder object for the FMPState class. var state: FMPState.Builder { get } |
version | The current framework version. var version: String { get } |
Method | Description |
reEncrypt(withKey:) |
Re-encryption of databases and files created in the application local directory using framework methods. func reEncrypt(withKey key: String) throws -> Bool Parameters:
|
Objects initialization:
// Get instance of the FMP class
let fmp: FMP = FMP.Builder().build()
// Get instance of the FMPFile class
let folder: FMPFile = fmp.file
.isDirectory()
...
.build()
Get framework version:
// Get instance of the FMP class
let fmp: FMP = FMP.Builder().build()
// Get framework version
let version: String = fmp.version // "v 21.06(1)"
Re-encryption of databases and files:
// Get instance of the FMP class
let fmp: FMP = FMP.Builder().build()
// Re-encrypt databases and files
do {
let success: Bool = try fmp.reEncrypt(withKey: "key")
} catch let error {
print(error.localizedDescription)
}
See also: