func doAccessRuleFactory(identity, accessMask, isInherited, inheritanceFlags, propagationFlags, type) if(linked("onAccessRuleFactory")) event("onAccessRuleFactory", this.codename + '.AccessRuleFactory(' + d("identity") + ', ' + this.props("AccessMask").value + ', ' + lower(this.props("Inherited").value) + ', InheritanceFlags.' + this.props("InheritanceFlags").value + ', PropagationFlags.' + this.props("PropagationFlags").value + ', AccessControlType.' + this.props("AccessType").value + ')') else blk.println(this.codename, '.AccessRuleFactory(', d("identity"), ', ', this.props("AccessMask").value, ', ', lower(this.props("Inherited").value), ', InheritanceFlags.', this.props("InheritanceFlags").value, ', PropagationFlags.' + this.props("PropagationFlags").value, ', AccessControlType.', this.props("AccessType").value, ');') end end func doAuditRuleFactory(identity, accessMask, isInherited, inheritanceFlags, propagationFlags, flags) if(linked("onAuditRuleFactory")) event("onAuditRuleFactory", this.codename + '.AuditRuleFactory(' + d("identity") + ', ' + this.props("AccessMask").value + ', ' + lower(this.props("Inherited").value) + ', InheritanceFlags.' + this.props("InheritanceFlags").value + ', PropagationFlags.' + this.props("PropagationFlags").value + ', AuditFlags.' + this.props("AuditFlags").value + ')') else blk.println(this.codename, '.AuditRuleFactory(', d("identity"), ', ', this.props("AccessMask").value, ', ', lower(this.props("Inherited").value), ', InheritanceFlags.', this.props("InheritanceFlags").value, ', PropagationFlags.', this.props("PropagationFlags").value, ', AuditFlags.', this.props("AuditFlags").value, ');') end end func doGetGroup(targetType) if(linked("onGetGroup")) event("onGetGroup", this.codename + '.GetGroup(' + targetType + ')') else blk.println(this.codename + '.GetGroup(', targetType, ');') end end func doGetOwner(targetType) if(linked("onGetOwner")) event("onGetOwner", this.codename + '.GetOwner(' + targetType + ')') else blk.println(this.codename + '.GetOwner(', targetType, ');') end end func GetSecurityDescriptorBinaryForm return(this.codename + '.GetSecurityDescriptorBinaryForm()') end func GetSecurityDescriptorSddlForm(includeSections) return(this.codename + '.GetSecurityDescriptorSddlForm(AccessControlSections.' + this.props("IncludeSections").value + ')') end func IsSddlConversionSupported return('ObjectSecurity.IsSddlConversionSupported()') end func doModifyAccessRule(modification, rule, modified) if(linked("onModifyAccessRule")) event("onModifyAccessRule", this.codename + '.ModifyAccessRule(AccessControlModification.' + this.props("Modification").value + ', ' + d("rule") + ', out ' + d("modified") + ')') else blk.println(this.codename + '.ModifyAccessRule(AccessControlModification.', this.props("Modification").value + ', ' + d("rule") + ', out ' + d("modified") + ');') end end func doModifyAuditRule(modification, rule, modified) if(linked("onModifyAuditRule")) event("onModifyAuditRule", this.codename + '.ModifyAuditRule(AccessControlModification.' + this.props("Modification").value + ', ' + d("rule") + ', out ' + d("modified") + ')') else blk.println(this.codename + '.ModifyAuditRule(AccessControlModification.', this.props("Modification").value + ', ' + d("rule") + ', out ' + d("modified") + ');') end end func doPurgeAccessRules(identity) blk.println(this.codename, '.PurgeAccessRules(', d("identity"), ');') end func doPurgeAuditRules(identity) blk.println(this.codename, '.PurgeAuditRules(', d("identity"), ');') end func doSetAccessRuleProtection(isProtected, preserveInheritance) blk.println(this.codename, '.SetAccessRuleProtection(', lower(this.props("Protected").value), ', ', lower(this.props("PreserveInheritance").value), ');') end func doSetAuditRuleProtection(isProtected, preserveInheritance) blk.println(this.codename, '.SetAuditRuleProtection(', lower(this.props("Protected").value), ', ', lower(this.props("PreserveInheritance").value), ');') end func doSetGroup(identity) blk.println(this.codename, '.SetGroup(', d("identity"), ');') end func doSetOwner(identity) blk.println(this.codename, '.SetOwner(', d("identity"), ');') end func doSetSecurityDescriptorSddlForm(sddlForm) blk.println(this.codename, '.SetSecurityDescriptorSddlForm(', d("sddlForm"), ');') end func doSetSecurityDescriptorSddlForm2(sddlForm, includeSections) blk.println(this.codename, '.SetSecurityDescriptorSddlForm(', d("sddlForm"), ', AccessControlSections.' + this.props("IncludeSections").value, ');') end