+2007-01-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
+
+ * SoObjects/SOGo/SOGoAuthenticator.m ([SOGoAuthenticator
+ -checkLogin:_loginpassword:_pwd]): authorize special "freebusy"
+ user with password "freebusy".
+
+ * SoObjects/Appointments/SOGoFreeBusyObject.m ([SOGoFreeBusyObject
+ -contentAsString]): the default timerange is now 14 days before
+ currentday and 1 month after.
+
2007-01-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Appointments/SOGoAppointmentFolder.m
- (NSString *) contentAsString
{
- NSCalendarDate *startDate, *endDate;
+ NSCalendarDate *today, *startDate, *endDate;
- startDate = [[[NSCalendarDate calendarDate] mondayOfWeek] beginOfDay];
- endDate = [startDate dateByAddingYears: 0 months: 0 days: 7
- hours: 23 minutes: 59 seconds: 59];
+ today = [[NSCalendarDate calendarDate] beginOfDay];
+ [today setTimeZone: [self userTimeZone]];
+
+ startDate = [today dateByAddingYears: 0 months: 0 days: -14
+ hours: 0 minutes: 0 seconds: 0];
+ endDate = [startDate dateByAddingYears: 0 months: 1 days: 0
+ hours: 0 minutes: 0 seconds: 0];
return [self contentAsStringFrom: startDate to: endDate];
}
SOGoAppointmentFolder = {
superclass = "SOGoFolder";
defaultRoles = {
- "FreeBusyLookup" = ( "Owner", "Delegate", "Assistant", "FreeBusyLookup" );
+ "FreeBusyLookup" = ( "Owner", "Delegate", "Assistant", "FreeBusy" );
};
};
- (BOOL) checkLogin: (NSString *) _login
password: (NSString *) _pwd
{
- BOOL result;
-
-// return YES;
- if ([authMethod isEqualToString: @"LDAP"])
- result = [self LDAPCheckLogin: _login password: _pwd];
- else
- {
- if ([_login length] == 0)
- result = NO;
- else
- result = YES;
- }
-
- return result;
+ return (([_login isEqualToString: @"freebusy"]
+ && [_pwd isEqualToString: @"freebusy"])
+ || ([authMethod isEqualToString: @"LDAP"]
+ && [self LDAPCheckLogin: _login password: _pwd])
+ || [_login length] > 0);
}
- (BOOL) LDAPCheckLogin: (NSString *) _login