| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.repository.RepositoryImpl
public abstract class RepositoryImpl
This is a base class which you can use to start your implementation of a repository.
| Field Summary | |
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string  | 
| Fields inherited from class atg.nucleus.GenericService | 
|---|
SERVICE_INFO_KEY | 
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging | 
|---|
DEFAULT_LOG_TRACE_STATUS | 
| Fields inherited from interface atg.nucleus.logging.ApplicationLogging | 
|---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS | 
| Constructor Summary | |
|---|---|
RepositoryImpl()
 | 
|
| Method Summary | |
|---|---|
 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  | 
 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 | 
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl | 
|---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface atg.repository.Repository | 
|---|
getItem | 
| Field Detail | 
|---|
public static java.lang.String CLASS_VERSION
| Constructor Detail | 
|---|
public RepositoryImpl()
| Method Detail | 
|---|
public void setRepositoryName(java.lang.String pRepositoryName)
pRepositoryName - new value to setpublic java.lang.String getRepositoryName()
getRepositoryName in interface Repositorypublic java.lang.String getRepositoryDisplayName()
repositoryDisplayName
getRepositoryDisplayName in interface atg.repository.DisplayableRepositorypublic void setRepositoryDisplayNameResource(java.lang.String pRepositoryDisplayNameResource)
repositoryDisplayNameResource
pRepositoryDisplayNameResource - the name of the resource
 that contains the display name for this repositorypublic java.lang.String getRepositoryDisplayNameResource()
repositoryDisplayNameResource
public void setComponentResourceBundleName(java.lang.String pComponentResourceBundleName)
componentResourceBundleName
pComponentResourceBundleName - the name of the resource
 bundle that holds the display name resourcepublic java.lang.String getComponentResourceBundleName()
componentResourceBundleName
public 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 retrieve
RepositoryException - if there was an error while
 attempting to return the RepositoryItem
public RepositoryItem[] getItems(java.lang.String[] pIds)
                          throws RepositoryException
getItems in interface RepositoryRepositoryException - if there was an error while
 attempting to retrieve the RepositoryItems
public 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 ids
RepositoryException - 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 RepositoryViewContainer
public RepositoryView getView(java.lang.String pName)
                       throws RepositoryException
getView in interface RepositorygetView in interface RepositoryViewContainerpName - the name of the view to find
RepositoryException - if there was an error while
 attempting to return the RepositoryView
public RepositoryView getView(RepositoryItemDescriptor pDesc)
                       throws RepositoryException
Repository
getView in interface RepositorypDesc - the descriptor of the view to find
RepositoryException - if there was an error while 
 attempting to return the RepositoryViewpublic void addView(RepositoryView pView)
public java.lang.String[] getItemDescriptorNames()
getItemDescriptorNames in interface Repository
public RepositoryItemDescriptor getItemDescriptor(java.lang.String pName)
                                           throws RepositoryException
getItemDescriptor in interface RepositorypName - the name of the descritpro to find
RepositoryException - if there was an error while
 attempting to return the RepositoryItemDescriptor
public RepositoryItemDescriptor getItemDescriptor(RepositoryItemDescriptor pDesc)
                                           throws RepositoryException
Repository
getItemDescriptor in interface RepositorypDesc - the descriptor to find
RepositoryException - 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)
transactionManager
pTransactionManager - new value to setpublic javax.transaction.TransactionManager getTransactionManager()
transactionManager
transactionManagerpublic 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)
debugLevel
pDebugLevel - new value to setpublic int getDebugLevel()
debugLevel
debugLevel
public void debug(java.lang.String pMsg,
                  int pLevel)
debugLevel is greater
 than or equal to the specified level
pMsg - message to logpLevel - debug level of message
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||