uk.ac.soton.itinnovation.registry.component.xml.db
Class XmlDbAccessAbstractManager

java.lang.Object
  extended by uk.ac.soton.itinnovation.registry.component.xml.db.XmlDbAccessAbstractManager
All Implemented Interfaces:
XmlDbAccessManager
Direct Known Subclasses:
XmlDbAccessManagerXmlDb

public abstract class XmlDbAccessAbstractManager
extends Object
implements XmlDbAccessManager


Field Summary
protected static Hashtable<String,XmlDbAccess> accessCache
           
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
XmlDbAccessAbstractManager()
           
 
Method Summary
 void adminLogin(String user, String password, String group)
          Login into the system.
 void adminLogout()
          Logout.
abstract  XmlDbAccess getAccess()
          Get personalised access to the XML DB.
abstract  XmlDbAccess getAdminAccess()
           
 void login(String user, String password, String group)
          Login into the system.
 void logout()
          Logout.
protected  void removeAccess(boolean isAdmin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ac.soton.itinnovation.registry.component.xml.db.XmlDbAccessManager
getRegistryAdminInterface
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

accessCache

protected static Hashtable<String,XmlDbAccess> accessCache
Constructor Detail

XmlDbAccessAbstractManager

public XmlDbAccessAbstractManager()
Method Detail

login

public void login(String user,
                  String password,
                  String group)
Description copied from interface: XmlDbAccessManager
Login into the system.

Specified by:
login in interface XmlDbAccessManager

logout

public void logout()
Description copied from interface: XmlDbAccessManager
Logout. NOTE open collections could be closed and user removed from cache.

Specified by:
logout in interface XmlDbAccessManager

adminLogin

public void adminLogin(String user,
                       String password,
                       String group)
Description copied from interface: XmlDbAccessManager
Login into the system.

Specified by:
adminLogin in interface XmlDbAccessManager

adminLogout

public void adminLogout()
Description copied from interface: XmlDbAccessManager
Logout. NOTE open collections could be closed and user removed from cache.

Specified by:
adminLogout in interface XmlDbAccessManager

removeAccess

protected final void removeAccess(boolean isAdmin)
                           throws AccessException
Throws:
AccessException

getAccess

public abstract XmlDbAccess getAccess()
                               throws AccessException
Description copied from interface: XmlDbAccessManager
Get personalised access to the XML DB. Requires previous login.

Specified by:
getAccess in interface XmlDbAccessManager
Returns:
database access
Throws:
AccessException

getAdminAccess

public abstract XmlDbAccess getAdminAccess()
                                    throws AccessException
Specified by:
getAdminAccess in interface XmlDbAccessManager
Throws:
AccessException


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.