Class Privilege

java.lang.Object
com.sap.cds.services.utils.model.Privilege

public class Privilege extends Object
A Privilege specifies access rules for operations. A Where clause can used to define instance-based access. grant: one or more operations (as a string or an array of strings) to: (optional) one or more user roles the privilege is granted to where: (optional) a condition that further restricts access example: { grant: ['READ','WRITE'], to: 'admin' } { grant: 'READ', where: 'buyer = $user' }