Qorus Integration Engine® Enterprise Edition 6.0.1_dev
|
This class is a helper class that allows workflow sensitive data to be read and updated atomically; the write lock for the data is grabbed in the constructor and released in the destructor. More...
Private:Internal Member Methods | |
destructor () | |
destroys the object and releases the write lock | |
auto | get (string skey, string svalue, auto field) |
returns the value one or more keys in the workflow sensitive data hash for the given sensitive data key and value More... | |
hash< auto > | getFromAlias (string alias, auto field) |
returns a hash with the corresponding sensitive data key and sensitive data value as well as the value of one or more keys in the workflow sensitive data hash for the given sensitive data alias corresponding to a sensitive data key and value More... | |
hash< auto > | getMetadata (string skey, string svalue) |
Returns the sensitive metadata hash for the given sensitive data key and value if present, otherwise returns an empty hash. More... | |
hash< auto > | getMetadataFromAlias (string alias) |
returns a hash with the corresponding sensitive data key and sensitive data value as well as the value of the sensitive metadata hash for the given sensitive data alias corresponding to a sensitive data key and value More... | |
hash< auto > | getAliases () |
returns a hash of all sensitive data aliases for the current order or an empty hash if there are none More... | |
hash< auto > | getKeyValues () |
Returns a hash of sensitive data keys and values saved against the order; the sensitive data hashes themselves are not returned, just the information used to index sensitive data against the order. More... | |
nothing | replace (string skey, string svalue, *hash< auto > new_data, *softlist aliases, *hash< auto > meta) |
replaces sensitive data for the sensitive key value given; the data has already been committed to the database when the method returns More... | |
nothing | replaceMulti (hash< string, hash< string, hash< SensitiveDataInfo > > > sinfo) |
replaces sensitive data for one more more sensitive key values given; the data has already been committed to the database when the method returns More... | |
nothing | replaceFromAlias (string alias, *hash< auto > new_data, *hash< auto > meta) |
replaces sensitive data for the sensitive alias given; the data has already been committed to the database when the method returns More... | |
nothing | update (string skey, string svalue, hash< auto > new_data, *softlist aliases, *hash< auto > meta) |
Updates or creates the values of one or more keys in the workflow order's sensitive data hash for the given sensitive data key and value; the data has already been committed to the database when the method returns. More... | |
nothing | updateFromAlias (string alias, hash< auto > new_data, *hash< auto > meta) |
Updates or creates the values of one or more keys in the workflow order's sensitive data hash for the given sensitive data alias; the data has already been committed to the database when the method returns. More... | |
bool | deleteKey (string skey, string svalue, softlist< softstring > keysv) |
Deletes one or more keys from the workflow order data instance’s sensitive data hash for the given sensitive data key and value; the changes have already been committed to the database when the method returns. More... | |
bool | del (string skey, string svalue) |
Deletes the sensitive data hash for the given sensitive data key and value; the changes have already been committed to the database when the method returns. More... | |
This class is a helper class that allows workflow sensitive data to be read and updated atomically; the write lock for the data is grabbed in the constructor and released in the destructor.
Calls to the following workflow API functions related to sensitive data can be made normally while this object exists and the write lock is held.
wf.SensitiveDataHelper
|
private:internal |
Deletes the sensitive data hash for the given sensitive data key and value; the changes have already been committed to the database when the method returns.
skey | the type of sensitive key provided in svalue |
svalue | the value of the sensitive data key identified by skey |
|
private:internal |
Deletes one or more keys from the workflow order data instance’s sensitive data hash for the given sensitive data key and value; the changes have already been committed to the database when the method returns.
skey | the type of sensitive key provided in svalue |
svalue | the value of the sensitive data key identified by skey |
keysv | a single key or a list of keys to delete in the workflow order's sensitive data hash for the given sensitive key-value pair |
|
private:internal |
returns the value one or more keys in the workflow sensitive data hash for the given sensitive data key and value
skey | the type of value provided in svalue |
svalue | the value of the sensitive data key identified by skey |
field | zero or more string key fields to return |
|
private:internal |
returns a hash of all sensitive data aliases for the current order or an empty hash if there are none
|
private:internal |
returns a hash with the corresponding sensitive data key and sensitive data value as well as the value of one or more keys in the workflow sensitive data hash for the given sensitive data alias corresponding to a sensitive data key and value
alias | the alias to lookup; if the alias is unknown, an INVALID-ALIAS exception is raised |
field | zero or more string key fields to return |
skey:
(string) the sensitive data key typesvalue:
(string) the sensitive data value (considered sensitive itself)value:
the value of the entire hash (if no arguments were requested), or a hash of the requested keys (if more than one key was requested), or the given value (if set, if one value is requested)INVALID-ALIAS | the given alias is unknown |
|
private:internal |
Returns a hash of sensitive data keys and values saved against the order; the sensitive data hashes themselves are not returned, just the information used to index sensitive data against the order.
|
private:internal |
Returns the sensitive metadata hash for the given sensitive data key and value if present, otherwise returns an empty hash.
skey | the type of sensitive key provided in svalue |
svalue | the value of the sensitive data key identified by skey |
|
private:internal |
returns a hash with the corresponding sensitive data key and sensitive data value as well as the value of the sensitive metadata hash for the given sensitive data alias corresponding to a sensitive data key and value
alias | the alias to lookup; if the alias is unknown, an INVALID-ALIAS exception is raised |
INVALID-ALIAS | the given alias is unknown |
|
private:internal |
replaces sensitive data for the sensitive key value given; the data has already been committed to the database when the method returns
skey | the type of value provided in svalue; must not be longer than 100 bytes long or a SENSITIVE-DATA-ERROR exception is raised |
svalue | the value of the sensitive data key identified by skey; if this string is empty or longer than 100 bytes, a SENSITIVE-DATA-ERROR exception is raised |
new_data | the data to use to replace the sensitive data hash for the given sensitive data key and value |
aliases | zero or more aliases for the sensitive key value given |
meta | optional sensitve data metadata with the following recommended keys:
|
SENSITIVE-DATA-ERROR | no sensitive key value was provided; sensitive key or alias value too long (100 bytes maximum length in the encoding used by the system schema) |
|
private:internal |
replaces sensitive data for the sensitive alias given; the data has already been committed to the database when the method returns
alias | the sensitive data alias; must be an existing alias or an INVALID-ALIAS exception is raised |
new_data | the data to use to replace the sensitive data hash for the given sensitive data alias |
meta | optional sensitve data metadata with the following recommended keys:
|
INVALID-ALIAS | the given alias is unknown |
|
private:internal |
replaces sensitive data for one more more sensitive key values given; the data has already been committed to the database when the method returns
sinfo | a hash keyed by sensitive data key, where each value is a hash keyed by sensitive data value, where each value of that hash is a SensitiveDataInfo hash giving the sensitive information for the given sensitive data key and value |
SENSITIVE-DATA-ERROR | no sensitive key value was provided; sensitive key or alias value too long (100 bytes maximum length in the encoding used by the system schema) |
|
private:internal |
Updates or creates the values of one or more keys in the workflow order's sensitive data hash for the given sensitive data key and value; the data has already been committed to the database when the method returns.
skey | the type of value provided in svalue; must not be longer than 100 bytes long or a SENSITIVE-DATA-ERROR exception is raised |
svalue | the value of the sensitive data key identified by skey; if this string is empty or longer than 100 bytes, a SENSITIVE-DATA-ERROR exception is raised |
new_data | the data to create or update against skey; existing keys will be replaced; new keys will be added; if the new hash does not refer to existing keys, then those existing keys remain untouched |
aliases | zero or more string aliases for the sensitive key and value given |
meta | optional sensitve data metadata with the following recommended keys:
|
SENSITIVE-DATA-ERROR | no sensitive key value was provided; sensitive key or alias value too long (100 bytes maximum length in the encoding used by the system schema) |
|
private:internal |
Updates or creates the values of one or more keys in the workflow order's sensitive data hash for the given sensitive data alias; the data has already been committed to the database when the method returns.
alias | the sensitive data alias; must be an existing alias or an INVALID-ALIAS exception is raised |
new_data | the data to create or update against skey; existing keys will be replaced; new keys will be added; if the new hash does not refer to existing keys, then those existing keys remain untouched |
meta | optional sensitve data metadata with the following recommended keys:
|
INVALID-ALIAS | the given alias is unknown |