mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Reorganized AVMContext convenience class for accessing various singletons
into AVMDAOs for accessing AVM DAO singletons and RawServices for accessing uninstrumented versions of some services. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3980 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
152
source/java/org/alfresco/repo/avm/AVMDAOs.java
Normal file
152
source/java/org/alfresco/repo/avm/AVMDAOs.java
Normal file
@@ -0,0 +1,152 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.alfresco.repo.avm;
|
||||
|
||||
/**
|
||||
* This is the (shudder) global context for AVM. It a rendezvous
|
||||
* point for access to needed global instances.
|
||||
* @author britt
|
||||
*/
|
||||
public class AVMDAOs
|
||||
{
|
||||
/**
|
||||
* The single instance of an AVMContext.
|
||||
*/
|
||||
private static AVMDAOs fgInstance;
|
||||
|
||||
AVMDAOs()
|
||||
{
|
||||
fgInstance = this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the instance of this.
|
||||
* @return
|
||||
*/
|
||||
public static AVMDAOs Instance()
|
||||
{
|
||||
return fgInstance;
|
||||
}
|
||||
|
||||
/**
|
||||
* The IssuerDAO.
|
||||
*/
|
||||
public IssuerDAO fIssuerDAO;
|
||||
|
||||
/**
|
||||
* The AVMNodeDAO.
|
||||
*/
|
||||
public AVMNodeDAO fAVMNodeDAO;
|
||||
|
||||
/**
|
||||
* The AVMStore DAO.
|
||||
*/
|
||||
public AVMStoreDAO fAVMStoreDAO;
|
||||
|
||||
/**
|
||||
* The VersionRootDAO.
|
||||
*/
|
||||
public VersionRootDAO fVersionRootDAO;
|
||||
|
||||
/**
|
||||
* The ChildEntryDAO.
|
||||
*/
|
||||
public ChildEntryDAO fChildEntryDAO;
|
||||
|
||||
/**
|
||||
* The HistoryLinkDAO.
|
||||
*/
|
||||
public HistoryLinkDAO fHistoryLinkDAO;
|
||||
|
||||
/**
|
||||
* The MergeLinkDAO.
|
||||
*/
|
||||
public MergeLinkDAO fMergeLinkDAO;
|
||||
|
||||
/**
|
||||
* The AVMNodePropertyDAO
|
||||
*/
|
||||
public AVMNodePropertyDAO fAVMNodePropertyDAO;
|
||||
|
||||
/**
|
||||
* The AVMStorePropertyDAO
|
||||
*/
|
||||
public AVMStorePropertyDAO fAVMStorePropertyDAO;
|
||||
|
||||
/**
|
||||
* The AVMAspectNameDAO
|
||||
*/
|
||||
public AVMAspectNameDAO fAVMAspectNameDAO;
|
||||
|
||||
/**
|
||||
* @param nodeDAO the fAVMNodeDAO to set
|
||||
*/
|
||||
public void setNodeDAO(AVMNodeDAO nodeDAO)
|
||||
{
|
||||
fAVMNodeDAO = nodeDAO;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param childEntryDAO the fChildEntryDAO to set
|
||||
*/
|
||||
public void setChildEntryDAO(ChildEntryDAO childEntryDAO)
|
||||
{
|
||||
fChildEntryDAO = childEntryDAO;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param historyLinkDAO the fHistoryLinkDAO to set
|
||||
*/
|
||||
public void setHistoryLinkDAO(HistoryLinkDAO historyLinkDAO)
|
||||
{
|
||||
fHistoryLinkDAO = historyLinkDAO;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mergeLinkDAO the fMergeLinkDAO to set
|
||||
*/
|
||||
public void setMergeLinkDAO(MergeLinkDAO mergeLinkDAO)
|
||||
{
|
||||
fMergeLinkDAO = mergeLinkDAO;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param aVMStoreDAO The fAVMStoreDAO to set
|
||||
*/
|
||||
public void setAvmStoreDAO(AVMStoreDAO aVMStoreDAO)
|
||||
{
|
||||
fAVMStoreDAO = aVMStoreDAO;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param versionRootDAO the fVersionRootDAO to set
|
||||
*/
|
||||
public void setVersionRootDAO(VersionRootDAO versionRootDAO)
|
||||
{
|
||||
fVersionRootDAO = versionRootDAO;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param issuerDAO the fIssuerDAO to set
|
||||
*/
|
||||
public void setIssuerDAO(IssuerDAO issuerDAO)
|
||||
{
|
||||
fIssuerDAO = issuerDAO;
|
||||
}
|
||||
|
||||
public void setAvmNodePropertyDAO(AVMNodePropertyDAO avmNodePropertyDAO)
|
||||
{
|
||||
fAVMNodePropertyDAO = avmNodePropertyDAO;
|
||||
}
|
||||
|
||||
public void setAvmStorePropertyDAO(AVMStorePropertyDAO avmStorePropertyDAO)
|
||||
{
|
||||
fAVMStorePropertyDAO = avmStorePropertyDAO;
|
||||
}
|
||||
|
||||
public void setAvmAspectNameDAO(AVMAspectNameDAO avmAspectNameDAO)
|
||||
{
|
||||
fAVMAspectNameDAO = avmAspectNameDAO;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user