Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

OldIdFunctions: Difference between revisions

From Catglobe Wiki
No edit summary
Blanked the page
Tag: Blanking
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{| class="tableintopic" style="border-collapse: collapse; width: 1350px;" cellpadding="2"
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" bgcolor="#C0C0C0" | '''Obsolete functions''' <br> using Id
| style="border: 1px solid; width: 370.7px;" bgcolor="#C0C0C0" | '''Replace with functions''' <br> using ResourceId
| style="border: 1px solid; width: 453.183px;" bgcolor="#C0C0C0" | '''Note'''


|- valign="top" align="left"
| style="border: 1px solid;" | [[updateUserPermission|updateUserPermission(resourceRId, {{userId1,permission},{userId2,permission}})]]
| style="border: 1px solid;" | [[updateUserResourceIdPermission|updateUserResourceIdPermission(resourceRId, {userRId1:permission,userRId2:permission})]]
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[QAS_class|QAS.UserId]]
| style="border: 1px solid;" | [[QAS_class|QAS.UserResourceId]]
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[User_class|User_GetResourceIdFromUserId(userId)]]
| style="border: 1px solid;" | Obsolete
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[sendBulkMail|sendBulkMail(bulkMailId])]]<br>[[sendBulkMail|sendBulkMail(bulkMailId, maxToSend)]]
| style="border: 1px solid;" | [[BulkMail_class|BulkMail.Send()]]<br>[[BulkMail_class|BulkMail.SendBulkMail(maxToSend, false, false)]]
| style="border: 1px solid;" | New class
                             
