mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
Monotone-Parent: 8bdda4b4de8339817059e9fba4d3a5e2a64d84ff
Monotone-Revision: 991fa5d50c1c078407d84332831b1f0c32190152 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-01-03T21:13:28 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
2007-01-03 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Common/UIxAclEditor.m ([UIxAclEditor -assistantsValue]): new
|
||||
accessor that returns the comma-separated list of users with role
|
||||
"Assistant".
|
||||
([UIxAclEditor -delegatesValue]): same as above for "Delegate".
|
||||
([UIxAclEditor -_prepareUsers]): there is no longer a concept of
|
||||
"checkedUsers". Instead, each user is either classified in the
|
||||
list of assistants or the list of delegates.
|
||||
|
||||
2006-12-22 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/MailerUI/UIxMailMainFrame.m ([UIxMailMainFrame
|
||||
|
||||
@@ -31,12 +31,15 @@
|
||||
BOOL publishInFreeBusy;
|
||||
NSArray *acls;
|
||||
NSMutableArray *users;
|
||||
NSMutableArray *checkedUsers;
|
||||
NSMutableArray *assistants;
|
||||
NSMutableArray *delegates;
|
||||
NSString *ownerCN;
|
||||
}
|
||||
|
||||
- (NSArray *) aclsForFolder;
|
||||
- (NSString *) ownerCN;
|
||||
- (NSString *) assistantsValue;
|
||||
- (NSString *) delegatesValue;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -41,7 +41,8 @@
|
||||
prepared = NO;
|
||||
publishInFreeBusy = NO;
|
||||
users = [NSMutableArray new];
|
||||
checkedUsers = [NSMutableArray new];
|
||||
delegates = [NSMutableArray new];
|
||||
assistants = [NSMutableArray new];
|
||||
ownerCN = nil;
|
||||
}
|
||||
|
||||
@@ -51,7 +52,8 @@
|
||||
- (void) dealloc
|
||||
{
|
||||
[users release];
|
||||
[checkedUsers release];
|
||||
[delegates release];
|
||||
[assistants release];
|
||||
if (ownerCN)
|
||||
[ownerCN release];
|
||||
[super dealloc];
|
||||
@@ -104,7 +106,9 @@
|
||||
{
|
||||
if ([[currentAcl objectForKey: @"c_role"]
|
||||
isEqualToString: SOGoRole_Delegate])
|
||||
[checkedUsers addObject: currentUser];
|
||||
[delegates addObject: [currentUser cn]];
|
||||
else
|
||||
[assistants addObject: [currentUser cn]];
|
||||
[users addObject: currentUser];
|
||||
}
|
||||
}
|
||||
@@ -122,12 +126,28 @@
|
||||
return users;
|
||||
}
|
||||
|
||||
- (NSArray *) checkedUsers
|
||||
- (NSArray *) delegates
|
||||
{
|
||||
if (!prepared)
|
||||
[self _prepareUsers];
|
||||
|
||||
return checkedUsers;
|
||||
return delegates;
|
||||
}
|
||||
|
||||
- (NSString *) assistantsValue
|
||||
{
|
||||
if (!prepared)
|
||||
[self _prepareUsers];
|
||||
|
||||
return [assistants componentsJoinedByString: @","];
|
||||
}
|
||||
|
||||
- (NSString *) delegatesValue
|
||||
{
|
||||
if (!prepared)
|
||||
[self _prepareUsers];
|
||||
|
||||
return [delegates componentsJoinedByString: @","];
|
||||
}
|
||||
|
||||
- (BOOL) publishInFreeBusy
|
||||
|
||||
Reference in New Issue
Block a user