    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.jigsaw.auth.RealmsCatalog

    java.lang.Object
       |
       +----w3c.jigsaw.auth.RealmsCatalog

public class RealmsCatalog
extends Object
implements ResourceStoreHolder

##

repository
  Our realm repository.
server
  Our associated server.
store
  Our realm's store.

##

RealmsCatalog(httpd)
RealmsCatalog(httpd, String)

##

acceptStoreUnload(ResourceStore)
  ResourceStoreHolder implementation - Unload the store.
acquireStore()
  Acquire the store.
enumerateRealmNames()
  Enumerate the list of available realms.
getRepository()
  Get our repository.
loadRealm(String)
  Load the given realm and return the AuthRealm instance.
notifyStoreShutdown(ResourceStore)
  The resource store asks us to shutdown our associated store.
notifyStoreStabilize(ResourceStore)
  ResourceStoreHolder implementation - Save our store.
registerRealm(AuthRealm)
  register the given new realm.
save()
  Save the catalog back to disk.
unregisterRealm(String)
  Unregister the given realm from the catalog.

##

repository

     protected File repository

  Our realm repository.

store

     protected ResourceStore store

  Our realm's store.

server

     protected httpd server

  Our associated server.

##

RealmsCatalog

     public RealmsCatalog(httpd server)

RealmsCatalog

     public RealmsCatalog(httpd server,
                          String repository)

##

acquireStore

     protected synchronized void acquireStore()

  Acquire the store. Should only be called from a synchronized method.

getRepository

     public File getRepository()

  Get our repository.

loadRealm

     public synchronized AuthRealm 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.

unregisterRealm

     public synchronized void unregisterRealm(String name)

  Unregister the given realm from the catalog.

  Parameters:
    name - The name of the catalog.

save

     public synchronized void save()

  Save the catalog back to disk.

acceptStoreUnload

     public synchronized boolean acceptStoreUnload(ResourceStore st)

  ResourceStoreHolder implementation - Unload the store.

  Parameters:
    st - The store to unload.
  Returns:
    A boolean true if store was successfully unloaded.

notifyStoreShutdown

     public void notifyStoreShutdown(ResourceStore st)

  The resource store asks us to shutdown our associated store.

  Parameters:
    st - The store to shutdown.

notifyStoreStabilize

     public void notifyStoreStabilize(ResourceStore st)

  ResourceStoreHolder implementation - Save our store.

  Parameters:
    st - The store to be saved.
  Returns:
    A boolean true if saving the store is now not modified.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index