Difference between revisions of "ConversionMethods"

From Catglobe Wiki
Jump to: navigation, search
Line 156: Line 156:
 
| style="border: 1px solid;" | [[setReportStyleSheetId|setReportStyleSheetId(reportStyleSheetId)]]
 
| style="border: 1px solid;" | [[setReportStyleSheetId|setReportStyleSheetId(reportStyleSheetId)]]
 
| style="border: 1px solid;" |  
 
| style="border: 1px solid;" |  
| style="border: 1px solid;" | TODO [[Tabulation_class|Tabulation.ReportStyleSheetId=value]]
+
| style="border: 1px solid;" | Ý TODO
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
Line 220: Line 220:
 
| style="border: 1px solid; width: 510.117px;" | [[getQuestionnaireTemplateId|getQuestionnaireTemplateId(qualifiedName)]]  
 
| style="border: 1px solid; width: 510.117px;" | [[getQuestionnaireTemplateId|getQuestionnaireTemplateId(qualifiedName)]]  
 
| style="border: 1px solid; width: 370.7px;" |  
 
| style="border: 1px solid; width: 370.7px;" |  
| style="border: 1px solid; width: 453.183px;" |  TODO [[QuestionnaireTemplate_class|QuestionnaireTemplate_getByQualifiedName(qualifiedName).Id]]
+
| style="border: 1px solid; width: 453.183px;" |  Trung TODO  
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
Line 231: Line 231:
 
| style="border: 1px solid; width: 510.117px;" | [[getReturnToProjectQuestionnaireId|getReturnToProjectQuestionnaireId()]]  
 
| style="border: 1px solid; width: 510.117px;" | [[getReturnToProjectQuestionnaireId|getReturnToProjectQuestionnaireId()]]  
 
| style="border: 1px solid; width: 370.7px;" |
 
| style="border: 1px solid; width: 370.7px;" |
| style="border: 1px solid; width: 453.183px;" | lacking new method
+
| style="border: 1px solid; width: 453.183px;" | LACKING
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid; width: 510.117px;" | [[getReportStyleSheetIdByName|getReportStyleSheetIdByName(reportStyleSheetQualifiedName)]]
 
| style="border: 1px solid; width: 510.117px;" | [[getReportStyleSheetIdByName|getReportStyleSheetIdByName(reportStyleSheetQualifiedName)]]
 
| style="border: 1px solid; width: 370.7px;" |  
 
| style="border: 1px solid; width: 370.7px;" |  
| style="border: 1px solid; width: 453.183px;" | TODO [[ReportStyleSheet_class|ReportStyleSheet_getByQualifiedName(qualifiedName).Id]]
+
| style="border: 1px solid; width: 453.183px;" | Ý TODO  
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid; width: 510.117px;" | [[getReportStyleSheetId|getReportStyleSheetId()]]  
 
| style="border: 1px solid; width: 510.117px;" | [[getReportStyleSheetId|getReportStyleSheetId()]]  
 
| style="border: 1px solid; width: 370.7px;" |  
 
| style="border: 1px solid; width: 370.7px;" |  
| style="border: 1px solid; width: 453.183px;" | TODO  [[Tabulation_class|Tabulation_getCurrentReportStyleSheetId()]]
+
| style="border: 1px solid; width: 453.183px;" | Ý TODO   
  
  
Line 283: Line 283:
 
| style="border: 1px solid; width: 510.117px;" | [[UserQuarantine_class|UserQuarantine.AddedByUserId]]
 
| style="border: 1px solid; width: 510.117px;" | [[UserQuarantine_class|UserQuarantine.AddedByUserId]]
 
| style="border: 1px solid; width: 370.7px;" |  
 
| style="border: 1px solid; width: 370.7px;" |  
| style="border: 1px solid; width: 453.183px;" | lacking UserQuarantine.AddedByUserResourceId
+
| style="border: 1px solid; width: 453.183px;" | LACKING
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid; width: 510.117px;" | [[UserQuarantine_class|UserQuarantine.RemovedByUserId]]
 
| style="border: 1px solid; width: 510.117px;" | [[UserQuarantine_class|UserQuarantine.RemovedByUserId]]
 
| style="border: 1px solid; width: 370.7px;" |  
 
