mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Update wrong methods (#6882)
* Update wrong methods * tslint fix * change back to StringUtil
This commit is contained in:
@@ -107,18 +107,20 @@ export class StringUtil {
|
|||||||
return fileNames;
|
return fileNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Generates a random name for a process
|
||||||
* Generates a random name for a process
|
*
|
||||||
|
* @param length {int} If this parameter is not provided the length is set to 5 by default.
|
||||||
*/
|
*/
|
||||||
static generateProcessName(): string {
|
static generateProcessName(length: number = 5): string {
|
||||||
return 'process_' + StringUtil.generateRandomString(5);
|
return 'process_' + StringUtil.generateRandomString(length);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Generates a random name for a process
|
||||||
* Generates a random name for a task
|
*
|
||||||
|
* @param length {int} If this parameter is not provided the length is set to 5 by default.
|
||||||
*/
|
*/
|
||||||
static generateUserTaskName(): string {
|
static generateUserTaskName(length: number = 5): string {
|
||||||
return 'userTask_' + StringUtil.generateRandomString(5);
|
return 'userTask_' + StringUtil.generateRandomString(length);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user