Make it possible to suppress IDL fields
authorMike Rylander <mrylander@gmail.com>
Wed, 10 Oct 2012 21:36:52 +0000 (17:36 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 8 Nov 2012 18:22:12 +0000 (13:22 -0500)
commit125697b0d5cb7efc9ee1440a0fa93dacaa41e27f
tree7583a34a59cb665f8e68606743861d2ec3b545bb
parent8dfb887686cb7a81a09b46c9d917c150bdd14d7a
Make it possible to suppress IDL fields

Some clients of external services, particularly pcrud and reporter-store,
need to be able to access tables that contain columns we'd rather restrict.
For instance, the passwd field on actor.usr.

To effect this feature we provide a blacklist attribute for fields, called
suppress_controller, which works in the same way as the class controller
attribute but names controllers not allowed to use the field.  When the field
is explicitly named in a query (fieldmapper select block or json_query) an
error is thrown, and suppressed fields are ingored in general fieldmapper
search/retreive requests.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/examples/fm_IDL.xml
Open-ILS/examples/fm_IDL.xsd
Open-ILS/src/c-apps/oils_idl-core.c
Open-ILS/src/c-apps/oils_sql.c
Open-ILS/web/reports/xul/source-browse.js
Open-ILS/web/reports/xul/source-setup.js