New administration module

Monotone-Parent: 8542ad5d3580057a3e361ef25f6c24df41841c52
Monotone-Revision: f6040f9d8af2e51778344f97f1c76c9125f0af7b

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-08-13T10:40:25
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2009-08-13 10:40:25 +00:00
parent 5eb391b009
commit 8e55eeb4b9
25 changed files with 478 additions and 24 deletions
@@ -0,0 +1,33 @@
/* AdministrationUIProduct.m - this file is part of SOGo
*
* Copyright (C) 2009 Inverse inc.
*
* Author: Francis Lachapelle <flachapelle@inverse.ca>
*
* 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 <Foundation/NSObject.h>
@interface AdministrationUIProduct : NSObject
{
}
@end
@implementation AdministrationUIProduct
@end
@@ -0,0 +1,12 @@
/* this file is in UTF-8 format! */
"Modules" = "Modules";
/* Modules short names */
"ACLs" = "ACLs";
/* Modules titles */
"ACLs_title" = "Users folders ACLs management";
/* Modules descriptions */
"ACLs_description" = "<p>The Access Control Lists administration module allows to change the ACLs of each user's Calendars and Address books.</p><p>To modify the ACLs of a user's folder, type the name of the user in the search field at the top of the window and double-click on the desired folder.</p>";
@@ -0,0 +1,12 @@
/* this file is in UTF-8 format! */
"Modules" = "Modules";
/* Modules short names */
"ACLs" = "ACLs";
/* Modules titles */
"ACLs_title" = "Users folders ACLs management";
/* Modules descriptions */
"ACLs_description" = "<p>The Access Control Lists administration module allows to change the ACLs of each user's Calendars and Address books.</p><p>To modify the ACLs of a user's folder, type the name of the user in the search field at the top of the window and double-click on the desired folder.</p>";
@@ -0,0 +1,12 @@
/* this file is in UTF-8 format! */
"Modules" = "Modules";
/* Modules short names */
"ACLs" = "ACLs";
/* Modules titles */
"ACLs_title" = "Users folders ACLs management";
/* Modules descriptions */
"ACLs_description" = "<p>The Access Control Lists administration module allows to change the ACLs of each user's Calendars and Address books.</p><p>To modify the ACLs of a user's folder, type the name of the user in the search field at the top of the window and double-click on the desired folder.</p>";
@@ -0,0 +1,12 @@
/* this file is in UTF-8 format! */
"Modules" = "Modules";
/* Modules short names */
"ACLs" = "ACLs";
/* Modules titles */
"ACLs_title" = "Users folders ACLs management";
/* Modules descriptions */
"ACLs_description" = "<p>The Access Control Lists administration module allows to change the ACLs of each user's Calendars and Address books.</p><p>To modify the ACLs of a user's folder, type the name of the user in the search field at the top of the window and double-click on the desired folder.</p>";
@@ -0,0 +1,12 @@
/* this file is in UTF-8 format! */
"Modules" = "Modules";
/* Modules short names */
"ACLs" = "ACLs";
/* Modules titles */
"ACLs_title" = "Users folders ACLs management";
/* Modules descriptions */
"ACLs_description" = "<p>The Access Control Lists administration module allows to change the ACLs of each user's Calendars and Address books.</p><p>To modify the ACLs of a user's folder, type the name of the user in the search field at the top of the window and double-click on the desired folder.</p>";
+32
View File
@@ -0,0 +1,32 @@
# GNUstep makefile
include ../common.make
BUNDLE_NAME = AdministrationUI
AdministrationUI_PRINCIPAL_CLASS = AdministrationUIProduct
AdministrationUI_LANGUAGES = BrazilianPortuguese Czech Dutch English French German Hungarian Italian Spanish Welsh Russian
AdministrationUI_OBJC_FILES = \
AdministrationUIProduct.m \
\
UIxAdministration.m \
UIxAdministrationFilterPanel.m
AdministrationUI_RESOURCE_FILES += \
Version \
product.plist
#AdministrationUI_RESOURCE_FILES += \
# Toolbars/UIxAdministration.toolbar
AdministrationUI_LOCALIZED_RESOURCE_FILES += \
Localizable.strings \
ADDITIONAL_INCLUDE_DIRS += -I../../SOPE/
ADDITIONAL_LIB_DIRS += -L../../SOPE/GDLContentStore/obj/
-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/bundle.make
-include GNUmakefile.postamble
@@ -0,0 +1,12 @@
/* this file is in UTF-8 format! */
"Modules" = "Modules";
/* Modules short names */
"ACLs" = "ACLs";
/* Modules titles */
"ACLs_title" = "Users folders ACLs management";
/* Modules descriptions */
"ACLs_description" = "<p>The Access Control Lists administration module allows to change the ACLs of each user's Calendars and Address books.</p><p>To modify the ACLs of a user's folder, type the name of the user in the search field at the top of the window and double-click on the desired folder.</p>";
@@ -0,0 +1,12 @@
/* this file is in UTF-8 format! */
"Modules" = "Modules";
/* Modules short names */
"ACLs" = "ACLs";
/* Modules titles */
"ACLs_title" = "Users folders ACLs management";
/* Modules descriptions */
"ACLs_description" = "<p>The Access Control Lists administration module allows to change the ACLs of each user's Calendars and Address books.</p><p>To modify the ACLs of a user's folder, type the name of the user in the search field at the top of the window and double-click on the desired folder.</p>";
@@ -0,0 +1,12 @@
/* this file is in UTF-8 format! */
"Modules" = "Modules";
/* Modules short names */
"ACLs" = "ACLs";
/* Modules titles */
"ACLs_title" = "Users folders ACLs management";
/* Modules descriptions */
"ACLs_description" = "<p>The Access Control Lists administration module allows to change the ACLs of each user's Calendars and Address books.</p><p>To modify the ACLs of a user's folder, type the name of the user in the search field at the top of the window and double-click on the desired folder.</p>";
@@ -0,0 +1,12 @@
/* this file is in UTF-8 format! */
"Modules" = "Modules";
/* Modules short names */
"ACLs" = "ACLs";
/* Modules titles */
"ACLs_title" = "Users folders ACLs management";
/* Modules descriptions */
"ACLs_description" = "<p>The Access Control Lists administration module allows to change the ACLs of each user's Calendars and Address books.</p><p>To modify the ACLs of a user's folder, type the name of the user in the search field at the top of the window and double-click on the desired folder.</p>";
@@ -0,0 +1,12 @@
/* this file is in UTF-8 format! */
"Modules" = "Modules";
/* Modules short names */
"ACLs" = "ACLs";
/* Modules titles */
"ACLs_title" = "Users folders ACLs management";
/* Modules descriptions */
"ACLs_description" = "<p>The Access Control Lists administration module allows to change the ACLs of each user's Calendars and Address books.</p><p>To modify the ACLs of a user's folder, type the name of the user in the search field at the top of the window and double-click on the desired folder.</p>";
+37
View File
@@ -0,0 +1,37 @@
/* UIxPreferences.h - this file is part of SOGo
*
* Copyright (C) 2009 Inverse inc.
*
* Author: Francis Lachapelle <flachapelle@inverse.ca>
*
* 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 UIXADMINISTRATION_H
#define UIXADMINISTRATION_H
#import <SOGoUI/UIxComponent.h>
@class SOGoUser;
@interface UIxAdministration : UIxComponent
{
SOGoUser *user;
}
@end
#endif /* UIXADMINISTRATION_H */
+55
View File
@@ -0,0 +1,55 @@
/* UIxAdministration.m - this file is part of SOGo
*
* Copyright (C) 2009 Inverse inc.
*
* Author: Francis Lachapelle <flachapelle@inverse.ca>
*
* 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 <NGObjWeb/WOContext.h>
#import <NGObjWeb/WORequest.h>
#import <SoObjects/SOGo/SOGoUser.h>
//#import "../../Main/SOGo.h"
#import "UIxAdministration.h"
@implementation UIxAdministration
- (id) init
{
if ((self = [super init]))
{
ASSIGN (user, [context activeUser]);
}
return self;
}
- (void) dealloc
{
[user release];
[super dealloc];
}
- (BOOL) shouldTakeValuesFromRequest: (WORequest *) request
inContext: (WOContext*) context
{
return [[request method] isEqualToString: @"POST"];
}
@end
@@ -0,0 +1,119 @@
/* UIxAdministrationFilterPanel.m - this file is part of SOGo
*
* Copyright (C) 2009 Inverse inc.
*
* Author: Francis Lachapelle <flachapelle@inverse.ca>
*
* 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 <SOGoUI/UIxComponent.h>
@interface UIxAdministrationFilterPanel : UIxComponent
{
NSString *searchText;
NSString *searchCriteria;
}
@end
@implementation UIxAdministrationFilterPanel
static NSArray *filters = nil;
+ (void) initialize
{
NSMutableDictionary *md;
NSMutableArray *ma;
md = [[NSMutableDictionary alloc] initWithCapacity:8];
ma = [[NSMutableArray alloc] initWithCapacity:4];
filters = [ma copy];
[md release]; md = nil;
[ma release]; ma = nil;
}
- (id) init
{
if ((self = [super init]))
{
searchText = nil;
searchCriteria = nil;
}
return self;
}
- (void) dealloc
{
[searchCriteria release];
[searchText release];
[super dealloc];
}
/* accessors */
- (void) setSearchText: (NSString *)_txt
{
ASSIGNCOPY(searchText, _txt);
}
- (void) setSearchCriteria: (NSString *)_txt
{
ASSIGNCOPY(searchText, _txt);
}
- (NSString *) searchText
{
if (!searchText)
searchText = [[self queryParameterForKey: @"search"] copy];
return searchText;
}
- (NSString *) searchCriteria
{
if (!searchCriteria)
searchCriteria = [[self queryParameterForKey: @"criteria"] copy];
return searchCriteria;
}
/* filters */
- (NSArray *) filters
{
return filters;
}
/* qualifiers */
- (NSString *) filterLabel
{
#if 1
return [[[self context] page] labelForKey: @"filter"];
#else
return [self valueForKey: @"filter"];
#endif
}
- (NSString *) selectedFilter
{
return [self queryParameterForKey: @"filterpopup"];
}
@end /* UIxAdministrationFilterPanel */
+1
View File
@@ -0,0 +1 @@
# nothing here
@@ -0,0 +1,12 @@
/* this file is in UTF-8 format! */
"Modules" = "Modules";
/* Modules short names */
"ACLs" = "ACLs";
/* Modules titles */
"ACLs_title" = "Users folders ACLs management";
/* Modules descriptions */
"ACLs_description" = "<p>The Access Control Lists administration module allows to change the ACLs of each user's Calendars and Address books.</p><p>To modify the ACLs of a user's folder, type the name of the user in the search field at the top of the window and double-click on the desired folder.</p>";
+22
View File
@@ -0,0 +1,22 @@
{ /* -*-javascript-*- */
requires = ( MAIN, MainUI, CommonUI );
publicResources = (
);
factories = {
};
categories = {
SOGoUserFolder = {
slots = {
};
methods = {
Administration = {
protectedBy = "View";
pageName = "UIxAdministration";
};
};
};
};
}