Difference between revisions of "OldIdFunctions"
Line 19: | Line 19: | ||
| style="border: 1px solid; width: 251px;" | [[setUserTimezone|setUserTimezone(userRId, timezoneId)]] <br>[[setUserTimezone|setUserTimezone(timezoneId)]] | | style="border: 1px solid; width: 251px;" | [[setUserTimezone|setUserTimezone(userRId, timezoneId)]] <br>[[setUserTimezone|setUserTimezone(timezoneId)]] | ||
| style="border: 1px solid; width: 237px;" | | | style="border: 1px solid; width: 237px;" | | ||
+ | <br> | ||
|- valign="top" align="left" | |- valign="top" align="left" | ||
| style="border: 1px solid; width: 239px;" | [[getTimezone|getTimezone(userId)]] <br>[[getTimezone|getTimezone()]] | | style="border: 1px solid; width: 239px;" | [[getTimezone|getTimezone(userId)]] <br>[[getTimezone|getTimezone()]] | ||
Line 33: | Line 34: | ||
| style="border: 1px solid; width: 237px;" | same function: <br>getResourceTemplateResourceId | | style="border: 1px solid; width: 237px;" | same function: <br>getResourceTemplateResourceId | ||
|- valign="top" align="left" | |- valign="top" align="left" | ||
− | | style="border: 1px solid; width: 239px;" | [[getQuestionnaireTemplateId|getQuestionnaireTemplateId(qnaireTemplateQualifiedName)]] <br> return qnaireTemplateId | + | | style="border: 1px solid; width: 239px;" | [[getQuestionnaireTemplateId|getQuestionnaireTemplateId(qnaireTemplateQualifiedName)]] <br>return qnaireTemplateId |
− | | style="border: 1px solid; width: 251px;" | Questionnaire_getTemplateId <br> return qnaireTemplateRId | + | | style="border: 1px solid; width: 251px;" | Questionnaire_getTemplateId <br>return qnaireTemplateRId |
| style="border: 1px solid; width: 237px;" | Questionnaire_getQuestionnaireTemplateId | | style="border: 1px solid; width: 237px;" | Questionnaire_getQuestionnaireTemplateId | ||
|- valign="top" align="left" | |- valign="top" align="left" | ||
− | | style="border: 1px solid; width: 239px;" | [[getProjectQuestionnaireId|getProjectQuestionnaireId(qnaireQualifiedName)]] <br> return qnaireId | + | | style="border: 1px solid; width: 239px;" | [[getProjectQuestionnaireId|getProjectQuestionnaireId(qnaireQualifiedName)]] <br>return qnaireId |
− | | style="border: 1px solid; width: 251px;" | Questionnaire_getProjectId <br> return qnaireRId | + | | style="border: 1px solid; width: 251px;" | Questionnaire_getProjectId <br>return qnaireRId |
| style="border: 1px solid; width: 237px;" | Questionnaire_getQuestionnaireId | | style="border: 1px solid; width: 237px;" | Questionnaire_getQuestionnaireId | ||
|- valign="top" align="left" | |- valign="top" align="left" | ||
− | | style="border: 1px solid; width: 239px;" | [[getReportStyleSheetIdByName|getReportStyleSheetIdByName(reportStyleSheetQualifiedName)]]<br> return ReportStyleSheetId | + | | style="border: 1px solid; width: 239px;" | [[getReportStyleSheetIdByName|getReportStyleSheetIdByName(reportStyleSheetQualifiedName)]]<br>return ReportStyleSheetId |
− | | style="border: 1px solid; width: 251px;" | Report_getStyleSheetIdByName <br> return ReportStyleSheetRId | + | | style="border: 1px solid; width: 251px;" | Report_getStyleSheetIdByName <br>return ReportStyleSheetRId |
| style="border: 1px solid; width: 237px;" | | | style="border: 1px solid; width: 237px;" | | ||
<br> | <br> | ||
|- valign="top" align="left" | |- valign="top" align="left" | ||
− | | style="border: 1px solid; width: 239px;" | [[getReportStyleSheetId|getReportStyleSheetId()]] <br> return ReportStyleSheetId | + | | style="border: 1px solid; width: 239px;" | [[getReportStyleSheetId|getReportStyleSheetId()]] <br>return ReportStyleSheetId |
− | | style="border: 1px solid; width: 251px;" | Report_getStyleSheetId return ReportStyleSheetRId | + | | style="border: 1px solid; width: 251px;" | Report_getStyleSheetId |
+ | |||
+ | return ReportStyleSheetRId | ||
| style="border: 1px solid; width: 237px;" | | | style="border: 1px solid; width: 237px;" | | ||
<br> | <br> | ||
Line 57: | Line 60: | ||
sampleRule has only one kind of Id<br> | sampleRule has only one kind of Id<br> | ||
|- valign="top" align="left" | |- valign="top" align="left" | ||
− | | style="border: 1px solid; width: 239px;" | [[createResourceProjectQuestionnaire|createResourceProjectQuestionnaire(qnaireId)]]<br> [[createResourceProjectQuestionnaire|createResourceProjectQuestionnaire(qnaireId, assignCurrentUser)]]<br> [[createResourceProjectQuestionnaire|createResourceProjectQuestionnaire(qnaireId, assignCurrentUser, useExisting)]] | + | | style="border: 1px solid; width: 239px;" | [[createResourceProjectQuestionnaire|createResourceProjectQuestionnaire(qnaireId)]]<br>[[createResourceProjectQuestionnaire|createResourceProjectQuestionnaire(qnaireId, assignCurrentUser)]]<br>[[createResourceProjectQuestionnaire|createResourceProjectQuestionnaire(qnaireId, assignCurrentUser, useExisting)]] |
| style="border: 1px solid; width: 251px;" | | | style="border: 1px solid; width: 251px;" | | ||
<br> | <br> | ||
| style="border: 1px solid; width: 237px;" | | | style="border: 1px solid; width: 237px;" | | ||
− | already exist:<br> new QAS(qnaireRId, -1) <br> new QAS(qnaireRId, 0)<br> QAS_getByUserResourceId | + | already exist:<br>new QAS(qnaireRId, -1) <br>new QAS(qnaireRId, 0)<br>QAS_getByUserResourceId |
|- valign="top" align="left" | |- valign="top" align="left" | ||
− | | style="border: 1px solid; width: 239px;" | [[getProjectQuestionnaireName|getProjectQuestionnaireName(qnaireId)]] <br> [[getProjectQuestionnaireName|getProjectQuestionnaireName()]] | + | | style="border: 1px solid; width: 239px;" | [[getProjectQuestionnaireName|getProjectQuestionnaireName(qnaireId)]] <br>[[getProjectQuestionnaireName|getProjectQuestionnaireName()]] |
| style="border: 1px solid; width: 251px;" | | | style="border: 1px solid; width: 251px;" | | ||
<br> | <br> | ||
Line 69: | Line 72: | ||
expected new function name: getQuestionnaireName | expected new function name: getQuestionnaireName | ||
|- valign="top" align="left" | |- valign="top" align="left" | ||
− | | style="border: 1px solid; width: 239px;" | [[getReturnToProjectQuestionnaireId|getReturnToProjectQuestionnaireId()]] <br> return qnaireId | + | | style="border: 1px solid; width: 239px;" | [[getReturnToProjectQuestionnaireId|getReturnToProjectQuestionnaireId()]] <br>return qnaireId |
| style="border: 1px solid; width: 251px;" | | | style="border: 1px solid; width: 251px;" | | ||
<br> | <br> | ||
Line 81: | Line 84: | ||
already exist: getRPQId <br>not related to Id, no need new function | already exist: getRPQId <br>not related to Id, no need new function | ||
|- valign="top" align="left" | |- valign="top" align="left" | ||
− | | style="border: 1px solid; width: 239px;" | [[getUserProjectQuestionnaireUserId|getUserProjectQuestionnaireUserId()]] <br> return UserId | + | | style="border: 1px solid; width: 239px;" | [[getUserProjectQuestionnaireUserId|getUserProjectQuestionnaireUserId()]] <br>return UserId |
| style="border: 1px solid; width: 251px;" | | | style="border: 1px solid; width: 251px;" | | ||
<br> | <br> | ||
Line 89: | Line 92: | ||
| style="border: 1px solid; width: 239px;" | [[questionnaireAnswerSheetExists|questionnaireAnswerSheetExists(qnaireId, userId)]] <br>[[questionnaireAnswerSheetExists|questionnaireAnswerSheetExists(qnaireId)]] | | style="border: 1px solid; width: 239px;" | [[questionnaireAnswerSheetExists|questionnaireAnswerSheetExists(qnaireId, userId)]] <br>[[questionnaireAnswerSheetExists|questionnaireAnswerSheetExists(qnaireId)]] | ||
| style="border: 1px solid; width: 251px;" | | | style="border: 1px solid; width: 251px;" | | ||
− | | style="border: 1px solid; width: 237px;" |already exist:<br>QAS_exists(qnaireRid, userRId)<br>QAS_exists(qnaieRId) | + | <br> |
+ | | style="border: 1px solid; width: 237px;" | already exist:<br>QAS_exists(qnaireRid, userRId)<br>QAS_exists(qnaieRId) | ||
|- valign="top" align="left" | |- valign="top" align="left" | ||
Line 102: | Line 106: | ||
<br> | <br> | ||
| style="border: 1px solid; width: 237px;" | | | style="border: 1px solid; width: 237px;" | | ||
− | already exist: setRPQId <br> and not related with Id, no need new function | + | already exist: setRPQId <br>and not related with Id, no need new function |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| style="border: 1px solid; width: 239px;" | [[setUserProjectQuestionnaireUserId|setUserProjectQuestionnaireUserId(userId)]] | | style="border: 1px solid; width: 239px;" | [[setUserProjectQuestionnaireUserId|setUserProjectQuestionnaireUserId(userId)]] |
Revision as of 10:32, 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(userResourceTemplateId) | User_setUserRoleId(userResourceTemplateRId) | same function: setResourceTemplateResourceId |
getUserRoleId() return userResourceTemplateId |
User_getUserRoleId() return userResourceTemplateRId |
same function: getResourceTemplateResourceId |
getQuestionnaireTemplateId(qnaireTemplateQualifiedName) return qnaireTemplateId |
Questionnaire_getTemplateId return qnaireTemplateRId |
Questionnaire_getQuestionnaireTemplateId |
getProjectQuestionnaireId(qnaireQualifiedName) return qnaireId |
Questionnaire_getProjectId return qnaireRId |
Questionnaire_getQuestionnaireId |
getReportStyleSheetIdByName(reportStyleSheetQualifiedName) return ReportStyleSheetId |
Report_getStyleSheetIdByName 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: |
getProjectQuestionnaireName(qnaireId) getProjectQuestionnaireName() |
|
expected new function name: getQuestionnaireName |
getReturnToProjectQuestionnaireId() return qnaireId |
|
expected new functions name: getReturnToQuestionnaireId |
getUserProjectQuestionnaireId() | X
|
already exist: getRPQId |
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 |
setUserProjectQuestionnaireUserId(userId) |
|
already exist: setQASUserId |