diff --git a/ChangeLog b/ChangeLog index fc0e91807..e9b26301e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-03-29 Wolfgang Sourdeau + * UI/Contacts/UIxContactsListView.m ([UIxContactsListView + -canAccessContentAction]): new method to override the one from + UIxFoldersActions by taking into account the fact that, this time, + the clientObject is an ldap folder. Removed many method that used + to be related to the handling of the user selector. + * UI/Scheduler/UIxCalDayView.m: commented out many unused methods to make sure they can be removed. diff --git a/UI/Contacts/UIxContactsListView.m b/UI/Contacts/UIxContactsListView.m index a709758b7..41f27e89d 100644 --- a/UI/Contacts/UIxContactsListView.m +++ b/UI/Contacts/UIxContactsListView.m @@ -74,39 +74,13 @@ return searchText; } -- (NSString *) selectorComponentClass -{ - return selectorComponentClass; -} - -- (id) mailerContactsAction +- (id ) mailerContactsAction { selectorComponentClass = @"UIxContactsMailerSelection"; return self; } -- (id) calendarsContactsAction -{ - selectorComponentClass = @"UIxContactsCalendarsSelection"; - - return self; -} - -- (id) addressBooksContactsAction -{ - selectorComponentClass = @"UIxContactsAddressBooksSelection"; - - return self; -} - -- (id) aclsContactsAction -{ - selectorComponentClass = @"UIxContactsAclsSelection"; - - return self; -} - - (id ) deleteAction { id result; @@ -196,4 +170,23 @@ return YES; } +- (WOResponse *) canAccessContentAction +{ + WOResponse *response; + NSString *clientClass; + + clientClass = NSStringFromClass([[self clientObject] class]); + + response = [context response]; + [response setStatus: 200]; + [response setHeader: @"text/plain; charset=\"ascii\"" + forKey: @"content-type"]; + [response + appendContentString: + ([clientClass isEqualToString: @"SOGoContactLDAPFolder"]) + ? @"1" : @"0"]; + + return response; +} + @end /* UIxContactsListView */