public abstract class RepositoryImpl extends GenericService implements Repository, atg.repository.DisplayableRepository, atg.repository.ProxyableRepository
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
RepositoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addItemDescriptor(RepositoryItemDescriptor pItemDescriptor)
Use this to add a new RepositoryItemDescriptor.
|
void |
addView(RepositoryView pView)
Use this to add a new RepositoryView.
|
void |
copyFromOtherRepository(RepositoryImpl pSrc)
This method copies all data from another similar repository.
|
void |
debug(java.lang.String pMsg,
int pLevel)
Log a debug message it the
debugLevel is greater
than or equal to the specified level |
java.lang.String |
getComponentResourceBundleName()
Get property
componentResourceBundleName |
int |
getDebugLevel()
Get property
debugLevel |
java.lang.String |
getDefaultViewName()
Returns the name of the "default" or "root" RepositoryView
|
Repository |
getExposedRepository()
Returns the exposed repository.
|
atg.repository.nucleus.RepositoryGroupContainer |
getGroupContainer()
Returns the group registry.
|
atg.repository.groups.GroupProperties |
getGroupProperties()
Returns the group properties for this repository.
|
abstract RepositoryItem |
getItem(java.lang.String pId)
Returns an item in the Repository with the given id
|
RepositoryItemDescriptor |
getItemDescriptor(RepositoryItemDescriptor pDesc)
Returns a RepositoryItemDescriptor accessed with the name of the given descriptor.
|
RepositoryItemDescriptor |
getItemDescriptor(java.lang.String pName)
Returns a RepositoryItemDescriptor accessed with the given name.
|
java.lang.String[] |
getItemDescriptorNames()
Returns an array of the names of the known RepositoryItemDescriptors.
|
RepositoryItem[] |
getItems(java.lang.String[] pIds)
Returns the items in the Repository with the given ids.
|
RepositoryItem[] |
getItems(java.lang.String[] pIds,
java.lang.String pDescriptorName)
Returns the items in the Repository with the given ids.
|
java.lang.String |
getRepositoryDisplayName()
Get property
repositoryDisplayName |
java.lang.String |
getRepositoryDisplayNameResource()
Get property
repositoryDisplayNameResource |
java.lang.String |
getRepositoryName()
Returns the name of this Repository
|
javax.transaction.TransactionManager |
getTransactionManager()
Get property
transactionManager |
RepositoryView |
getView(RepositoryItemDescriptor pDesc)
Returns a RepositoryView accessed with the name of the given descriptor.
|
RepositoryView |
getView(java.lang.String pName)
Returns a RepositoryView accessed with the given name.
|
java.lang.String[] |
getViewNames()
Returns an array of the names of all contained top-level views
|
void |
invalidateCaches()
Invalidates all caches in this repository.
|
void |
invalidateCaches(boolean pGlobal)
Invalidates all caches in this repository and if global is true, it sends
an invalidation event to all servers.
|
boolean |
isDisableRepositoryGroupsCache()
get DisableRepositoryGroupsCache
|
boolean |
isUseConcurrentCaching()
Returns property useConcurrentCaching.
|
void |
setComponentResourceBundleName(java.lang.String pComponentResourceBundleName)
Set property
componentResourceBundleName |
void |
setDebugLevel(int pDebugLevel)
Set property
debugLevel |
void |
setDefaultViewName(java.lang.String pDefaultViewName)
Sets the property DefaultViewName.
|
void |
setDisableRepositoryGroupsCache(boolean pDisableRepositoryGroupsCache)
set DisableRepositoryGroupsCache - if this is set to
true then this Repository will not cache its RepositoryGroups
and instead will try to load them on demand each time
|
void |
setExposedRepository(Repository pExposedRepository)
Sets the exposed repository.
|
void |
setGroupContainer(atg.repository.nucleus.RepositoryGroupContainer pGroupContainer)
Sets the group registry.
|
atg.repository.groups.GroupProperties |
setGroupProperties(atg.repository.groups.GroupProperties pGroupProperties)
Set the group properties for this repository.
|
void |
setRepositoryDisplayNameResource(java.lang.String pRepositoryDisplayNameResource)
Set property
repositoryDisplayNameResource |
void |
setRepositoryName(java.lang.String pRepositoryName)
Sets the property RepositoryName.
|
void |
setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
Set property
transactionManager |
void |
setUseConcurrentCaching(boolean pUseConcurrentCaching)
Sets property useConcurrentCaching.
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetItempublic void setRepositoryName(java.lang.String pRepositoryName)
pRepositoryName - new value to setpublic java.lang.String getRepositoryName()
getRepositoryName in interface Repositorypublic java.lang.String getRepositoryDisplayName()
repositoryDisplayNamegetRepositoryDisplayName in interface atg.repository.DisplayableRepositorypublic void setRepositoryDisplayNameResource(java.lang.String pRepositoryDisplayNameResource)
repositoryDisplayNameResourcepRepositoryDisplayNameResource - the name of the resource
that contains the display name for this repositorypublic java.lang.String getRepositoryDisplayNameResource()
repositoryDisplayNameResourcepublic void setComponentResourceBundleName(java.lang.String pComponentResourceBundleName)
componentResourceBundleNamepComponentResourceBundleName - the name of the resource
bundle that holds the display name resourcepublic java.lang.String getComponentResourceBundleName()
componentResourceBundleNamepublic void setDisableRepositoryGroupsCache(boolean pDisableRepositoryGroupsCache)
pDisableRepositoryGroupsCache - the DisableRepositoryGroupsCachepublic boolean isDisableRepositoryGroupsCache()
public abstract RepositoryItem getItem(java.lang.String pId) throws RepositoryException
getItem in interface RepositorypId - the id of the item to retrieveRepositoryException - if there was an error while
attempting to return the RepositoryItempublic RepositoryItem[] getItems(java.lang.String[] pIds) throws RepositoryException
getItems in interface RepositoryRepositoryException - if there was an error while
attempting to retrieve the RepositoryItemspublic RepositoryItem[] getItems(java.lang.String[] pIds, java.lang.String pDescriptorName) throws RepositoryException
getItems in interface RepositorypIds - the list of idspDescriptorName - the item descriptor containing these idsRepositoryException - if there was an error while
attempting to retrieve the RepositoryItemspublic void setDefaultViewName(java.lang.String pDefaultViewName)
pDefaultViewName - new value to setpublic java.lang.String getDefaultViewName()
getDefaultViewName in interface Repositorypublic java.lang.String[] getViewNames()
getViewNames in interface RepositorygetViewNames in interface RepositoryViewContainerpublic RepositoryView getView(java.lang.String pName) throws RepositoryException
getView in interface RepositorygetView in interface RepositoryViewContainerpName - the name of the view to findRepositoryException - if there was an error while
attempting to return the RepositoryViewpublic RepositoryView getView(RepositoryItemDescriptor pDesc) throws RepositoryException
RepositorygetView in interface RepositorypDesc - the descriptor of the view to findRepositoryException - if there was an error while
attempting to return the RepositoryViewpublic void addView(RepositoryView pView)
public java.lang.String[] getItemDescriptorNames()
getItemDescriptorNames in interface Repositorypublic RepositoryItemDescriptor getItemDescriptor(java.lang.String pName) throws RepositoryException
getItemDescriptor in interface RepositorypName - the name of the descritpro to findRepositoryException - if there was an error while
attempting to return the RepositoryItemDescriptorpublic RepositoryItemDescriptor getItemDescriptor(RepositoryItemDescriptor pDesc) throws RepositoryException
RepositorygetItemDescriptor in interface RepositorypDesc - the descriptor to findRepositoryException - if there was an error while
attempting to return the RepositoryItemDescriptorpublic void addItemDescriptor(RepositoryItemDescriptor pItemDescriptor)
public atg.repository.nucleus.RepositoryGroupContainer getGroupContainer()
public void setGroupContainer(atg.repository.nucleus.RepositoryGroupContainer pGroupContainer)
public Repository getExposedRepository()
getExposedRepository in interface atg.repository.ProxyableRepositorypublic void setExposedRepository(Repository pExposedRepository)
public void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
transactionManagerpTransactionManager - new value to setpublic javax.transaction.TransactionManager getTransactionManager()
transactionManagertransactionManagerpublic atg.repository.groups.GroupProperties getGroupProperties()
public atg.repository.groups.GroupProperties setGroupProperties(atg.repository.groups.GroupProperties pGroupProperties)
public void invalidateCaches()
public void invalidateCaches(boolean pGlobal)
public void copyFromOtherRepository(RepositoryImpl pSrc)
public void setDebugLevel(int pDebugLevel)
debugLevelpDebugLevel - new value to setpublic int getDebugLevel()
debugLeveldebugLevelpublic void setUseConcurrentCaching(boolean pUseConcurrentCaching)
public boolean isUseConcurrentCaching()
public void debug(java.lang.String pMsg,
int pLevel)
debugLevel is greater
than or equal to the specified levelpMsg - message to logpLevel - debug level of message