Monotone-Parent: 10fd99221b45b565526188e4580f4cd6b647df6d
Monotone-Revision: be74b6fb3582ef97515c3cb7410750aa6d1d7641 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-02-09T21:24:15 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
b2f4335b45
commit
96a3f1ef24
|
@ -25,6 +25,7 @@
|
||||||
#import <NGObjWeb/NSException+HTTP.h>
|
#import <NGObjWeb/NSException+HTTP.h>
|
||||||
#import <NGObjWeb/SoObject.h>
|
#import <NGObjWeb/SoObject.h>
|
||||||
#import <NGObjWeb/WOResponse.h>
|
#import <NGObjWeb/WOResponse.h>
|
||||||
|
#import <NGObjWeb/WOContext.h>
|
||||||
|
|
||||||
#import <SoObjects/SOGo/SOGoUser.h>
|
#import <SoObjects/SOGo/SOGoUser.h>
|
||||||
#import <SoObjects/SOGo/NSString+Utilities.h>
|
#import <SoObjects/SOGo/NSString+Utilities.h>
|
||||||
|
@ -68,6 +69,21 @@
|
||||||
return [self _selectActionForApplication: @"new"];
|
return [self _selectActionForApplication: @"new"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (id <WOActionResults>) newAbAction
|
||||||
|
{
|
||||||
|
id <WOActionResults> 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
|
- (id) selectForSchedulerAction
|
||||||
{
|
{
|
||||||
return [self _selectActionForApplication: @"scheduler-contacts"];
|
return [self _selectActionForApplication: @"scheduler-contacts"];
|
||||||
|
|
|
@ -17,6 +17,11 @@
|
||||||
pageName = "UIxContactFoldersView";
|
pageName = "UIxContactFoldersView";
|
||||||
actionName = "new";
|
actionName = "new";
|
||||||
};
|
};
|
||||||
|
newAb = {
|
||||||
|
protectedBy = "View";
|
||||||
|
pageName = "UIxContactFoldersView";
|
||||||
|
actionName = "newAb";
|
||||||
|
};
|
||||||
scheduler-contacts = {
|
scheduler-contacts = {
|
||||||
protectedBy = "View";
|
protectedBy = "View";
|
||||||
pageName = "UIxContactFoldersView";
|
pageName = "UIxContactFoldersView";
|
||||||
|
|
Loading…
Reference in a new issue