select.sql 1.0 KB

1234567891011121314151617181920212223
  1. -- Not required. Just shows the sort of queries being sent to DB.
  2. select ACL_OBJECT_IDENTITY.OBJECT_ID_IDENTITY, ACL_ENTRY.ACE_ORDER,
  3. ACL_OBJECT_IDENTITY.ID as ACL_ID,
  4. ACL_OBJECT_IDENTITY.PARENT_OBJECT,
  5. ACL_OBJECT_IDENTITY,ENTRIES_INHERITING,
  6. ACL_ENTRY.ID as ACE_ID, ACL_ENTRY.MASK, ACL_ENTRY.GRANTING, ACL_ENTRY.AUDIT_SUCCESS, ACL_ENTRY.AUDIT_FAILURE,
  7. ACE_SID.PRINCIPAL as ACE_PRINCIPAL, ACE_SID.SID as ACE_SID,
  8. ACL_SID.PRINCIPAL as ACL_PRINCIPAL, ACL_SID.SID as ACL_SID,
  9. ACL_CLASS.CLASS
  10. from ACL_OBJECT_IDENTITY, ACL_ENTRY, ACL_SID ACE_SID, ACL_SID ACL_SID, ACL_CLASS
  11. where ACL_ENTRY.ACL_OBJECT_IDENTITY = ACL_OBJECT_IDENTITY.ID
  12. and ACE_SID.ID = ACL_ENTRY.SID
  13. and ACL_SID.ID = ACL_OBJECT_IDENTITY.OWNER_SID
  14. and ACL_CLASS.ID = ACL_OBJECT_IDENTITY.OBJECT_ID_CLASS
  15. and (
  16. (ACL_OBJECT_IDENTITY.OBJECT_ID_IDENTITY = 1
  17. and ACL_CLASS.CLASS = 'sample.contact.Contact')
  18. or
  19. (ACL_OBJECT_IDENTITY.OBJECT_ID_IDENTITY = 2
  20. and ACL_CLASS.CLASS = 'sample.contact.Contact')
  21. ) order by ACL_ENTRY.ACL_OBJECT_IDENTITY asc, ACL_ENTRY.ACE_ORDER asc