Difference between revisions of "OldIdFunctions"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
{| class="tableintopic" style="border-collapse: collapse;" cellpadding="2"
+
{| class="tableintopic" style="border-collapse: collapse; width: 1350px;" cellpadding="2"
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" bgcolor="#C0C0C0" | '''Old function'''
+
| style="border: 1px solid; width: 510.117px;" bgcolor="#C0C0C0" | '''Old function'''
| style="border: 1px solid; width: 251px;" bgcolor="#C0C0C0" | '''New function'''
+
| style="border: 1px solid; width: 370.7px;" bgcolor="#C0C0C0" | '''New function'''
| style="border: 1px solid; width: 237px;" bgcolor="#C0C0C0" | '''Note'''
+
| style="border: 1px solid; width: 453.183px;" bgcolor="#C0C0C0" | '''Note'''
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[setRPQUserId|setRPQUserId(userId)]]
+
| style="border: 1px solid; width: 510.117px;" | [[setRPQUserId|setRPQUserId(userId)]]
| style="border: 1px solid; width: 251px;" | [[setQASUserId|setQASUserId(userRId)]]
+
| style="border: 1px solid; width: 370.7px;" | [[setQASUserId|setQASUserId(userRId)]]
| style="border: 1px solid; width: 237px;" |
+
| style="border: 1px solid; width: 453.183px;" |
 
<br>
 
<br>
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[getRPQUserId|getRPQUserId()]] <br>return userId
+
| style="border: 1px solid; width: 510.117px;" | [[getRPQUserId|getRPQUserId()]] <br>return userId
| style="border: 1px solid; width: 251px;" | [[getQASUserId|getQASUserId()]] <br>return userRId
+
| style="border: 1px solid; width: 370.7px;" | [[getQASUserId|getQASUserId()]] <br>return userRId
| style="border: 1px solid; width: 237px;" |
+
| style="border: 1px solid; width: 453.183px;" |
 
<br>
 
<br>
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[setTimezone|setTimezone(userId, timezoneId)]] <br>[[setTimezone|setTimezone(timezoneId)]]
+
| style="border: 1px solid; width: 510.117px;" | [[setTimezone|setTimezone(userId, timezoneId)]] <br>[[setTimezone|setTimezone(timezoneId)]]
| style="border: 1px solid; width: 251px;" | [[setUserTimezone|setUserTimezone(userRId, timezoneId)]] <br>[[setUserTimezone|setUserTimezone(timezoneId)]]
+
| style="border: 1px solid; width: 370.7px;" | [[setUserTimezone|setUserTimezone(userRId, timezoneId)]] <br>[[setUserTimezone|setUserTimezone(timezoneId)]]
| style="border: 1px solid; width: 237px;" |
+
| style="border: 1px solid; width: 453.183px;" |
 
<br>
 
<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: 510.117px;" | [[getTimezone|getTimezone(userId)]] <br>[[getTimezone|getTimezone()]]
| style="border: 1px solid; width: 251px;" | [[getUserTimezone|getUserTimezone(userRId)]] <br>[[getUserTimezone|getUserTimezone()]]
+
| style="border: 1px solid; width: 370.7px;" | [[getUserTimezone|getUserTimezone(userRId)]] <br>[[getUserTimezone|getUserTimezone()]]
| style="border: 1px solid; width: 237px;" |
+
| style="border: 1px solid; width: 453.183px;" |
 
<br>
 
