Class RecordSecurityLock

java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.security.RecordSecurityLock
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
MultiRecordSecurityLock

public class RecordSecurityLock extends Object implements Cloneable
Define (for a table) a lock that applies to records in the table - e.g., a key type, and a field that has values for that key. Here's an example of how the joinNameChain should be set up: given a table: orderLineItemExtrinsic (that's 2 away from order, where the security field is): - recordSecurityLock.fieldName = order.clientId - recordSecurityLock.joinNameChain = [orderJoinOrderLineItem, orderLineItemJoinOrderLineItemExtrinsic] that is - what's the chain that takes us FROM the security fieldName TO the table with the lock. LockScope controls what the lock prevents users from doing without a valid key. - READ_AND_WRITE means that users cannot read or write records without a valid key. - WRITE means that users cannot write records without a valid key (but they can read them).