All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.auth.RealmsCatalog

java.lang.Object
   |
   +----org.w3c.tools.resources.AttributeHolder
           |
           +----org.w3c.tools.resources.Resource
                   |
                   +----org.w3c.tools.resources.FramedResource
                           |
                           +----org.w3c.tools.resources.AbstractContainer
                                   |
                                   +----org.w3c.tools.resources.ContainerResource
                                           |
                                           +----org.w3c.tools.resources.ExternalContainer
                                                   |
                                                   +----org.w3c.jigsaw.auth.RealmsCatalog

public class RealmsCatalog
extends ExternalContainer

Variable Index

 o rep

Constructor Index

 o RealmsCatalog(ResourceContext)
 o RealmsCatalog(ResourceContext, String)

Method Index

 o enumerateRealmNames()
Enumerate the list of available realms.
 o getRepository(ResourceContext)
Get The repository for this external container.
 o loadRealm(String)
Load the given realm and return the AuthRealm instance.
 o registerRealm(AuthRealm)
register the given new realm.
 o registerResource(String, Resource, Hashtable)
Initialize and register the given resource within that container.
 o save()
Save the catalog back to disk.
 o unregisterRealm(String)
Unregister the given realm from the catalog.

Variables

 o rep
 protected String rep

Constructors

 o RealmsCatalog
 public RealmsCatalog(ResourceContext context)
 o RealmsCatalog
 public RealmsCatalog(ResourceContext context,
                      String rep)

Methods

 o loadRealm
 public synchronized ResourceReference loadRealm(String name)
Load the given realm and return the AuthRealm instance.

Parameters:
name - The realm identifier.
 o enumerateRealmNames
 public synchronized Enumeration enumerateRealmNames()
Enumerate the list of available realms.

 o registerRealm
 public synchronized void registerRealm(AuthRealm realm)
register the given new realm.

Parameters:
realm - The new realm to register.
 o registerResource
 public void registerResource(String name,
                              Resource resource,
                              Hashtable defs)
Initialize and register the given resource within that container.

Overrides:
registerResource in class ContainerResource
 o unregisterRealm
 public synchronized void unregisterRealm(String name) throws MultipleLockException
Unregister the given realm from the catalog.

Parameters:
name - The name of the catalog.
Throws: MultipleLockException
if someone else has locked this realm.
 o save
 public synchronized void save()
Save the catalog back to disk.

 o getRepository
 public File getRepository(ResourceContext context)
Get The repository for this external container.

Overrides:
getRepository in class ExternalContainer

All Packages  Class Hierarchy  This Package  Previous  Next  Index