    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

##

rep

##

RealmsCatalog(ResourceContext)
RealmsCatalog(ResourceContext, String)

##

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

##

rep

     protected String rep

##

RealmsCatalog

     public RealmsCatalog(ResourceContext context)

RealmsCatalog

     public RealmsCatalog(ResourceContext context,
                          String rep)

##

loadRealm

     public synchronized ResourceReference loadRealm(String name)

  Load the given realm and return the AuthRealm instance.

  Parameters:
    name - The realm identifier.

enumerateRealmNames

     public synchronized Enumeration enumerateRealmNames()

  Enumerate the list of available realms.

registerRealm

     public synchronized void registerRealm(AuthRealm realm)

  register the given new realm.

  Parameters:
    realm - The new realm to register.

registerResource

     public void registerResource(String name,
                                  Resource resource,
                                  Hashtable defs)

  Initialize and register the given resource within that container.

  Overrides:
    registerResource in class ContainerResource

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.

save

     public synchronized void save()

  Save the catalog back to disk.

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