diff --git a/UI/Contacts/UIxContactFoldersView.m b/UI/Contacts/UIxContactFoldersView.m index 4219446d0..6a1b106a1 100644 --- a/UI/Contacts/UIxContactFoldersView.m +++ b/UI/Contacts/UIxContactFoldersView.m @@ -25,6 +25,7 @@ #import #import #import +#import #import #import @@ -68,6 +69,21 @@ return [self _selectActionForApplication: @"new"]; } +- (id ) newAbAction +{ + id response; + NSString *name; + + name = [self queryParameterForKey: @"name"]; + if ([name length] > 0) + response = [[self clientObject] newFolderWithName: name]; + else + response = [NSException exceptionWithHTTPStatus: 400 + reason: @"The name is missing"]; + + return response; +} + - (id) selectForSchedulerAction { return [self _selectActionForApplication: @"scheduler-contacts"]; diff --git a/UI/Contacts/product.plist b/UI/Contacts/product.plist index 7dce9f599..a3424d7ba 100644 --- a/UI/Contacts/product.plist +++ b/UI/Contacts/product.plist @@ -17,6 +17,11 @@ pageName = "UIxContactFoldersView"; actionName = "new"; }; + newAb = { + protectedBy = "View"; + pageName = "UIxContactFoldersView"; + actionName = "newAb"; + }; scheduler-contacts = { protectedBy = "View"; pageName = "UIxContactFoldersView";