| 
 | |||||||||
| 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.content.ContentRepositoryService
atg.adapter.html.ImmutableSimpleRepository
atg.adapter.html.SimpleRepository
public class SimpleRepository
HTML Repository implementation.
| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| Fields inherited from class atg.adapter.html.ImmutableSimpleRepository | 
|---|
| HTML_VIEW_NAME | 
| Fields inherited from class atg.repository.content.ContentRepositoryService | 
|---|
| DEFAULT_GROUP_REGISTRY, mContentIndex, NULL_VALUE_ID, PATH_SEPARATOR, PATH_SEPARATOR_CHAR, RELATIVEPATH_PROPERTYNAME, ROOT_FOLDER_ID | 
| 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 | |
|---|---|
| SimpleRepository()Constructs a SimpleRepository | |
| Method Summary | |
|---|---|
|  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 | 
| Methods inherited from class atg.adapter.html.ImmutableSimpleRepository | 
|---|
| doStartService, getDataStore, getDefaultViewName, initializeData, isLoadDataOnStartup, isRebuildDataOnStartup, loadData, loadDataForItem, performScheduledTask, rebuildData, refresh, setDataStore, setDefaultViewName, setLoadDataOnStartup, setRebuildDataOnStartup | 
| Methods inherited from class atg.repository.content.ContentRepositoryService | 
|---|
| createAdminServlet, 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, setViews | 
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl | 
|---|
| vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, 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 | 
| Field Detail | 
|---|
public static java.lang.String CLASS_VERSION
| Constructor Detail | 
|---|
public SimpleRepository()
| Method Detail | 
|---|
public void setIdGenerator(IdGenerator pIdGenerator)
idGenerator
pIdGenerator - new value to setpublic IdGenerator getIdGenerator()
idGenerator
idGeneratorpublic IdGenerator getDefaultIdGenerator()
DefaultIdGenerator
DefaultIdGeneratorpublic void setDefaultFileExtension(java.lang.String pDefaultFileExtension)
defaultFileExtension
pDefaultFileExtension - new value to setpublic java.lang.String getDefaultFileExtension()
defaultFileExtension
defaultFileExtension
public 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 updates
public 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 updates
public MutableRepositoryItem[] getItemsForUpdate(java.lang.String[] pIds)
                                          throws RepositoryException
getItemsForUpdate in interface MutableRepositoryRepositoryException - if an item could not be retreived for updates
public 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 updates
public 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 item
RepositoryException - if the item could not be created
public 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 item
RepositoryException - if the item could not be created
DuplicateIdException - if the id is already in use
public 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 item
RepositoryException - if the item could not be added
public 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 item
RepositoryException - if the item could not be added
public void updateItem(MutableRepositoryItem pItem)
                throws RepositoryException
updateItem in interface MutableRepositorypItem - the item to update
RepositoryException - if the item could not be updated
public void removeItem(java.lang.String pId)
                throws RepositoryException
removeItem in interface MutableRepositorypItem - the item to remove
RepositoryException - if the item could not be deleted
public void removeItem(java.lang.String pId,
                       java.lang.String pDescriptorName)
                throws RepositoryException
removeItem in interface MutableRepositorypItem - the item to remove
RepositoryException - if the item could not be deleted| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||