| style="border: 1px solid; width: 370.7px;" |  
| style="border: 1px solid; width: 453.183px;" | lacking UserQuarantine.RemovedByUserResourceId
+
| style="border: 1px solid; width: 453.183px;" | LACKING
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid; width: 510.117px;" | [[Quarantine_getUserIdsOfQuarantined|Quarantine_getUserIdsOfQuarantined(quarantineRIdList)]]
 
| style="border: 1px solid; width: 510.117px;" | [[Quarantine_getUserIdsOfQuarantined|Quarantine_getUserIdsOfQuarantined(quarantineRIdList)]]
 
| style="border: 1px solid; width: 370.7px;" |  
 
| style="border: 1px solid; width: 370.7px;" |  
| style="border: 1px solid; width: 453.183px;" | lacking new method
+
| style="border: 1px solid; width: 453.183px;" | LACKING
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid; width: 510.117px;" | [[User_class|User class.CreatedByUserId]]
 
| style="border: 1px solid; width: 510.117px;" | [[User_class|User class.CreatedByUserId]]
 
| style="border: 1px solid; width: 370.7px;" |  
 
| style="border: 1px solid; width: 370.7px;" |  
| style="border: 1px solid; width: 453.183px;" | lacking User.CreatedByUserResourceId
+
| style="border: 1px solid; width: 453.183px;" | LACKING
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid; width: 510.117px;" | [[User_class|User class.ModifiedByUserId]]
 
| style="border: 1px solid; width: 510.117px;" | [[User_class|User class.ModifiedByUserId]]
 
| style="border: 1px solid; width: 370.7px;" |  
 
| style="border: 1px solid; width: 370.7px;" |  
| style="border: 1px solid; width: 453.183px;" | lacking User.ModifiedByUserResourceId
+
| style="border: 1px solid; width: 453.183px;" | LACKING
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"

Revision as of 06:08, 25 April 2022

Obsolete methods Replace with Note


updateUserPermission(resourceId, permission) updateUserResourceIdPermission(resourceId, permission)
QAS.UserId QAS.UserResourceId
User_getResourceIdFromUserId(userId) Obsolete
User_getResourceIdFromUserIds(userIds) Obsolete
sendBulkMail(bulkMailId, maxToSend) BulkMail.Send()
BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious)
New class BulkMail
sendBulkMailSyncronious(bulkMailId, maxToSend) BulkMail.SendSyncronious()
BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious)
New class BulkMail
sendTestBulkMail(bulkMailId, maxToSend) BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious) New class BulkMail
sendTestBulkMailSyncronious(bulkMailId, maxToSend) BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious) New class BulkMail
setBulkMailFromGlobalEmailAlias(bulkMailId, globalEmailAliasId) BulkMail.From New class BulkMail (BulkMail.From just get)
setBulkMailFromResource(bulkMailId, resourceRId) BulkMail.From New class BulkMail (BulkMail.From just get)
setBulkMailFromSupport(bulkMailId) BulkMail.From New class BulkMail (BulkMail.From just get)
setBulkMailFromWebshop(bulkMailId) BulkMail.From New class BulkMail (BulkMail.From just get)
setBulkMailGroups(bulkMailId, groupIds) BulkMail.SetGroups(groupIds) New class BulkMail
setBulkMailGroupsToBeRebuilt(bulkMailId, groupIds) BulkMail.SetGroupsToBeRebuilt(groupIds) New class BulkMail
setBulkMailUsers(bulkMailId, userIds) BulkMail.SetUsers(userIds) New class BulkMail
addToGroup(groupId) Group_addUser(QAS_getCurrentQAS().UserResourceId, groupId)
removeFromGroup(groupId) Group_removeUser(QAS_getCurrentQAS().UserResourceId, groupId)
questionnaireAnswerSheetExists(qnaireId[, userId]) QAS_exists(qnaireId, userId)
createUserProjectQuestionnaire(qnaireId[, assignCurrentUser, useExisting]) new QAS(qnaireId, userId)
QAS_getByUserResourceId(userId, qnaireId, createIfNone)
createResourceProjectQuestionnaire(qnaireId[, assignCurrentUser, useExisting]) new QAS(qnaireId, userid)
QAS_getByUserResourceId(userId, qnaireId, createIfNone)
groupExists(groupId) Group_getGroupByResourceId(groupId)
isMemberOfGroup(userId, groupId) Group_isMemberOfGroup(userId, groupId)
rebuildGroup(groupId) Group_rebuildGroup(groupId,parallelBuild)
Tabulation_saveAsReport(name, parentId, permissionGroups[, overwrite]) Tabulation.SaveAsReport(name, parentId, permissionGroups, overwrite) New class Tabulation
updateGroupPermission(resourceId, permission) updateGroupResourceIdPermission(resourceId, permission)


