au.edu.jcu.hpc.srb.mcatext.dao.postgresql
Class RegisterDaoImpl

java.lang.Object
  extended by au.edu.jcu.hpc.srb.mcatext.dao.postgresql.RegisterDaoImpl
All Implemented Interfaces:
RegisterDao, SetupDao, NotificationGenerator

public class RegisterDaoImpl
extends java.lang.Object
implements RegisterDao, SetupDao, NotificationGenerator


Constructor Summary
RegisterDaoImpl()
           
 
Method Summary
 void deregisterAllDomains(java.lang.String notifyUrl)
           
 void deregisterAllPaths(java.lang.String notifyUrl)
           
 void deregisterDomains(java.lang.String notifyUrl, java.util.List<java.lang.String> domains)
           
 void deregisterPaths(java.lang.String notifyUrl, java.util.List<java.lang.String> paths)
           
 java.util.List<Notification> generateDomainNotifications(ChangeLog in)
           
 java.util.List<Notification> generatePathNotifications(ChangeLog in)
           
 javax.sql.DataSource getMcatDao()
           
 boolean isMonitored()
          isMonitored check wether the database we are looking is setup to do triggers.
 java.util.List<java.lang.String> listRegisteredDomains(java.lang.String notifyUrl)
           
 java.util.List<java.lang.String> listRegisteredPaths(java.lang.String notifyUrl)
           
 void markDirtyDomain(java.lang.String notifyUrl)
           
 void markDirtyPath(java.lang.String notifyUrl)
           
 void registerDomains(java.lang.String notifyUrl, java.util.List<java.lang.String> domains, boolean dropExistingDomains)
           
 void registerPaths(java.lang.String notifyUrl, java.util.List<java.lang.String> paths, boolean dropExistingPaths)
           
 void setMcatDao(javax.sql.DataSource mcatDao)
           
 void setupMonitoring()
          setupMonitoring makes the necessary changes to the database to enable triggers.
 void triggerNotifications()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisterDaoImpl

public RegisterDaoImpl()
Method Detail

getMcatDao

public javax.sql.DataSource getMcatDao()

setMcatDao

public void setMcatDao(javax.sql.DataSource mcatDao)

triggerNotifications

public void triggerNotifications()
Specified by:
triggerNotifications in interface RegisterDao

generatePathNotifications

public java.util.List<Notification> generatePathNotifications(ChangeLog in)
Specified by:
generatePathNotifications in interface NotificationGenerator

markDirtyPath

public void markDirtyPath(java.lang.String notifyUrl)
Specified by:
markDirtyPath in interface NotificationGenerator

generateDomainNotifications

public java.util.List<Notification> generateDomainNotifications(ChangeLog in)
Specified by:
generateDomainNotifications in interface NotificationGenerator

markDirtyDomain

public void markDirtyDomain(java.lang.String notifyUrl)
Specified by:
markDirtyDomain in interface NotificationGenerator

registerPaths

public void registerPaths(java.lang.String notifyUrl,
                          java.util.List<java.lang.String> paths,
                          boolean dropExistingPaths)
Specified by:
registerPaths in interface RegisterDao

deregisterPaths

public void deregisterPaths(java.lang.String notifyUrl,
                            java.util.List<java.lang.String> paths)
Specified by:
deregisterPaths in interface RegisterDao

deregisterAllPaths

public void deregisterAllPaths(java.lang.String notifyUrl)

listRegisteredPaths

public java.util.List<java.lang.String> listRegisteredPaths(java.lang.String notifyUrl)
Specified by:
listRegisteredPaths in interface RegisterDao

registerDomains

public void registerDomains(java.lang.String notifyUrl,
                            java.util.List<java.lang.String> domains,
                            boolean dropExistingDomains)
Specified by:
registerDomains in interface RegisterDao

deregisterDomains

public void deregisterDomains(java.lang.String notifyUrl,
                              java.util.List<java.lang.String> domains)
Specified by:
deregisterDomains in interface RegisterDao

deregisterAllDomains

public void deregisterAllDomains(java.lang.String notifyUrl)

listRegisteredDomains

public java.util.List<java.lang.String> listRegisteredDomains(java.lang.String notifyUrl)
Specified by:
listRegisteredDomains in interface RegisterDao

isMonitored

public boolean isMonitored()
Description copied from interface: SetupDao
isMonitored check wether the database we are looking is setup to do triggers.

Specified by:
isMonitored in interface SetupDao
Returns:

setupMonitoring

public void setupMonitoring()
Description copied from interface: SetupDao
setupMonitoring makes the necessary changes to the database to enable triggers.

Specified by:
setupMonitoring in interface SetupDao


Copyright © 2008. All Rights Reserved.