<br>
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[setUserRoleId|setUserRoleId(userId, userResourceTemplateId)]]
+
| style="border: 1px solid; width: 510.117px;" | [[setUserRoleId|setUserRoleId(userId, userResourceTemplateId)]]
| style="border: 1px solid; width: 251px;" | User_setUserRoleId(userRId, userResourceTemplateRId)
+
| style="border: 1px solid; width: 370.7px;" | User_setUserRoleId(userRId, userResourceTemplateRId)
| style="border: 1px solid; width: 237px;" | same function: setResourceTemplateResourceId(resourceRId, resourceTemplateRId)
+
| style="border: 1px solid; width: 453.183px;" | same function: <br>setResourceTemplateResourceId(resourceRId, resourceTemplateRId)
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[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: 251px;" | 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: 237px;" | same function: <br>getResourceTemplateResourceId(resourceRId)
+
| style="border: 1px solid; width: 453.183px;" | same function: <br>getResourceTemplateResourceId(resourceRId)
 
|- 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: 510.117px;" | [[getQuestionnaireTemplateId|getQuestionnaireTemplateId(qnaireTemplateQualifiedName)]] <br>return qnaireTemplateId
| style="border: 1px solid; width: 251px;" | Questionnaire_getTemplateId <br>return qnaireTemplateRId
+
| style="border: 1px solid; width: 370.7px;" | Questionnaire_getTemplateId <br>return qnaireTemplateRId
| style="border: 1px solid; width: 237px;" | Questionnaire_getQuestionnaireTemplateId
+
| style="border: 1px solid; width: 453.183px;" | 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: 510.117px;" | [[getProjectQuestionnaireId|getProjectQuestionnaireId(qnaireQualifiedName)]] <br>return qnaireId
| style="border: 1px solid; width: 251px;" | Questionnaire_getProjectId <br>return qnaireRId
+
| style="border: 1px solid; width: 370.7px;" | Questionnaire_getProjectId <br>return qnaireRId
| style="border: 1px solid; width: 237px;" | Questionnaire_getQuestionnaireId
+
| style="border: 1px solid; width: 453.183px;" | 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: 510.117px;" | [[getReportStyleSheetIdByName|getReportStyleSheetIdByName(reportStyleSheetQualifiedName)]]<br>return ReportStyleSheetId
| style="border: 1px solid; width: 251px;" | Report_getStyleSheetIdByName <br>return ReportStyleSheetRId
+
| style="border: 1px solid; width: 370.7px;" | Report_getStyleSheetIdByName <br>return ReportStyleSheetRId
| style="border: 1px solid; width: 237px;" |
+
| style="border: 1px solid; width: 453.183px;" |
 
<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: 510.117px;" | [[getReportStyleSheetId|getReportStyleSheetId()]] <br>return ReportStyleSheetId
| style="border: 1px solid; width: 251px;" | Report_getStyleSheetId
+
| style="border: 1px solid; width: 370.7px;" | Report_getStyleSheetId
  
 
return ReportStyleSheetRId
 
return ReportStyleSheetRId
| style="border: 1px solid; width: 237px;" |
+
| style="border: 1px solid; width: 453.183px;" |
 
<br>
 
<br>
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[changeSampleRuleId|changeSampleRuleId]]
+
| style="border: 1px solid; width: 510.117px;" | [[changeSampleRuleId|changeSampleRuleId]]
| style="border: 1px solid; width: 251px;" | X
+
| style="border: 1px solid; width: 370.7px;" | X
 
<br>
 
<br>
| style="border: 1px solid; width: 237px;" |
+
| style="border: 1px solid; width: 453.183px;" |
 
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: 510.117px;" | [[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: 370.7px;" |
 
<br>
 
<br>
| style="border: 1px solid; width: 237px;" |
+
| style="border: 1px solid; width: 453.183px;" |
 
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: 510.117px;" | [[getProjectQuestionnaireName|getProjectQuestionnaireName(qnaireId)]] <br>[[getProjectQuestionnaireName|getProjectQuestionnaireName()]]
| style="border: 1px solid; width: 251px;" |
+
| style="border: 1px solid; width: 370.7px;" |
 
<br>
 
<br>
| style="border: 1px solid; width: 237px;" |
+
| style="border: 1px solid; width: 453.183px;" |
 
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: 510.117px;" | [[getReturnToProjectQuestionnaireId|getReturnToProjectQuestionnaireId()]] <br>return qnaireId
| style="border: 1px solid; width: 251px;" |
+
| style="border: 1px solid; width: 370.7px;" |
 