|- valign="top" align="left"
| style="border: 1px solid;" | [[sendBulkMailSyncronious|sendBulkMailSyncronious(bulkMailId)]] <br> [[sendBulkMailSyncronious|sendBulkMailSyncronious(bulkMailId, maxToSend)]]
| style="border: 1px solid;" | [[BulkMail_class|BulkMail.SendSyncronious()]] <br>[[BulkMail_class|BulkMail.SendBulkMail(maxToSend, false, true)]]
| style="border: 1px solid;" | New class
|- valign="top" align="left"
| style="border: 1px solid;" | [[sendTestBulkMail|sendTestBulkMail(bulkMailId)]] <br>[[sendTestBulkMail|sendTestBulkMail(bulkMailId, maxToSend)]]
| style="border: 1px solid;" | [[BulkMail_class|BulkMail.SendBulkMail(maxToSend, true, false)]]
| style="border: 1px solid;" | New class
|- valign="top" align="left"
| style="border: 1px solid;" | [[sendTestBulkMailSyncronious|sendTestBulkMailSyncronious(bulkMailId)]]<br>[[sendTestBulkMailSyncronious|sendTestBulkMailSyncronious(bulkMailId, maxToSend)]]
| style="border: 1px solid;" | [[BulkMail_class|BulkMail.SendBulkMail(maxToSend, true, true)]]
| style="border: 1px solid;" | New class
|- valign="top" align="left"
| style="border: 1px solid;" | [[setBulkMailFromGlobalEmailAlias|setBulkMailFromGlobalEmailAlias(bulkMailId, globalEmailAliasId)]]
| style="border: 1px solid;" | [[BulkMail_class|BulkMail.From]] just allow get not set
| style="border: 1px solid;" | New class
|- valign="top" align="left"
| style="border: 1px solid;" | [[setBulkMailFromResource|setBulkMailFromResource(bulkMailId, resourceRId)]]
| style="border: 1px solid;" | [[BulkMail_class|BulkMail.From]] just allow get not set
| style="border: 1px solid;" | New class
|- valign="top" align="left"
| style="border: 1px solid;" | [[setBulkMailFromSupport|setBulkMailFromSupport(bulkMailId)]]
| style="border: 1px solid;" | [[BulkMail_class|BulkMail.From]] just allow get not set
| style="border: 1px solid;" | New class
|- valign="top" align="left"
| style="border: 1px solid;" | [[setBulkMailFromWebshop|setBulkMailFromWebshop(bulkMailId)]]
| style="border: 1px solid;" | [[BulkMail_class|BulkMail.From]] just allow get not set
| style="border: 1px solid;" | New class
|- valign="top" align="left"
| style="border: 1px solid;" | [[setBulkMailGroups|setBulkMailGroups(bulkMailId, groupIds)]]
| style="border: 1px solid;" | [[BulkMail_class|BulkMail.SetGroups(groupRIds)]]
| style="border: 1px solid;" | New class
|- valign="top" align="left"
| style="border: 1px solid;" | [[setBulkMailGroupsToBeRebuilt|setBulkMailGroupsToBeRebuilt(bulkMailId, groupIds)]]
| style="border: 1px solid;" | [[BulkMail_class|BulkMail.SetGroupsToBeRebuilt(groupRIds)]]
| style="border: 1px solid;" | New class
|- valign="top" align="left"
| style="border: 1px solid;" | [[setBulkMailUsers|setBulkMailUsers(bulkMailId, userIds)]]
| style="border: 1px solid;" | [[BulkMail_class|BulkMail.SetUsers(userRIds)]]
| style="border: 1px solid;" | New class
|- valign="top" align="left"
| style="border: 1px solid;" | [[addToGroup|addToGroup(groupId)]]  run on qas context
| style="border: 1px solid;" | [[Group_addUser|Group_addUser]]([[QAS_getCurrentQAS|QAS_getCurrentQAS()]][[QAS_class|.UserResourceId]], groupResourceId)
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[removeFromGroup|removeFromGroup(groupId)]] run on qas context
| style="border: 1px solid;" | [[Group_removeUser|Group_removeUser]]([[QAS_getCurrentQAS|QAS_getCurrentQAS()]][[QAS_class|.UserResourceId]], groupRId)
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[questionnaireAnswerSheetExists|questionnaireAnswerSheetExists(qnaireId, userId)]] <br>[[questionnaireAnswerSheetExists|questionnaireAnswerSheetExists(qnaireId)]]
| style="border: 1px solid; width: 370.7px;" | [[QAS_exists|QAS_exists(qnaireRId, userRId)]]<br>[[QAS_exists|QAS_exists]](qnaieRId, [[QAS_getCurrentQAS|QAS_getCurrentQAS()]][[QAS_class|.UserResourceId]])
| style="border: 1px solid; width: 453.183px;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[createUserProjectQuestionnaire|createUserProjectQuestionnaire]]
| style="border: 1px solid;" | Same as [[createResourceProjectQuestionnaire|createResourceProjectQuestionnaire]]
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[createResourceProjectQuestionnaire|createResourceProjectQuestionnaire(qnaireId)]]<br>[[createResourceProjectQuestionnaire|createResourceProjectQuestionnaire(qnaireId, assignCurrentUser)]]<br>[[createResourceProjectQuestionnaire|createResourceProjectQuestionnaire(qnaireId, assignCurrentUser, useExisting)]]
| style="border: 1px solid; width: 370.7px;" |[[QAS_class|new QAS(qnaireRId, -1)]] <br>[[QAS_class|new QAS(qnaireRId, 0)]]<br>[[QAS_getByUserResourceId|QAS_getByUserResourceId(userRId, qnaireRId, createIfNone)]]
| style="border: 1px solid; width: 453.183px;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[groupExists|groupExists(groupId)]]
| style="border: 1px solid;" | [[Group_getGroupByResourceId|Group_getGroupByResourceId(groupRId)]]<br> if doesn't exist, return empty
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[isMemberOfGroup|isMemberOfGroup(userId, groupId)]]
| style="border: 1px solid;" | [[Group_isMemberOfGroup|Group_isMemberOfGroup(userRId, groupRId)]]
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[rebuildGroup|rebuildGroup(groupId)]]
| style="border: 1px solid;" | [[Group_rebuildGroup|Group_rebuildGroup(groupRId,parallelBuild)]]
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[Tabulation_saveAsReport|Tabulation_saveAsReport(name, parentRId, permissionGroups)]]<br>
      [[Tabulation_saveAsReport|Tabulation_saveAsReport(name, parentRId, permissionGroups, overwrite)]]
| style="border: 1px solid;" | [[Tabulation_class|Tabulation.SaveAsReport(name, parentRId, permissionGroups, overwrite)]]
| style="border: 1px solid;" | new class TODO
|- valign="top" align="left"
| style="border: 1px solid;" | [[updateGroupPermission|updateGroupPermission(resourceRId, {{groupId1, permission}, {groupId2, permission}})]]
| style="border: 1px solid;" | [[updateGroupResourceIdPermission|updateGroupResourceIdPermission(resourceRId, {groupRId1: permission, groupRId2: permission})]]
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[sendMailTemplateFromResource|sendMailTemplateFromResource(parentRId, email, alias, mailTemplateId, fromEmail, callbackFunction)]]
| style="border: 1px solid;" | [[EmailTemplate_class|EmailTemplate_send(mailTemplateRId, isTest, toEmail, alias, parentRId, fromEmail, callbackFunction)]]
| style="border: 1px solid;" | New function
|- valign="top" align="left"
| style="border: 1px solid;" | [[SendMail_Template|sendMailTemplate(email, alias, mailTemplateId, fromEmail, callbackFunction) ]]
| style="border: 1px solid;" | [[EmailTemplate_class|EmailTemplate_send(mailTemplateRId, isTest, toEmail, alias, parentRId, fromEmail, callbackFunction)]]
| style="border: 1px solid;" | New function
|- valign="top" align="left"
| style="border: 1px solid;" | [[sendTestMailTemplate|sendTestMailTemplate(email, alias, mailTemplateId, emailAccountCGO, callbackFunction)]]
| style="border: 1px solid;" | [[EmailTemplate_class|EmailTemplate_send(mailTemplateRId, isTest, toEmail, alias, parentRId, fromEmail, callbackFunction)]]
| style="border: 1px solid;" | New function
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[getProjectQuestionnaireName|getProjectQuestionnaireName(qnaireId)]] <br>[[getProjectQuestionnaireName|getProjectQuestionnaireName()]]
| style="border: 1px solid; width: 453.183px;" |[[getProjectQuestionnaireNameByResourceId|getProjectQuestionnaireNameByResourceId(qnaireRId)]]<br>[[Resource_getResourceName|Resource_getResourceName(qniareRId)]]<br>
[[getProjectQuestionnaireNameByResourceId|getProjectQuestionnaireNameByResourceId]]([[QAS_getCurrentQAS|QAS_getCurrentQAS()]][[QAS_class|.QuestionnaireResourceId]])<br>
[[Resource_getResourceName|Resource_getResourceName]]([[QAS_getCurrentQAS|QAS_getCurrentQAS()]][[QAS_class|.QuestionnaireResourceId]])<br>
[[Questionnaire_class|Questionnaire_current().QualifiedName]]
| style="border: 1px solid; width: 370.7px;" | <br><br><br><br>new statis methos on Questionnaire class
|- valign="top" align="left"
| style="border: 1px solid;" | [[setReportStyleSheetId|setReportStyleSheetId(reportStyleSheetId)]]
| style="border: 1px solid;" | [[Tabulation_class|Tabulation.ReportStyleSheetId=value]]
| style="border: 1px solid;" | TODO
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[setUserProjectQuestionnaireUserId|setUserProjectQuestionnaireUserId(userId)]]
| style="border: 1px solid; width: 370.7px;" | [[QAS_getCurrentQAS|QAS_getCurrentQAS()]][[QAS_class|.UserResourceId]] = value
| style="border: 1px solid; width: 453.183px;" |
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[getUserProjectQuestionnaireUserId|getUserProjectQuestionnaireUserId()]]<br> return userId
| style="border: 1px solid; width: 370.7px;" | [[QAS_getCurrentQAS|QAS_getCurrentQAS()]][[QAS_class|.UserResourceId]]
| style="border: 1px solid; width: 453.183px;" |
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[setRPQUserId|setRPQUserId(userId)]]
| style="border: 1px solid; width: 370.7px;" | [[QAS_getCurrentQAS|QAS_getCurrentQAS()]][[QAS_class|.UserResourceId]] = value
| style="border: 1px solid; width: 453.183px;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[add_Journal|addJournal(resourceRId, userId, journalType, content)]]
| style="border: 1px solid;" | [[ResourceJournalEntry_class|new ResourceJournalEntry (resourceRId, journalType, content).Save()]]
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[getTimezone|getTimezone(userId)]] <br>[[getTimezone|getTimezone()]]
| style="border: 1px solid; width: 370.7px;" | [[User_getUserByResourceId|User_getUserByResourceId(UserRId)]][[User_class|.TimezoneId]]<br>[[User_getUserByResourceId|User_getUserByResourceId]]([[QAS_getCurrentQAS|QAS_getCurrentQAS()]][[QAS_class|.UserResourceId]])[[User_class|.TimezoneId]]
| style="border: 1px solid; width: 453.183px;" |
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[setTimezone|setTimezone(userId, timezoneId)]] <br>[[setTimezone|setTimezone(timezoneId)]]
| style="border: 1px solid; width: 370.7px;" | [[User_getUserByResourceId|User_getUserByResourceId(UserRId)]][[User_class|.TimezoneId=value]]<br>[[User_getUserByResourceId|User_getUserByResourceId]]([[QAS_getCurrentQAS|QAS_getCurrentQAS()]][[QAS_class|.UserResourceId]])[[User_class|.TimezoneId=value]]
| style="border: 1px solid; width: 453.183px;" |
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[setUserRoleId|setUserRoleId(userId, userResourceTemplateId)]]
| style="border: 1px solid; width: 370.7px;" | [[setResourceTemplateResourceId|setResourceTemplateResourceId(userRId, resourceTemplateRId)]] <br>[[User_getUserByResourceId|User_getUserByResourceId(UserRId)]][[User_class|.ResourceTemplateResourceId = value]]
| style="border: 1px solid; width: 453.183px;" | 
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[getUserRoleId|getUserRoleId(userId)]]<br>return userResourceTemplateId<br>
| style="border: 1px solid; width: 370.7px;" | [[getResourceTemplateResourceId|getResourceTemplateResourceId(userRId)]] <br>[[User_getUserByResourceId|User_getUserByResourceId(userRId)]][[User_class|.ResourceTemplateResourceId]]
| style="border: 1px solid; width: 453.183px;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[isMemberOfSampleRule|isMemberOfSampleRule(sampleRuleId)]]<br>[[isMemberOfSampleRule|isMemberOfSampleRule(userId, sampleRuleId)]]
| style="border: 1px solid;" | [[User_isMemberOfSampleRule|User_isMemberOfSampleRule(QAS_getCurrentQAS().UserResourceId, sampleRuleId)]]<br>[[User_isMemberOfSampleRule|User_isMemberOfSampleRule(userId, sampleRuleId)]]
| style="border: 1px solid;" | new static methos on User class
|- valign="top" align="left"
| style="border: 1px solid;" | [[EmailTemplate_class|EmailTemplate.PrimaryKey]]
| style="border: 1px solid;" | Obsolete
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[UserQuarantine_class|UserQuarantine.QuarantineResourceId]]
| style="border: 1px solid;" | [[UserQuarantine_class|UserQuarantine.QuarantineResourceId]] keep
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[User_class|User.PrimaryKey]]
| style="border: 1px solid;" | Obsolete
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[getQuestionnaireTemplateId|getQuestionnaireTemplateId(qualifiedName)]] <br>return qnaireTemplateId
| style="border: 1px solid; width: 370.7px;" | [[QuestionnaireTemplate_class|QuestionnaireTemplate_getByQualifiedName(qualifiedName).Id]]
| style="border: 1px solid; width: 453.183px;" |  TODO
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[getProjectQuestionnaireId|getProjectQuestionnaireId(qualifiedName)]] <br>return qnaireId
| style="border: 1px solid; width: 370.7px;" | [[Questionnaire_class|new Questionnaire(qualifiedName).Id]]
| style="border: 1px solid; width: 453.183px;" | new class Questionnaire
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[getReturnToProjectQuestionnaireId|getReturnToProjectQuestionnaireId()]] <br>return qnaireId
| style="border: 1px solid; width: 370.7px;" |
| style="border: 1px solid; width: 453.183px;" | lacking
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[getReportStyleSheetIdByName|getReportStyleSheetIdByName(reportStyleSheetQualifiedName)]]<br>return ReportStyleSheetId
| style="border: 1px solid; width: 370.7px;" | [[ReportStyleSheet_class|ReportStyleSheet_getByQualifiedName(qualifiedName).Id]]
| style="border: 1px solid; width: 453.183px;" | TODO
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[getReportStyleSheetId|getReportStyleSheetId()]] <br>return ReportStyleSheetId
| style="border: 1px solid; width: 370.7px;" | [[Tabulation_class|Tabulation_getCurrentReportStyleSheetId()]]
| style="border: 1px solid; width: 453.183px;" | TODO 
|- valign="top" align="left"
| style="border: 1px solid;" | [[getResourceIdFromGuid|getResourceIdFromGuid(guid)]]
| style="border: 1px solid;" | [[getResourceUniqueIdFromGuid|getResourceUniqueIdFromGuid]]
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[Task_new|task[TASK_CASE_NUMBER]]]
| style="border: 1px solid;" | [[Task_new|task[TASK_RESOURCE_ID]]]
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[getCurrentUserId|getCurrentUserId()]]
| style="border: 1px solid;" | [[User_getCurrentUser|User_getCurrentUser()]]
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[getUserIdFromResourceId|getUserIdFromResourceId(guid)]]
| style="border: 1px solid;" | [[getResourceUniqueIdFromGuid|getResourceUniqueIdFromGuid]]
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[createUser|createUser(userResourceTemplateId)]]
| style="border: 1px solid;" | [[User_new|User_new]]
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[getRPQUserId|getRPQUserId()]] <br>return userId
| style="border: 1px solid; width: 370.7px;" | [[QAS_getCurrentQAS|QAS_getCurrentQAS()]][[QAS_class|.UserResourceId]]
| style="border: 1px solid; width: 453.183px;" |
|- valign="top" align="left"
| style="border: 1px solid;" | [[User_class|User class.ResourceTemplateId]]
| style="border: 1px solid;" | [[User_class|User class.ResourceTemplateResourceId]]
| style="border: 1px solid;" |
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[UserQuarantine_class|UserQuarantine.AddedByUserId]]
| style="border: 1px solid; width: 370.7px;" |
| style="border: 1px solid; width: 453.183px;" | lacking AddedByUserResourceId
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[UserQuarantine_class|UserQuarantine.RemovedByUserId]]
| style="border: 1px solid; width: 370.7px;" |
| style="border: 1px solid; width: 453.183px;" | lacking RemovedByUserResourceId
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[Quarantine_getUserIdsOfQuarantined|Quarantine_getUserIdsOfQuarantined(quarantineRIdList)]]
| style="border: 1px solid; width: 370.7px;" |
| style="border: 1px solid; width: 453.183px;" | lacking new function
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[User_class|User class.CreatedByUserId]]
| style="border: 1px solid; width: 370.7px;" |
| style="border: 1px solid; width: 453.183px;" | lacking user.CreatedByUserResourceId
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[User_class|User class.ModifiedByUserId]]
| style="border: 1px solid; width: 370.7px;" |
| style="border: 1px solid; width: 453.183px;" | lacking user.ModifiedByUserResourceId
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[SampleRule_class|SampleRule.QuestionnaireId]]
| style="border: 1px solid; width: 370.7px;" | SampleRule.QuestionnaireResourceId
| style="border: 1px solid; width: 453.183px;" |
|- valign="top" align="left"
| style="border: 1px solid; width: 510.117px;" | [[SampleRule_class|SampleRule.GroupId]]
| style="border: 1px solid; width: 370.7px;" | SampleRule.GroupResourceId
| style="border: 1px solid; width: 453.183px;" |
|}

Latest revision as of 04:42, 25 April 2022