diff --git a/ChangeLog b/ChangeLog index df49e730e..d7c1d03e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-12-14 Wolfgang Sourdeau + * SoObjects/SOGo/SOGoPermissions.[hm]: new module that extends the + values from SoPermissions with ones specific to SOGo. + * SoObjects/SOGo/SOGoAclsFolder.[hm]: new class module that handles the storage for the acls. diff --git a/SoObjects/SOGo/SOGoPermissions.h b/SoObjects/SOGo/SOGoPermissions.h new file mode 100644 index 000000000..ee196174a --- /dev/null +++ b/SoObjects/SOGo/SOGoPermissions.h @@ -0,0 +1,39 @@ +/* SOGoPermissions.h - this file is part of SOGo + * + * Copyright (C) 2006 Inverse groupe conseil + * + * Author: Wolfgang Sourdeau + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef SOGOPERMISSIONS_H +#define SOGOPERMISSIONS_H + +#import + +#import + +extern NSString *SOGoRole_Assistant; +extern NSString *SOGoRole_Delegate; +extern NSString *SOGoRole_FreeBusyLookup; +extern NSString *SOGoRole_FreeBusy; + +extern NSString *SOGoPerm_ReadAcls; +extern NSString *SOGoPerm_CreateAndModifyAcls; +extern NSString *SOGoPerm_FreeBusyLookup; + +#endif /* SOGOPERMISSIONS_H */ diff --git a/SoObjects/SOGo/SOGoPermissions.m b/SoObjects/SOGo/SOGoPermissions.m new file mode 100644 index 000000000..13e7cb9c6 --- /dev/null +++ b/SoObjects/SOGo/SOGoPermissions.m @@ -0,0 +1,42 @@ +/* SOGoPermissions.m - this file is part of SOGo + * + * Copyright (C) 2006 Inverse groupe conseil + * + * Author: Wolfgang Sourdeau + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#import "SOGoPermissions.h" + +NSString *SOGoRole_Assistant = @"Assistant"; /* a colleague */ +NSString *SOGoRole_Delegate = @"Delegate"; /* a colleague or person that I + trust in adding or modifying my + data */ +NSString *SOGoRole_FreeBusyLookup = @"FreeBusyLookup"; /* for users that have + access to the + freebusy information + from a specific + calendar */ +NSString *SOGoRole_FreeBusy = @"FreeBusy"; /* for the "freebusy" special user + */ + +#warning ReadAcls still not used... +NSString *SOGoPerm_ReadAcls = @"ReadAcls"; /* the equivalent of "read-acl" in + the WebDAV acls spec, which is + currently missing from SOPE */ +NSString *SOGoPerm_CreateAndModifyAcls = @"CreateAndModifyAcls"; +NSString *SOGoPerm_FreeBusyLookup = @"FreeBusyLookup";