Renamed XXX method
MODIFY
src/server/rest/v1/service/UtilsService.ts
src/server/rest/v1/service/UtilsService.ts
@@ -653,13 +653,13 @@ export default class UtilsService {
public static async checkAndGetTagAuthorization(tenant: Tenant, userToken:UserToken, tagID: string, authAction: Action,
action: ServerAction, entityData?: EntityDataType, additionalFilters: Record<string, any> = {}, applyProjectFields = false, checkIssuer = true): Promise<Tag> {
- return UtilsService.checkAndGetTagByXXXAuthorization(tenant, userToken, tagID, TagStorage.getTag.bind(this),
+ return UtilsService.checkAndGetTagByIDOrVisualIDAuthorization(tenant, userToken, tagID, TagStorage.getTag.bind(this),
authAction, action, entityData, additionalFilters, applyProjectFields, checkIssuer);
}
public static async checkAndGetTagByVisualIDAuthorization(tenant: Tenant, userToken:UserToken, tagID: string, authAction: Action,
action: ServerAction, entityData?: EntityDataType, additionalFilters: Record<string, any> = {}, applyProjectFields = false, checkIssuer = true): Promise<Tag> {
- return UtilsService.checkAndGetTagByXXXAuthorization(tenant, userToken, tagID, TagStorage.getTagByVisualID.bind(this),
+ return UtilsService.checkAndGetTagByIDOrVisualIDAuthorization(tenant, userToken, tagID, TagStorage.getTagByVisualID.bind(this),
authAction, action, entityData, additionalFilters, applyProjectFields, checkIssuer);
}
@@ -1784,7 +1784,7 @@ export default class UtilsService {
return properties;
}
- private static async checkAndGetTagByXXXAuthorization(tenant: Tenant, userToken:UserToken, id: string,
+ private static async checkAndGetTagByIDOrVisualIDAuthorization(tenant: Tenant, userToken:UserToken, id: string,
getTagByXXX: (tenantID: string, id: string, params: any, projectedFileds: string[]) => Promise<Tag>, authAction: Action,
action: ServerAction, entityData?: EntityDataType, additionalFilters: Record<string, any> = {}, applyProjectFields = false, checkIssuer = true): Promise<Tag> {
// Check mandatory fields

Renamed XXX method