public class SimpleRepository extends atg.adapter.html.ImmutableSimpleRepository implements MutableRepository
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
DEFAULT_GROUP_REGISTRY, mContentIndex, NULL_VALUE_ID, PATH_SEPARATOR, PATH_SEPARATOR_CHAR, RELATIVEPATH_PROPERTYNAME, ROOT_FOLDER_IDSERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description | 
|---|
SimpleRepository()
Constructs a SimpleRepository 
 | 
| Modifier and Type | Method and Description | 
|---|---|
RepositoryItem | 
addItem(MutableRepositoryItem pItem)
Adds the supplied item populated to the repository 
 | 
RepositoryItem | 
addItem(RepositoryItem pItem,
       java.lang.String pDescriptorName)
Adds the supplied item populated to the repository 
 | 
MutableRepositoryItem | 
createItem(java.lang.String pDescriptorName)
Returns a new item using an auto-generated unique id 
 | 
MutableRepositoryItem | 
createItem(java.lang.String pId,
          java.lang.String pDescriptorName)
Returns a new item populated with the supplied id 
 | 
java.lang.String | 
getDefaultFileExtension()
Get property  
defaultFileExtension | 
IdGenerator | 
getDefaultIdGenerator()
Get property  
DefaultIdGenerator | 
IdGenerator | 
getIdGenerator()
Get property  
idGenerator | 
MutableRepositoryItem | 
getItemForUpdate(java.lang.String pId)
If one wants write access to an item it should be retrieved
 through this method 
 | 
MutableRepositoryItem | 
getItemForUpdate(java.lang.String pId,
                java.lang.String pDescriptorName)
If one wants write access to an item it should be retrieved
 through this method 
 | 
MutableRepositoryItem[] | 
getItemsForUpdate(java.lang.String[] pIds)
If one wants write access to a set of items they should be retrieved
 through this method 
 | 
MutableRepositoryItem[] | 
getItemsForUpdate(java.lang.String[] pIds,
                 java.lang.String pDescriptorName)
If one wants write access to a set of items they should be retrieved
 through this method 
 | 
void | 
removeItem(java.lang.String pId)
Removes an item from the Repository permantly 
 | 
void | 
removeItem(java.lang.String pId,
          java.lang.String pDescriptorName)
Removes an item from the Repository permantly 
 | 
void | 
setDefaultFileExtension(java.lang.String pDefaultFileExtension)
Set property  
defaultFileExtension | 
void | 
setIdGenerator(IdGenerator pIdGenerator)
Set property  
idGenerator | 
void | 
updateItem(MutableRepositoryItem pItem)
Updates the item's values into the Repository 
 | 
doStartService, getDataStore, getDefaultViewName, initializeData, isLoadDataOnStartup, isRebuildDataOnStartup, loadData, loadDataForItem, performScheduledTask, rebuildData, refresh, setDataStore, setDefaultViewName, setLoadDataOnStartup, setRebuildDataOnStartupcreateAdminServlet, doStopService, getComponentResourceBundleName, getContentIndex, getContentRootPathProvider, getFolder, getFolderByPath, getFolders, getFoldersByPath, getGroupRegistry, getItem, getItem, getItemByPath, getItemDescriptor, getItemDescriptor, getItemDescriptor, getItemDescriptorNames, getItems, getItems, getItemsByPath, getPathSeparator, getQueryCache, getRepositoryDisplayName, getRepositoryDisplayNameResource, getRepositoryName, getRootFolder, getScheduler, getUpdateSchedule, getView, getView, getViewNames, getViews, isQueryCacheEnabled, setComponentResourceBundleName, setContentRootPathProvider, setGroupRegistry, setItemDescriptor, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingWarning, setQueryCache, setQueryCacheEnabled, setRepositoryDisplayNameResource, setRepositoryName, setScheduler, setUpdateSchedule, setViewsaddLogListener, 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, setLoggingTrace, setNucleus, setServiceInfo, startService, stopService, toStringvlogDebug, 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, wait, wait, waitgetDefaultViewName, getItem, getItem, getItemDescriptor, getItemDescriptor, getItemDescriptorNames, getItems, getItems, getRepositoryName, getView, getView, getViewNamespublic void setIdGenerator(IdGenerator pIdGenerator)
idGeneratorpIdGenerator - new value to setpublic IdGenerator getIdGenerator()
idGeneratoridGeneratorpublic IdGenerator getDefaultIdGenerator()
DefaultIdGeneratorDefaultIdGeneratorpublic void setDefaultFileExtension(java.lang.String pDefaultFileExtension)
defaultFileExtensionpDefaultFileExtension - new value to setpublic java.lang.String getDefaultFileExtension()
defaultFileExtensiondefaultFileExtensionpublic MutableRepositoryItem getItemForUpdate(java.lang.String pId) throws RepositoryException
getItemForUpdate in interface MutableRepositorypId - the id of the item to update.RepositoryException - if the item could not be retreived for updatespublic MutableRepositoryItem getItemForUpdate(java.lang.String pId, java.lang.String pDescriptorName) throws RepositoryException
getItemForUpdate in interface MutableRepositorypId - the id of the item to update.pDescriptorName - the name of the type of item to update.RepositoryException - if the item could not be retreived for updatespublic MutableRepositoryItem[] getItemsForUpdate(java.lang.String[] pIds) throws RepositoryException
getItemsForUpdate in interface MutableRepositoryRepositoryException - if an item could not be retreived for updatespublic MutableRepositoryItem[] getItemsForUpdate(java.lang.String[] pIds, java.lang.String pDescriptorName) throws RepositoryException
getItemsForUpdate in interface MutableRepositorypIds - the list of ids of items to retrieve for updatepDescriptorName - the name of the item descriptor that contains
 these items.RepositoryException - if an item could not be retreived for updatespublic MutableRepositoryItem createItem(java.lang.String pDescriptorName) throws RepositoryException
createItem in interface MutableRepositorypDescriptorName - the name of the RepositoryItemDescriptor
 which should be used as the "template" to create the itemRepositoryException - if the item could not be createdpublic MutableRepositoryItem createItem(java.lang.String pId, java.lang.String pDescriptorName) throws RepositoryException
createItem in interface MutableRepositorypId - the id to use in an attempt to create the RepositoryItempDescriptorName - the name of the RepositoryItemDescriptor
 which should be used as the "template" to create the itemRepositoryException - if the item could not be createdDuplicateIdException - if the id is already in usepublic RepositoryItem addItem(RepositoryItem pItem, java.lang.String pDescriptorName) throws RepositoryException
addItem in interface MutableRepositorypItem - the item to addpDescriptorName - the name of the RepositoryItemDescriptor
 which should be used as the "template" to add the itemRepositoryException - if the item could not be addedpublic RepositoryItem addItem(MutableRepositoryItem pItem) throws RepositoryException
addItem in interface MutableRepositorypItem - the item to addpDescriptorName - the name of the RepositoryItemDescriptor
 which should be used as the "template" to add the itemRepositoryException - if the item could not be addedpublic void updateItem(MutableRepositoryItem pItem) throws RepositoryException
updateItem in interface MutableRepositorypItem - the item to updateRepositoryException - if the item could not be updatedpublic void removeItem(java.lang.String pId)
                throws RepositoryException
removeItem in interface MutableRepositorypItem - the item to removeRepositoryException - if the item could not be deletedpublic void removeItem(java.lang.String pId,
                       java.lang.String pDescriptorName)
                throws RepositoryException
removeItem in interface MutableRepositorypItem - the item to removeRepositoryException - if the item could not be deleted