@@ -594,26 +594,26 @@ service codeCheckerDBAccess {
594594 // ============================================
595595
596596 // Stores the given FilterPreset with the given id
597- // If the preset exists, it overwrites the name, and all preset values
598- // if the preset does not exist yet, it creates it with
599- // if the id is -1 a new preset filter is created
600- // the filter preset name must be unique.
601- // An error must be thrown if another preset exists with the same name.
602- // The encoding of the name must be unicode. (whitespaces allowed?)
603- // Returns: the id of the modified or created preset, -1 in case of error
597+ // If the preset exists with the given id , it overwrites the name, and all preset values
598+ // if the preset does not exist yet, throws and error
599+ // if the id is -1 a new preset filter is created and the id of the new preset is returned.
600+ // If a preset with that name already existed, it throws an error. Thus the filter preset name must be unique.
601+ // The encoding of the name must be unicode. (whitespaces allowed)
602+ // Maximum filter preset name 50
603+ // Returns: the id of the modified or created preset
604604 // PERMISSION: PRODUCT_ADMIN
605605 i64 storeFilterPreset (1: FilterPreset preset )
606606 throws (1: codechecker_api_shared.RequestFailed requestError );
607607
608608 // Returns the FilterPreset identified by id
609- // Returns -1 in case there is no preset with the given id
609+ // Throws and error in case there is no preset with the given id
610610 // PERMISSION: PRODUCT_VIEW
611611 FilterPreset getFilterPreset (1: i64 id )
612612 throws (1: codechecker_api_shared.RequestFailed requestError );
613613
614- // Removes the filterpreset with the given id
614+ // Removes the filter preset with the given id
615615 // returns the id of the filter preset removed
616- // and -1 in case of error .
616+ // throws an error if the preset with the given id does not exist .
617617 // PERMISSION: PRODUCT_ADMIN
618618 i64 deleteFilterPreset (1: i64 id )
619619 throws (1: codechecker_api_shared.RequestFailed requestError );
0 commit comments