]> err.no Git - scalable-opengroupware.org/blobdiff - UI/Scheduler/UIxComponent+Agenor.m
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1045 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / UI / Scheduler / UIxComponent+Agenor.m
index 216dbc02119d4a8336ac54a304d21df24ba96ebf..20aa370d02cde043bbaf18d4b24693085f27141e 100644 (file)
 
 @implementation UIxComponent(Agenor)
 
-- (NSString *)emailForUser {
-  return [[[self context] activeUser] email];
+- (NSArray *) getICalPersonsFromValue: (NSString *) selectorValue
+{
+  NSMutableArray *persons;
+  NSEnumerator *uids;
+  NSString *uid;
+  AgenorUserManager *um;
+
+  um = [AgenorUserManager sharedUserManager];
+
+  persons = [NSMutableArray new];
+  [persons autorelease];
+
+  if ([selectorValue length] > 0)
+    {
+      uids = [[selectorValue componentsSeparatedByString: @","]
+               objectEnumerator];
+      uid = [uids nextObject];
+      while (uid)
+        {
+          [persons addObject: [um iCalPersonWithUid: uid]];
+          uid = [uids nextObject];
+        }
+    }
+
+  return persons;
 }
 
-- (NSString *)cnForUser {
-  return [[[self context] activeUser] cn];
+- (NSString *) emailForUser
+{
+  return [[context activeUser] email];
 }
 
-- (BOOL)isAccessRestricted {
-  return [[self context] isAccessFromIntranet] ? NO : YES;
+- (NSString *) cnForUser
+{
+  return [[context activeUser] cn];
 }
 
 @end /* UIxComponent(Agenor) */