sendMailTemplateFromResource(parentId, email, alias, mailTemplateId, fromEmail, callbackmethod) EmailTemplate_send(mailTemplateId, isTest, toEmail, alias, parentId, fromEmail, callbackmethod) New method EmailTemplate_send
sendMailTemplate(email, alias, mailTemplateId, fromEmail, callbackmethod) EmailTemplate_send(mailTemplateId, isTest, toEmail, alias, parentId, fromEmail, callbackmethod) New method EmailTemplate_send
sendTestMailTemplate(email, alias, mailTemplateId, emailAccountCGO, callbackmethod) EmailTemplate_send(mailTemplateId, isTest, toEmail, alias, parentId, fromEmail, callbackmethod) New method EmailTemplate_send
getProjectQuestionnaireName([qnaireId]) getProjectQuestionnaireNameByResourceId(qnaireRId)
Resource_getResourceName(qniareId)
Questionnaire_current().QualifiedName


New method Questionnaire_current
setReportStyleSheetId(reportStyleSheetId) Ý TODO
setUserProjectQuestionnaireUserId(userId) QAS_getCurrentQAS().UserResourceId = value
getUserProjectQuestionnaireUserId() QAS_getCurrentQAS().UserResourceId
setRPQUserId(userId) QAS_getCurrentQAS().UserResourceId = value
addJournal(resourceId, userId, journalType, content) new ResourceJournalEntry (resourceId, journalType, content).Save()
getTimezone([userId]) User_getUserByResourceId(UserId).TimezoneId
setTimezone([userId,] timezoneId) User_getUserByResourceId(UserId).TimezoneId=value
setUserRoleId(userId, userResourceTemplateId) setResourceTemplateResourceId(userId, resourceTemplateId)
User_getUserByResourceId(UserId).ResourceTemplateResourceId = value
getUserRoleId(userId) getResourceTemplateResourceId(userId)
User_getUserByResourceId(userId).ResourceTemplateResourceId
isMemberOfSampleRule([userId,] sampleRuleId) User_isMemberOfSampleRule(userId, sampleRuleId) New method User_isMemberOfSampleRule
EmailTemplate.PrimaryKey Obsolete
UserQuarantine.QuarantineResourceId UserQuarantine.QuarantineResourceId
User.PrimaryKey Obsolete
getQuestionnaireTemplateId(qualifiedName) Trung TODO
getProjectQuestionnaireId(qualifiedName) new Questionnaire(qualifiedName).Id New class Questionnaire


getReturnToProjectQuestionnaireId() LACKING
getReportStyleSheetIdByName(reportStyleSheetQualifiedName) Ý TODO
getReportStyleSheetId() Ý TODO


getResourceIdFromGuid(guid) getResourceUniqueIdFromGuid(guid)
task[TASK_CASE_NUMBER] task[TASK_RESOURCE_ID]
getCurrentUserId() User_getCurrentUser()
getUserIdFromResourceId(guid) getResourceUniqueIdFromGuid(guid)
createUser(userResourceTemplateId) User_new(userResourceTemplateId)
getRPQUserId() QAS_getCurrentQAS().UserResourceId
User class.ResourceTemplateId User class.ResourceTemplateResourceId


UserQuarantine.AddedByUserId LACKING
UserQuarantine.RemovedByUserId LACKING
Quarantine_getUserIdsOfQuarantined(quarantineRIdList) LACKING
User class.CreatedByUserId LACKING
User class.ModifiedByUserId LACKING
SampleRule.QuestionnaireId SampleRule.QuestionnaireResourceId
SampleRule.GroupId SampleRule.GroupResourceId