mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 17:05:10 +00:00
Monotone-Parent: e13aba14f9bcb6e2cbec65189340ac8704204778
Monotone-Revision: e2159d82254439aa0954efbb3e1730d45a41c2d6 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-04-17T14:09:29 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
2007-04-17 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoObject.m ([SOGoObject -acls]): stub method
|
||||
that requires overriding by subclasses.
|
||||
([SOGoObject -aclsForUser:uid]): idem.
|
||||
([SOGoObject -defaultAclRoles]): idem.
|
||||
([SOGoObject -setRoles:rolesforUser:uid]): idem.
|
||||
([SOGoObject -removeAclsForUsers:users]): idem.
|
||||
|
||||
* UI/Common/UIxObjectActions.m: new module implementing the web
|
||||
actions common to SOGoObject and all its subclasses.
|
||||
([UIxObjectActions -addUserInAclsAction]): new method that adds a
|
||||
|
||||
@@ -86,9 +86,18 @@
|
||||
|
||||
- (NSException *)matchesRequestConditionInContext:(id)_ctx;
|
||||
|
||||
/* acls */
|
||||
|
||||
- (NSString *) defaultAclRoles;
|
||||
- (NSArray *) acls;
|
||||
- (NSArray *) aclsForUser: (NSString *) uid;
|
||||
- (void) setRoles: (NSString *) roles
|
||||
forUser: (NSString *) uid;
|
||||
- (void) removeAclsForUsers: (NSArray *) users;
|
||||
|
||||
/* description */
|
||||
|
||||
- (void)appendAttributesToDescription:(NSMutableString *)_ms;
|
||||
- (void) appendAttributesToDescription:(NSMutableString *)_ms;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#import <NGObjWeb/WORequest.h>
|
||||
#import <NGObjWeb/WOApplication.h>
|
||||
#import <NGCards/NSDictionary+NGCards.h>
|
||||
#import <GDLContentStore/GCSFolder.h>
|
||||
|
||||
#import "common.h"
|
||||
|
||||
@@ -34,7 +35,6 @@
|
||||
|
||||
#import "SOGoPermissions.h"
|
||||
#import "SOGoUser.h"
|
||||
#import "SOGoAclsFolder.h"
|
||||
#import "SOGoAuthenticator.h"
|
||||
#import "SOGoUserFolder.h"
|
||||
|
||||
@@ -354,7 +354,7 @@ static BOOL kontactGroupDAV = YES;
|
||||
NSDictionary *currentAcl;
|
||||
SoClassSecurityInfo *sInfo;
|
||||
|
||||
acls = [[[SOGoAclsFolder aclsFolder] aclsForObject: self] objectEnumerator];
|
||||
acls = [[self acls] objectEnumerator];
|
||||
aclsDictionary = [NSMutableDictionary dictionary];
|
||||
sInfo = [[self class] soClassSecurityInfo];
|
||||
|
||||
@@ -690,6 +690,40 @@ static BOOL kontactGroupDAV = YES;
|
||||
return nil;
|
||||
}
|
||||
|
||||
/* acls */
|
||||
|
||||
- (NSArray *) acls
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSArray *) aclsForUser: (NSString *) uid
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSString *) defaultAclRoles
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setRoles: (NSString *) roles
|
||||
forUser: (NSString *) uid
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) removeAclsForUsers: (NSArray *) users
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
/* description */
|
||||
|
||||
- (void)appendAttributesToDescription:(NSMutableString *)_ms {
|
||||
|
||||
Reference in New Issue
Block a user