<br>
 
<br>
| style="border: 1px solid; width: 237px;" |
+
| style="border: 1px solid; width: 453.183px;" |
 
expected new functions name: getReturnToQuestionnaireId
 
expected new functions name: getReturnToQuestionnaireId
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[getUserProjectQuestionnaireId|getUserProjectQuestionnaireId()]]
+
| style="border: 1px solid; width: 510.117px;" | [[getUserProjectQuestionnaireId|getUserProjectQuestionnaireId()]]
| style="border: 1px solid; width: 251px;" | X
+
| style="border: 1px solid; width: 370.7px;" | X
 
<br>
 
<br>
| style="border: 1px solid; width: 237px;" |
+
| style="border: 1px solid; width: 453.183px;" |
 
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: 510.117px;" | [[getUserProjectQuestionnaireUserId|getUserProjectQuestionnaireUserId()]] <br>return UserId
| style="border: 1px solid; width: 251px;" |
+
| style="border: 1px solid; width: 370.7px;" |
 
<br>
 
<br>
| style="border: 1px solid; width: 237px;" |
+
| style="border: 1px solid; width: 453.183px;" |
 
already exist: getQASUserId
 
already exist: getQASUserId
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[questionnaireAnswerSheetExists|questionnaireAnswerSheetExists(qnaireId, userId)]] <br>[[questionnaireAnswerSheetExists|questionnaireAnswerSheetExists(qnaireId)]]
+
| style="border: 1px solid; width: 510.117px;" | [[questionnaireAnswerSheetExists|questionnaireAnswerSheetExists(qnaireId, userId)]] <br>[[questionnaireAnswerSheetExists|questionnaireAnswerSheetExists(qnaireId)]]
| style="border: 1px solid; width: 251px;" |
+
| style="border: 1px solid; width: 370.7px;" |
 
<br>
 
<br>
| style="border: 1px solid; width: 237px;" | already exist:<br>QAS_exists(qnaireRid, userRId)<br>QAS_exists(qnaieRId)
+
| style="border: 1px solid; width: 453.183px;" | already exist:<br>QAS_exists(qnaireRid, userRId)<br>QAS_exists(qnaieRId)
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[sampleRuleExists|sampleRuleExists]]
+
| style="border: 1px solid; width: 510.117px;" | [[sampleRuleExists|sampleRuleExists]]
| style="border: 1px solid; width: 251px;" | X
+
| style="border: 1px solid; width: 370.7px;" | X
 
<br>
 
<br>
| style="border: 1px solid; width: 237px;" |
+
| style="border: 1px solid; width: 453.183px;" |
 
sampleRule has only one kind of Id
 
sampleRule has only one kind of Id
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[setUserProjectQuestionnaireId|setUserProjectQuestionnaireId(QASId)]]
+
| style="border: 1px solid; width: 510.117px;" | [[setUserProjectQuestionnaireId|setUserProjectQuestionnaireId(QASId)]]
| style="border: 1px solid; width: 251px;" | X
+
| style="border: 1px solid; width: 370.7px;" | X
 
<br>
 
<br>
| style="border: 1px solid; width: 237px;" |
+
| style="border: 1px solid; width: 453.183px;" |
 
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: 510.117px;" | [[setUserProjectQuestionnaireUserId|setUserProjectQuestionnaireUserId(userId)]]
| style="border: 1px solid; width: 251px;" |
+
| style="border: 1px solid; width: 370.7px;" |
 
<br>
 
<br>
| style="border: 1px solid; width: 237px;" |
+
| style="border: 1px solid; width: 453.183px;" |
 
already exist: setQASUserId
 
already exist: setQASUserId
 
|}
 
|}

Revision as of 10:40, 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)
getUserRoleId(userId)
return userResourceTemplateId
User_getUserRoleId(userRId)
return userResourceTemplateRId
same function:
getResourceTemplateResourceId(resourceRId)
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:
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