Monotone-Parent: 29bd9d1c5051eac140806ad6a68c2587e599f1c8

Monotone-Revision: ff895fda6a6ad0202ba5094f8f2c79c3278396f2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-02-21T21:12:41
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2007-02-21 21:12:41 +00:00
parent 7319adaeaf
commit 11bee71579
1 changed files with 28 additions and 4 deletions

View File

@ -19,10 +19,13 @@
02111-1307, USA.
*/
#include "SOGoContentObject.h"
#include "SOGoFolder.h"
#include "common.h"
#include <GDLContentStore/GCSFolder.h>
#import <GDLContentStore/GCSFolder.h>
#import <SOGo/SOGoUser.h>
#import "common.h"
#import "SOGoFolder.h"
#import "SOGoContentObject.h"
@interface SOGoContentObject(ETag)
- (NSArray *)parseETagList:(NSString *)_c;
@ -236,6 +239,27 @@
return [_ctx response];
}
/* security */
- (NSArray *) rolesOfUser: (NSString *) login
inContext: (WOContext *) context
{
NSMutableArray *sogoRoles;
SOGoUser *user;
sogoRoles = [NSMutableArray new];
[sogoRoles autorelease];
if (![container nameExistsInFolder: nameInContainer])
{
user = [[SOGoUser alloc] initWithLogin: login roles: nil];
[sogoRoles addObjectsFromArray: [user rolesForObject: container
inContext: context]];
[user release];
}
return sogoRoles;
}
/* E-Tags */
- (id)davEntityTag {