added the CommunityManager, the initial implementation of community objects,

and related supporting code and database material
This commit is contained in:
Eric J. Bowersox
2003-05-30 08:35:35 +00:00
parent 9218e24591
commit 4f62066e6b
23 changed files with 2902 additions and 106 deletions

View File

@@ -11,7 +11,7 @@
*
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
* Copyright (C) 2002 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
* Copyright (C) 2002-03 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
*
* Contributor(s):
*/
@@ -33,7 +33,7 @@ class DefaultHashAuthenticator implements Authenticator
} // end constructor
/*--------------------------------------------------------------------------------
* IMplementations from interface Authenticator
* Implementations from interface Authenticator
*--------------------------------------------------------------------------------
*/

View File

@@ -11,7 +11,7 @@
*
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
* Copyright (C) 2002 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
* Copyright (C) 2002-03 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
*
* Contributor(s):
*/
@@ -30,7 +30,7 @@ import com.silverwrist.dynamo.util.*;
public class UserManagerObject
implements NamedObject, ComponentInitialize, ComponentShutdown, UserManagement, UserProxyManagement,
AuthenticatorRegistration, UserInfoNamespace, UserPropertyTranslatorInstall
AuthenticatorLookup, AuthenticatorRegistration, UserInfoNamespace, UserPropertyTranslatorInstall
{
/*--------------------------------------------------------------------------------
* Internal class implementing user proxies
@@ -341,6 +341,7 @@ public class UserManagerObject
private Object m_groups_sync = new Object(); // synchronization for group HashMaps
private Hashtable m_authenticators = new Hashtable(); // authenticators list
private ComponentShutdown m_hook_init; // hook for init service provider
private ComponentShutdown m_hook_rt; // hook for runtime service provider
private ComponentShutdown m_pszreg; // property serializer registration
private ComponentShutdown m_evt_user; // event registration
@@ -443,10 +444,15 @@ public class UserManagerObject
// Add us to the initialization services.
HookServiceProviders hooker = (HookServiceProviders)(services.queryService(HookServiceProviders.class));
SingletonServiceProvider ssp = new SingletonServiceProvider("UserManagerObject",
AuthenticatorRegistration.class,
(AuthenticatorRegistration)this);
m_hook_init = hooker.hookInitServiceProvider(ssp);
SimpleServiceProvider esp = new SimpleServiceProvider("UserManagerObject");
esp.addService(AuthenticatorRegistration.class,(AuthenticatorRegistration)this);
esp.addService(AuthenticatorLookup.class,(AuthenticatorLookup)this);
m_hook_init = hooker.hookInitServiceProvider(esp);
// Add us to the runtime services as well.
SingletonServiceProvider ssp = new SingletonServiceProvider("UserManagerObject",AuthenticatorLookup.class,
(AuthenticatorLookup)this);
m_hook_rt = hooker.hookRuntimeServiceProvider(ssp);
} // end initialize
@@ -461,6 +467,8 @@ public class UserManagerObject
m_evt_user = null;
m_pszreg.shutdown();
m_pszreg = null;
m_hook_rt.shutdown();
m_hook_rt = null;
m_hook_init.shutdown();
m_hook_init = null;
m_authenticators.clear();

View File

@@ -0,0 +1,61 @@
/*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* (the "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
*
* Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
* WARRANTY OF ANY KIND, either express or implied. See the License for the specific
* language governing rights and limitations under the License.
*
* The Original Code is the Venice Web Communities System.
*
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
* Copyright (C) 2003 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
*
* Contributor(s):
*/
package com.silverwrist.dynamo.util;
import java.util.*;
public final class DateObjectPair
{
/*--------------------------------------------------------------------------------
* Attributes
*--------------------------------------------------------------------------------
*/
private Object m_object;
private java.util.Date m_date;
/*--------------------------------------------------------------------------------
* Constructor
*--------------------------------------------------------------------------------
*/
public DateObjectPair(Object obj, java.util.Date date)
{
m_object = obj;
m_date = date;
} // end constructor
/*--------------------------------------------------------------------------------
* Public getters
*--------------------------------------------------------------------------------
*/
public Object getObject()
{
return m_object;
} // end getObject
public java.util.Date getDate()
{
return m_date;
} // end getDate
} // end class DateObjectPair