Difference between revisions of "OldIdFunctions"

From Catglobe Wiki
Jump to: navigation, search
Line 28: Line 28:
 
| style="border: 1px solid; width: 510.117px;" | [[setUserRoleId|setUserRoleId(userId, userResourceTemplateId)]]
 
| style="border: 1px solid; width: 510.117px;" | [[setUserRoleId|setUserRoleId(userId, userResourceTemplateId)]]
 
| style="border: 1px solid; width: 370.7px;" | User_setUserRoleId(userRId, userResourceTemplateRId)
 
| style="border: 1px solid; width: 370.7px;" | User_setUserRoleId(userRId, userResourceTemplateRId)
| style="border: 1px solid; width: 453.183px;" | same function: <br>[[setResourceTemplateResourceId|setResourceTemplateResourceId(resourceRId, resourceTemplateRId)]] <br> [[User_class|User.ResourceTemplateResourceId]] = userResourceTemplateRId
+
| style="border: 1px solid; width: 453.183px;" | same function: <br>[[setResourceTemplateResourceId|setResourceTemplateResourceId(resourceRId, resourceTemplateRId)]] <br>[[User_class|User.ResourceTemplateResourceId]] = userResourceTemplateRId
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid; width: 510.117px;" | [[getUserRoleId|getUserRoleId(userId)]]<br>return userResourceTemplateId<br>
 
| style="border: 1px solid; width: 510.117px;" | [[getUserRoleId|getUserRoleId(userId)]]<br>return userResourceTemplateId<br>
 
| style="border: 1px solid; width: 370.7px;" | User_getUserRoleId(userRId)<br>return userResourceTemplateRId<br>
 
| style="border: 1px solid; width: 370.7px;" | User_getUserRoleId(userRId)<br>return userResourceTemplateRId<br>
| style="border: 1px solid; width: 453.183px;" | same function: <br>[[getResourceTemplateResourceId|getResourceTemplateResourceId(resourceRId)]] <br> [[User_class|User.ResourceTemplateResourceId]]
+
| style="border: 1px solid; width: 453.183px;" | same function: <br>[[getResourceTemplateResourceId|getResourceTemplateResourceId(resourceRId)]] <br>[[User_class|User.ResourceTemplateResourceId]]
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid; width: 510.117px;" | [[getQuestionnaireTemplateId|getQuestionnaireTemplateId(qnaireTemplateQualifiedName)]] <br>return qnaireTemplateId
 
| style="border: 1px solid; width: 510.117px;" | [[getQuestionnaireTemplateId|getQuestionnaireTemplateId(qnaireTemplateQualifiedName)]] <br>return qnaireTemplateId
| style="border: 1px solid; width: 370.7px;" | Questionnaire_getTemplateId <br>return qnaireTemplateRId
+
| style="border: 1px solid; width: 370.7px;" | Questionnaire_getTemplateId(qnaireTemplateQualifiedName)<br>return qnaireTemplateRId
 
| style="border: 1px solid; width: 453.183px;" | Questionnaire_getQuestionnaireTemplateId
 
| style="border: 1px solid; width: 453.183px;" | Questionnaire_getQuestionnaireTemplateId
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid; width: 510.117px;" | [[getProjectQuestionnaireId|getProjectQuestionnaireId(qnaireQualifiedName)]] <br>return qnaireId
 
| style="border: 1px solid; width: 510.117px;" | [[getProjectQuestionnaireId|getProjectQuestionnaireId(qnaireQualifiedName)]] <br>return qnaireId
| style="border: 1px solid; width: 370.7px;" | Questionnaire_getProjectId <br>return qnaireRId
+
| style="border: 1px solid; width: 370.7px;" | Questionnaire_getProjectId(qnaireQualifiedName)<br>return qnaireRId
 
| style="border: 1px solid; width: 453.183px;" | Questionnaire_getQuestionnaireId
 
| style="border: 1px solid; width: 453.183px;" | Questionnaire_getQuestionnaireId
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid; width: 510.117px;" | [[getReportStyleSheetIdByName|getReportStyleSheetIdByName(reportStyleSheetQualifiedName)]]<br>return ReportStyleSheetId
 
| style="border: 1px solid; width: 510.117px;" | [[getReportStyleSheetIdByName|getReportStyleSheetIdByName(reportStyleSheetQualifiedName)]]<br>return ReportStyleSheetId
| style="border: 1px solid; width: 370.7px;" | Report_getStyleSheetIdByName <br>return ReportStyleSheetRId
+
| style="border: 1px solid; width: 370.7px;" | Report_getStyleSheetIdByName(reportStyleSheetQualifiedName)<br>return ReportStyleSheetRId
 
| style="border: 1px solid; width: 453.183px;" |
 
| style="border: 1px solid; width: 453.183px;" |
 
<br>
 
<br>
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid; width: 510.117px;" | [[getReportStyleSheetId|getReportStyleSheetId()]] <br>return ReportStyleSheetId
 
| style="border: 1px solid; width: 510.117px;" | [[getReportStyleSheetId|getReportStyleSheetId()]] <br>return ReportStyleSheetId
| style="border: 1px solid; width: 370.7px;" | Report_getStyleSheetId
+
| style="border: 1px solid; width: 370.7px;" | Report_getStyleSheetId()
  
 
return ReportStyleSheetRId
 
return ReportStyleSheetRId

Revision as of 11:06, 8 March 2022

Old function New function Note
setRPQUserId(userId) setQASUserId(userRId)


getRPQUserId()
return userId
getQASUserId()
return userRId


setTimezone(userId, timezoneId)
setTimezone(timezoneId)
setUserTimezone(userRId, timezoneId)
setUserTimezone(timezoneId)


getTimezone(userId)
getTimezone()
getUserTimezone(userRId)
getUserTimezone()


setUserRoleId(userId, userResourceTemplateId) User_setUserRoleId(userRId, userResourceTemplateRId) same function:
setResourceTemplateResourceId(resourceRId, resourceTemplateRId)
User.ResourceTemplateResourceId = userResourceTemplateRId
getUserRoleId(userId)
return userResourceTemplateId
User_getUserRoleId(userRId)
return userResourceTemplateRId
same function:
getResourceTemplateResourceId(resourceRId)
User.ResourceTemplateResourceId
getQuestionnaireTemplateId(qnaireTemplateQualifiedName)
return qnaireTemplateId
Questionnaire_getTemplateId(qnaireTemplateQualifiedName)
return qnaireTemplateRId
Questionnaire_getQuestionnaireTemplateId
getProjectQuestionnaireId(qnaireQualifiedName)
return qnaireId
Questionnaire_getProjectId(qnaireQualifiedName)
return qnaireRId
Questionnaire_getQuestionnaireId
getReportStyleSheetIdByName(reportStyleSheetQualifiedName)
return ReportStyleSheetId
Report_getStyleSheetIdByName(reportStyleSheetQualifiedName)
return ReportStyleSheetRId


getReportStyleSheetId()
return ReportStyleSheetId
Report_getStyleSheetId()

return ReportStyleSheetRId


changeSampleRuleId X


sampleRule has only one kind of Id

createResourceProjectQuestionnaire(qnaireId)
createResourceProjectQuestionnaire(qnaireId, assignCurrentUser)
createResourceProjectQuestionnaire(qnaireId, assignCurrentUser, useExisting)


already exist:
new QAS(qnaireRId, -1)
new QAS(qnaireRId, 0)
QAS_getByUserResourceId

getProjectQuestionnaireName(qnaireId)
getProjectQuestionnaireName()


expected new function name: getQuestionnaireName

getReturnToProjectQuestionnaireId()
return qnaireId


expected new functions name: getReturnToQuestionnaireId

getUserProjectQuestionnaireId() X


already exist: getRPQId
not related to Id, no need new function

getUserProjectQuestionnaireUserId()
return UserId


already exist: getQASUserId

questionnaireAnswerSheetExists(qnaireId, userId)
questionnaireAnswerSheetExists(qnaireId)


already exist:
QAS_exists(qnaireRid, userRId)
QAS_exists(qnaieRId)
sampleRuleExists X


sampleRule has only one kind of Id

setUserProjectQuestionnaireId(QASId) X


already exist: setRPQId
and not related with Id, no need new function

setUserProjectQuestionnaireUserId(userId)


already exist: setQASUserId