Skip to content

Commit 48b97f9

Browse files
fix[frontend](file_classification): fixed access mask enum type setted to numeric values and matched to hex on filter show
1 parent 0d5411c commit 48b97f9

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

frontend/src/app/data-management/file-management/shared/const/file-acces-mask.constant.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ import {FileAccessMaskCodeType} from '../types/file-access-mask-code.type';
44
export const ACCESS_MASK_CODES: FileAccessMaskCodeType[] = [
55
{
66
access: 'ReadData (or ListDirectory)',
7-
hex: parseInt(AccessMaskEnum.READ_DATA,16),
7+
hex: `${AccessMaskEnum.READ_DATA}`,
88
description: 'ReadData - For a file object, the right to read ' +
99
'the corresponding file data. For a directory object, the right to read the' +
1010
' corresponding directory data.\n' +
1111
'ListDirectory - For a directory, the right to list the contents of the directory.'
1212
},
1313
{
1414
access: 'WriteData (or AddFile)',
15-
hex:parseInt( AccessMaskEnum.WRITE_DATA,16),
15+
hex:`${ AccessMaskEnum.WRITE_DATA}`,
1616
description: 'WriteData - For a file object, the right to write data to the file. ' +
1717
'For a directory object, the right to create a file in the directory (FILE_ADD_FILE).\n' +
1818
'AddFile - For a directory, the right to create a file in the directory..'
1919
},
2020
{
2121
access: 'AppendData (or AddSubdirectory or CreatePipeInstance)',
22-
hex:parseInt( AccessMaskEnum.APPEND_DATA,16),
22+
hex:`${ AccessMaskEnum.APPEND_DATA}`,
2323
description: 'AppendData - For a file object, the right to append data to the file.' +
2424
' (For local files, write operations will not overwrite existing data if this flag ' +
2525
'is specified without FILE_WRITE_DATA.) For a directory object, the right to create a ' +
@@ -29,17 +29,17 @@ export const ACCESS_MASK_CODES: FileAccessMaskCodeType[] = [
2929
},
3030
{
3131
access: 'ReadEA(For registry objects, this is Enumerate sub-keys.)',
32-
hex:parseInt( AccessMaskEnum.READ_EA,16),
32+
hex:`${ AccessMaskEnum.READ_EA}`,
3333
description: 'The right to read extended file attributes.'
3434
},
3535
{
3636
access: 'WriteEA',
37-
hex:parseInt( AccessMaskEnum.WRITE_EA,16),
37+
hex:`${ AccessMaskEnum.WRITE_EA}`,
3838
description: 'The right to write extended file attributes.'
3939
},
4040
{
4141
access: 'Execute/Traverse',
42-
hex:parseInt( AccessMaskEnum.EXECUTE_TRAVERSE,16),
42+
hex:`${ AccessMaskEnum.EXECUTE_TRAVERSE}`,
4343
description: 'Execute - For a native code file, the right to execute' +
4444
' the file. This access right given to scripts may cause the ' +
4545
'script to be executable, depending on the script interpreter.\n' +
@@ -50,52 +50,52 @@ export const ACCESS_MASK_CODES: FileAccessMaskCodeType[] = [
5050
},
5151
{
5252
access: 'Delete child',
53-
hex:parseInt( AccessMaskEnum.DELETE_CHILD,16),
53+
hex:`${ AccessMaskEnum.DELETE_CHILD}`,
5454
description: 'For a directory, the right to delete a directory and all the ' +
5555
'files it contains, including read-only files.'
5656
},
5757
{
5858
access: 'Read attributes',
59-
hex:parseInt( AccessMaskEnum.READ_ATTRIBUTES,16),
59+
hex:`${ AccessMaskEnum.READ_ATTRIBUTES}`,
6060
description: 'The right to read file attributes.'
6161
},
6262
{
6363
access: 'Write attributes',
64-
hex:parseInt( AccessMaskEnum.WRITE_ATTRIBUTES,16),
64+
hex:`${ AccessMaskEnum.WRITE_ATTRIBUTES}`,
6565
description: 'The right to write file attributes.'
6666
},
6767
{
6868
access: 'Delete',
69-
hex:parseInt( AccessMaskEnum.DELETE,16),
69+
hex:`${ AccessMaskEnum.DELETE}`,
7070
description: 'The right to delete the object.'
7171
},
7272
{
7373
access: 'Read control',
74-
hex:parseInt( AccessMaskEnum.READ_CONTROL,16),
74+
hex:`${ AccessMaskEnum.READ_CONTROL}`,
7575
description: 'The right to read the information in the object\'s security' +
7676
' descriptor, not including the information' +
7777
' in the system access control list (SACL).'
7878
},
7979
{
8080
access: 'Write DAC',
81-
hex:parseInt( AccessMaskEnum.WRITE_AC,16),
81+
hex:`${ AccessMaskEnum.WRITE_AC}`,
8282
description: 'The right to modify the discretionary access control list' +
8383
' (DACL) in the object\'s security descriptor.'
8484
},
8585
{
8686
access: 'Write OWNER',
87-
hex:parseInt( AccessMaskEnum.WRITE_OWNER,16),
87+
hex:`${ AccessMaskEnum.WRITE_OWNER}`,
8888
description: 'The right to change the owner in the object\'s security descriptor'
8989
},
9090
{
9191
access: 'Synchronize',
92-
hex:parseInt( AccessMaskEnum.SYNCHRONIZE,16),
92+
hex:`${ AccessMaskEnum.SYNCHRONIZE}`,
9393
description: 'The right to use the object for synchronization. This enables a thread to ' +
9494
'wait until the object is in the signaled state. Some object type do not support this access right.'
9595
},
9696
{
9797
access: 'Access SYS_SEC',
98-
hex:parseInt( AccessMaskEnum.ACCESS_SYS_SEC,16),
98+
hex:`${ AccessMaskEnum.ACCESS_SYS_SEC}`,
9999
description: 'The ACCESS_SYS_SEC access right controls the ability to get or set the SACL' +
100100
' in an object\'s security descriptor.'
101101
}
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
export enum AccessMaskEnum {
2-
READ_DATA = '0x1',
3-
WRITE_DATA = '0x2',
4-
APPEND_DATA = '0x4',
5-
READ_EA = '0x8',
6-
WRITE_EA = '0x10',
7-
EXECUTE_TRAVERSE = '0x20',
8-
DELETE_CHILD = '0x40',
9-
READ_ATTRIBUTES = '0x80',
10-
WRITE_ATTRIBUTES = '0x100',
11-
DELETE = '0x10000',
12-
READ_CONTROL = '0x20000',
13-
WRITE_AC = '0x40000',
14-
WRITE_OWNER = '0x80000',
15-
SYNCHRONIZE = '0x100000',
16-
ACCESS_SYS_SEC = '0x1000000'
2+
READ_DATA = 0x1,
3+
WRITE_DATA = 0x2,
4+
APPEND_DATA = 0x4,
5+
READ_EA = 0x8,
6+
WRITE_EA = 0x10,
7+
EXECUTE_TRAVERSE = 0x20,
8+
DELETE_CHILD = 0x40,
9+
READ_ATTRIBUTES = 0x80,
10+
WRITE_ATTRIBUTES = 0x100,
11+
DELETE = 0x10000,
12+
READ_CONTROL = 0x20000,
13+
WRITE_AC = 0x40000,
14+
WRITE_OWNER = 0x80000,
15+
SYNCHRONIZE = 0x100000,
16+
ACCESS_SYS_SEC = 0x1000000
1717
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export class FileAccessMaskCodeType {
22
access: string;
3-
hex?: number;
3+
hex?: string;
44
description?: string;
55
}

0 commit comments

Comments
 (0)