project BLF > class BSODViolationRule2 > business logic query ViolationsResourcesByUser


Parameters


iiCompanyIdintegerCompany id
iiDomainIdinteger
iiUserIdinteger


query condition


  each SODViolation2 where
SODViolation2.Company_Id = iiCompanyId AND
SODViolation2.Usr_ID = iiUserId AND
(SODViolation2.Domain_ID = iiDomainId OR
SODViolation2.Domain_ID = 0 ) AND
(SODViolation2.Company_ID = iiCompanyId OR
SODViolation2.Company_ID = 0 )

      first Company (outer-join) where
Company.Company_Id = iiCompanyId AND
Company.Company_ID = SODViolation2.Company_ID AND

      first Domains (outer-join) where
Domains.Domain_ID = SODViolation2.Domain_ID AND

      first Role1 (inner-join) where
Role1.Role_ID = SODViolation2.Role1_ID AND

      first Role2 (inner-join) where
Role2.Role_ID = SODViolation2.Role2_ID AND

      first SODCategory1 (inner-join) where
SODCategory1.SODCategory_ID = SODViolation2.SODCategory1_ID AND

      first SODCategory2 (inner-join) where
SODCategory2.SODCategory_ID = SODViolation2.SODCategory2_ID AND

      first SODExclusion (inner-join) where
SODExclusion.SODCategory1_ID = SODViolation2.SODCategory1_ID AND
SODExclusion.SODCategory2_ID = SODViolation2.SODCategory2_ID AND

      each SODViolation2R (inner-join) where
SODViolation2R.SODViolation2_ID = SODViolation2.SODViolation2_ID AND

          first Resources (inner-join) where
Resources.Resource_ID = SODViolation2R.Resource_ID AND


query resultset tqViolationsResourcesByUser


field namedata typedb fielddescription
tcCompanyCodecharacterCompany.CompanyCodeEntity Code
tcDomainCodecharacterDomains.DomainCodeDomain
tcResourceLabelcharacterResources.ResourceLabelResource Label
tcResourceURIcharacterResources.ResourceURIUniversal Resource Identification
tcRole1NamecharacterRole1.RoleNameRole Name
tcRole2NamecharacterRole2.RoleNameRole Name
tiSODCategory_IDintegerSODCategory1.SODCategory_IDrecord ID
tiSODCategory_ID1integerSODCategory2.SODCategory_IDrecord ID
tcSODCategoryCode1characterSODCategory1.SODCategoryCodeSOD category code
tcSODCategoryCode2characterSODCategory2.SODCategoryCodeSOD category code
tcSODCategoryDescription1characterSODCategory1.SODCategoryDescriptionSOD category description
tcSODCategoryDescription2characterSODCategory2.SODCategoryDescriptionSOD category description
tcSODExclusionLevelcharacterSODExclusion.SODExclusionLevelExclusion Level
tiSODViolation2RCategoryintegerSODViolation2R.SODViolation2RCategoryCategory nbr (1 or 2)


Internal usage


BLF
method BSODReport.SODViolations