summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Constants.pm
diff options
context:
space:
mode:
authorKoosha Khajeh Moogahi <koosha.khajeh@gmail.com>2012-09-21 21:24:16 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-09-21 21:24:16 +0200
commit56189de68ab5effc1708ddf65f861842ed48d6ab (patch)
tree0b8be235a26e40da67f61771360ee34df77d82b1 /Bugzilla/WebService/Constants.pm
parent0ebb96a0742e949cd4cb63ab6ae1be158283ef34 (diff)
downloadbugzilla-56189de68ab5effc1708ddf65f861842ed48d6ab.tar.gz
bugzilla-56189de68ab5effc1708ddf65f861842ed48d6ab.tar.xz
Bug 694755: Add Classification API to WebServices (implement Classification.get())
r/a=LpSolit
Diffstat (limited to 'Bugzilla/WebService/Constants.pm')
-rw-r--r--Bugzilla/WebService/Constants.pm14
1 files changed, 9 insertions, 5 deletions
diff --git a/Bugzilla/WebService/Constants.pm b/Bugzilla/WebService/Constants.pm
index dcd3a9fd7..2ffad430c 100644
--- a/Bugzilla/WebService/Constants.pm
+++ b/Bugzilla/WebService/Constants.pm
@@ -159,6 +159,9 @@ use constant WS_ERROR_CODE => {
empty_group_description => 802,
invalid_regexp => 803,
+ # Classification errors are 900-1000
+ auth_classification_not_enabled => 900,
+
# Errors thrown by the WebService itself. The ones that are negative
# conform to http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php
xmlrpc_invalid_value => -32600,
@@ -187,11 +190,12 @@ sub WS_DISPATCH {
Bugzilla::Hook::process('webservice', { dispatch => \%hook_dispatch });
my $dispatch = {
- 'Bugzilla' => 'Bugzilla::WebService::Bugzilla',
- 'Bug' => 'Bugzilla::WebService::Bug',
- 'User' => 'Bugzilla::WebService::User',
- 'Product' => 'Bugzilla::WebService::Product',
- 'Group' => 'Bugzilla::WebService::Group',
+ 'Bugzilla' => 'Bugzilla::WebService::Bugzilla',
+ 'Bug' => 'Bugzilla::WebService::Bug',
+ 'Classification' => 'Bugzilla::WebService::Classification',
+ 'Group' => 'Bugzilla::WebService::Group',
+ 'Product' => 'Bugzilla::WebService::Product',
+ 'User' => 'Bugzilla::WebService::User',
%hook_dispatch
};
return $dispatch;