atg.adapter.secure
Class GenericSecuredMutableContentRepository

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.adapter.secure.GenericSecuredRepository
              extended by atg.adapter.secure.GenericSecuredMutableRepository
                  extended by atg.adapter.secure.GenericSecuredMutableContentRepository
All Implemented Interfaces:
NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, ContentRepository, atg.repository.DisplayableRepository, MutableRepository, Repository, RepositoryViewContainer, SecuredMutableRepository, SecuredRepository, java.util.EventListener

public class GenericSecuredMutableContentRepository
extends GenericSecuredMutableRepository
implements ContentRepository

A subclass of GenericSecureMutableRepository which implements the ContentRepository API. This repository should be used to wrap the GSARepository because it implements both MutableRepository AND ContentRepository.


Field Summary
static java.lang.String CLASS_VERSION
           
 
Fields inherited from class atg.adapter.secure.GenericSecuredMutableRepository
mMutableItemCache
 
Fields inherited from class atg.adapter.secure.GenericSecuredRepository
mItemCache, mRepository, mSecurityConfiguration, mTransactionManager
 
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
GenericSecuredMutableContentRepository()
           
 
Method Summary
 atg.repository.content.ContentRootPathProvider getContentRootPathProvider()
          Returns the ContentRootPathProvider component that determines the base path of content items living on the filesystem.
 ContentRepositoryFolder getFolder(java.lang.String pId)
          Returns a folder by it's id
 ContentRepositoryFolder getFolderByPath(java.lang.String pPath)
          Returns a folder based on the supplied path.
 ContentRepositoryFolder[] getFolders(java.lang.String[] pIds)
          Returns a set of folders with the given ids
 ContentRepositoryFolder[] getFoldersByPath(java.lang.String[] pPaths)
          Returns a set of folders based on the supplied paths.
 ContentRepositoryItem getItemByPath(java.lang.String pPath)
          Returns a document based on the supplied path.
 ContentRepositoryItem[] getItemsByPath(java.lang.String[] pPaths)
          Returns a set of document based on the supplied paths.
 java.lang.String getPathSeparator()
          Returns the String which represents the path seperator for the path names of the items in the repository
 ContentRepositoryFolder getRootFolder()
          Returns the folder which points toward the "root folder."
 void setContentRootPathProvider(atg.repository.content.ContentRootPathProvider pContentRootPathProvider)
          Sets the ContentRootPathProvider component that determines the base path of content items living on the filesystem.
 
Methods inherited from class atg.adapter.secure.GenericSecuredMutableRepository
addItem, addItem, createItem, createItem, filterMutableItems, getItemForUpdate, getItemForUpdate, getItemsForUpdate, getItemsForUpdate, removeItem, removeItem, setRepository, updateItem
 
Methods inherited from class atg.adapter.secure.GenericSecuredRepository
checkAccess, checkAccess, checkAccess, checkForInvalidRepository, doStartService, filterItems, getComponentResourceBundleName, getConfigurationFile, getDefaultViewName, getItem, getItem, getItemDescriptor, getItemDescriptor, getItemDescriptorNames, getItems, getItems, getRepository, getRepositoryDisplayName, getRepositoryDisplayNameResource, getRepositoryName, getSecurityConfiguration, getSecurityPolicy, getTransactionManager, getView, getView, getViewNames, getXMLToolsFactory, hasAccess, setComponentResourceBundleName, setConfigurationFile, setRepositoryDisplayNameResource, setRepositoryName, setSecurityConfiguration, setTransactionManager, setXMLToolsFactory, unwrapArray, unwrapList, unwrapMap, unwrapSet, unwrapValue
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
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
getDefaultViewName, getItem, getItem, getItemDescriptor, getItemDescriptor, getItemDescriptorNames, getItems, getItems, getRepositoryName, getView, getView, getViewNames
 
Methods inherited from interface atg.repository.SecuredRepository
getSecurityConfiguration, getSecurityPolicy
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

GenericSecuredMutableContentRepository

public GenericSecuredMutableContentRepository()
Method Detail

getItemByPath

public ContentRepositoryItem getItemByPath(java.lang.String pPath)
                                    throws RepositoryException
Returns a document based on the supplied path.

Specified by:
getItemByPath in interface ContentRepository
Parameters:
pPath - a value which represents the "name" of the document. e.g. "/foo/bar.html"
Throws:
RepositoryException

getItemsByPath

public ContentRepositoryItem[] getItemsByPath(java.lang.String[] pPaths)
                                       throws RepositoryException
Returns a set of document based on the supplied paths.

Specified by:
getItemsByPath in interface ContentRepository
Parameters:
pPaths - an array of paths, each of which represents the "name" of a single document. e.g. "/foo/bar.html"
Throws:
RepositoryException

getRootFolder

public ContentRepositoryFolder getRootFolder()
                                      throws RepositoryException
Returns the folder which points toward the "root folder."

Specified by:
getRootFolder in interface ContentRepository
Throws:
RepositoryException

getFolder

public ContentRepositoryFolder getFolder(java.lang.String pId)
                                  throws RepositoryException
Returns a folder by it's id

Specified by:
getFolder in interface ContentRepository
Throws:
RepositoryException

getFolders

public ContentRepositoryFolder[] getFolders(java.lang.String[] pIds)
                                     throws RepositoryException
Returns a set of folders with the given ids

Specified by:
getFolders in interface ContentRepository
Throws:
RepositoryException

getFolderByPath

public ContentRepositoryFolder getFolderByPath(java.lang.String pPath)
                                        throws RepositoryException
Returns a folder based on the supplied path.

Specified by:
getFolderByPath in interface ContentRepository
Parameters:
pPath - a value which represents the "name" of the folder. e.g. "/foo/bar/"
Throws:
RepositoryException

getFoldersByPath

public ContentRepositoryFolder[] getFoldersByPath(java.lang.String[] pPaths)
                                           throws RepositoryException
Returns a set of folders based on the supplied paths.

Specified by:
getFoldersByPath in interface ContentRepository
Parameters:
pPaths - an array of paths, each of which represents the "name" of a single folder. e.g. "/foo/bar/"
Throws:
RepositoryException

getPathSeparator

public java.lang.String getPathSeparator()
Returns the String which represents the path seperator for the path names of the items in the repository

Specified by:
getPathSeparator in interface ContentRepository

setContentRootPathProvider

public void setContentRootPathProvider(atg.repository.content.ContentRootPathProvider pContentRootPathProvider)
Sets the ContentRootPathProvider component that determines the base path of content items living on the filesystem.

Specified by:
setContentRootPathProvider in interface ContentRepository
Parameters:
pContentRootPathProvider - the component providing this service

getContentRootPathProvider

public atg.repository.content.ContentRootPathProvider getContentRootPathProvider()
Returns the ContentRootPathProvider component that determines the base path of content items living on the filesystem.

Specified by:
getContentRootPathProvider in interface ContentRepository
Returns:
the ContentRootPathProvider component providing this service