From 5f966a6450d973bd61910eb8b5c079b1ed87f127 Mon Sep 17 00:00:00 2001 From: "Eric J. Bowersox" Date: Sun, 18 Nov 2001 09:32:21 +0000 Subject: [PATCH] first stage of transitioning to the new SecurityMonitor-based security architecture--it's implemented at the global level and for communities, conferences still use the old hard-coded implementation. The new StaticSecurityMonitor is configured via XML data, which will be important when we implement the new Community Services architecture --- etc/venice-config.xml | 131 ++++ .../venice/core/AdminOperations.java | 4 + .../venice/core/AdminUserContext.java | 5 + .../venice/core/CommunityContext.java | 2 + .../silverwrist/venice/core/SecurityInfo.java | 35 + .../silverwrist/venice/core/VeniceEngine.java | 2 + .../venice/core/impl/AdminOperationsImpl.java | 15 + .../core/impl/AdminUserContextImpl.java | 15 +- .../core/impl/CategoryDescriptorImpl.java | 16 +- .../venice/core/impl/CommunityCoreData.java | 43 +- .../core/impl/CommunityUserContextImpl.java | 73 +- .../impl/TopicMessageUserContextImpl.java | 45 +- .../venice/core/impl/UserContextImpl.java | 61 +- .../venice/core/impl/UserProfileImpl.java | 19 +- .../venice/core/impl/VeniceEngineImpl.java | 68 +- .../core/internals/CommunityBackend.java | 2 + .../venice/core/internals/EngineBackend.java | 16 + .../venice/core/internals/EnvCommunity.java | 67 ++ .../core/internals/EnvCommunityData.java | 33 + .../venice/core/internals/EnvEngine.java | 51 ++ .../venice/core/internals/EnvUser.java | 88 ++- .../core/internals/SecurityInfoWrapper.java | 80 ++ .../venice/security/Capability.java | 106 --- .../venice/security/DefaultLevels.java | 66 -- .../security/PrimordialSecurityMonitor.java | 187 +++++ src/com/silverwrist/venice/security/Role.java | 295 ++------ .../venice/security/ScopeInfo.java | 225 ++++++ .../venice/security/SecurityMonitor.java | 43 ++ .../security/StaticSecurityMonitor.java | 713 ++++++++++++++++++ .../silverwrist/venice/security/sm.properties | 21 + .../venice/servlets/CommunityAdmin.java | 8 +- .../venice/servlets/SystemAdmin.java | 12 +- .../format/AdminModifyUserDialog.java | 28 +- .../servlets/format/CommunityMembership.java | 5 +- .../format/EditCommunityProfileDialog.java | 12 +- .../format/EditGlobalPropertiesDialog.java | 4 +- 36 files changed, 2024 insertions(+), 572 deletions(-) create mode 100644 src/com/silverwrist/venice/core/SecurityInfo.java create mode 100644 src/com/silverwrist/venice/core/internals/SecurityInfoWrapper.java delete mode 100644 src/com/silverwrist/venice/security/Capability.java create mode 100644 src/com/silverwrist/venice/security/PrimordialSecurityMonitor.java create mode 100644 src/com/silverwrist/venice/security/ScopeInfo.java create mode 100644 src/com/silverwrist/venice/security/SecurityMonitor.java create mode 100644 src/com/silverwrist/venice/security/StaticSecurityMonitor.java create mode 100644 src/com/silverwrist/venice/security/sm.properties diff --git a/etc/venice-config.xml b/etc/venice-config.xml index 63d52bf..5f2a819 100644 --- a/etc/venice-config.xml +++ b/etc/venice-config.xml @@ -54,6 +54,137 @@ + + + + + Anonymous User + Unauthenticated User + Normal User + Any System Administrator + System Assistant Administrator + Global System Administrator + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Community Member + Any Community Administrator + Community Co-Host + Community Host + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +