Authorization
An authorization clause in an object module lets us specify who may use the view.
An authorization clause designates an object set that includes the identity of clients authorized to use the view.
- An object set in the application.
- Example: “Proprietor” limits the visible services and and data of the object module to proprietors.
- We can introduce an object set for this purpose.
- Variable specialization of an object set in the application.
- Example: “x:Guest” limits the use of the object module to the subset of guests in x—likely only one guest.
- In this case, the view itself may depend on x (e.g., we may have the constraint “GuestNr(y).Guest = x” where y is the guest number of the client currently using the view).