public class XMLRepositoryFormHandler extends RepositoryFormHandler
(1) You can refer to repository items by "name" rather than the
 (less user friendly) repository id.  For example, instead of
 setting the repositoryId property to
 "/targetedcontent/foo.html," one can set itemName to
 "foo," and also set the itemFolder and
 itemExtension properties to "/targetedcontent/" and
 ".html," respectively.  Setting these properties has the effect of
 also updating the repositoryId property to the
 corresponding repository id.
 
(2) There is a special content property, which
 represents the content associated with the repository item.  The
 contentPropertyName property specifies the actual
 property name of the item which is to be treated as the "content."
 Before the content property is set in the item, we insert paragraph
 tags where the text's paragraphs start and end, thus making the
 content appropriate for an item in an XML or HTML repository.  For
 example, if the contentParagraphTagName property is
 set to "p," the content's paragraphs are enclosed in the <p>
 and </p> tags.  When the content property is read back into
 the form, the paragraph tags are stripped off again, so that the
 user only sees regular text.
RepositoryFormHandler| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
STATUS_ERROR_REDIRECT, STATUS_ERROR_STAY, STATUS_SUCCESSPARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDSSERVICE_INFO_KEYNULL_SENTINEL, REPOSITORY_ID_PROPERTY_NAME, RESOURCE_BUNDLE_NAME, UPDATE_APPEND, UPDATE_PREPEND, UPDATE_REMOVE, UPDATE_REPLACEDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description | 
|---|
| XMLRepositoryFormHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | getClaimPropertyName()Returns property ClaimPropertyName | 
| java.lang.String | getContent()Returns the item's content. | 
| java.lang.String | getContentParagraphTagName()Returns the name of the XML/HTML tag in which the content's
 paragraphs should be enclosed. | 
| java.lang.String | getContentPropertyName()Returns the property name of the item's "content" property. | 
| java.lang.String | getItemExtension()Returns the item's file extension, if any. | 
| java.lang.String | getItemFolder()Returns the item's folder in the repository. | 
| java.lang.String | getItemName()Returns the item's name. | 
| java.lang.String | getItemPathWordSeparator()Returns the string to replace spaces with in the item's path. | 
| java.util.Properties | getLinksDictionary()Returns the set of properties/dictionary of HTTP links which
 correspond to some content. | 
| java.lang.String | getXmlEncoding()Returns the name of the encoding type to be used for the actual
  XML file. | 
| boolean | handleClaimUpdate(DynamoHttpServletRequest pRequest,
                 DynamoHttpServletResponse pResponse)Checks to see if the current editor can claim the requested
 article. | 
| void | setClaimPropertyName(java.lang.String pClaimPropertyName)Sets property ClaimPropertyName | 
| void | setContent(java.lang.String pContent)Sets the item's content. | 
| void | setContentParagraphTagName(java.lang.String pContentParagraphTagName)Sets the name of the XML/HTML tag in which the content's
 paragraphs should be enclosed. | 
| void | setContentPropertyName(java.lang.String pContentPropertyName)Sets the property name of the item's "content" property. | 
| void | setItemExtension(java.lang.String pItemExtension)Sets the item's file extension and, consequently, updates the
  repositoryIdproperty to the repository id
 corresponding to the item's name, folder, and extension. | 
| void | setItemFolder(java.lang.String pItemFolder)Sets the item's folder in the repository and, consequently,
 updates the  repositoryIdproperty to the repository
 id corresponding to the item's name, folder, and extension. | 
| void | setItemName(java.lang.String pItemName)Sets the item's name and, consequently, updates the
  repositoryIdproperty to the corresponding
 repository id. | 
| void | setItemPathWordSeparator(java.lang.String pItemPathWordSeparator)Sets the string to replace spaces with in the item's path. | 
| void | setLinksDictionary(java.util.Properties pLinksDictionary)Sets the set of properties/dictionary of HTTP links which
 correspond to some content. | 
| void | setXmlEncoding(java.lang.String pXMLEncoding)Sets the name of the encoding type to be used for the actual
 XML file. | 
| protected void | updateItem(DynamoHttpServletRequest pRequest,
          DynamoHttpServletResponse pResponse)Updates the repository item given by the current repository id. | 
checkFormError, checkFormSuccess, checkForRequiredProperties, deleteItem, getCheckForReadOnlyProperties, getCheckForRequiredProperties, getContentItemDescriptor, getContentNameProperty, getContentPathProperty, getCreateErrorURL, getCreateSuccessURL, getDeleteErrorURL, getDeleteSuccessURL, getEditMapsAsLists, getErrorHandler, getExtractDefaultValuesFromItem, getFolderIdProperty, getItemDescriptor, getItemDescriptorName, getItemProperty, getLogger, getMapKeyValueSeparator, getRemoveReferencesToDeletedItems, getRepository, getRepositoryId, getRepositoryItem, getRepositoryItemEditor, getRepositoryPathName, getRequireIdOnCreate, getSpecifiedIdPropertyValue, getTransactionDemarcation, getTransactionManager, getTrimProperties, getUpdateErrorURL, getUpdateSuccessURL, getValue, getValueProperty, handleCreate, handleDelete, handleUpdate, isClearValueOnSet, isCreateTransientItems, isRequireMapKeys, isSortRepositoryItemSets, isTrimProperty, isUpdateItemsInCollection, postCreateItem, postDeleteItem, postUpdateItem, postUpdateItemProperties, preCreateItem, preDeleteItem, preUpdateItem, setCheckForReadOnlyProperties, setCheckForRequiredProperties, setClearValueOnSet, setContentNameProperty, setContentPathProperty, setCreateErrorURL, setCreateSuccessURL, setCreateTransientItems, setDeleteErrorURL, setDeleteSuccessURL, setEditMapsAsLists, setExtractDefaultValuesFromItem, setFolderIdProperty, setItemDescriptorName, setMapKeyValueSeparator, setRemoveReferencesToDeletedItems, setRepository, setRepositoryId, setRepositoryItemEditor, setRepositoryPathName, setRequireIdOnCreate, setRequireMapKeys, setSortRepositoryItemSets, setTrimProperties, setUpdateErrorURL, setUpdateItemsInCollection, setUpdateSuccessURL, setValueProperty, testPropertyAttribute, updateChildItemProperty, updateContentItemValues, updateItemProperties, updateListProperty, updateMapPropertyaddFormException, addUncheckedFormException, afterSet, beforeSet, checkFormRedirect, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormError, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleCancel, handleFormException, handleUncheckedFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwardsafterGet, beforeGetaddLogListener, 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, vlogWarningpublic java.lang.String getItemName()
public void setItemName(java.lang.String pItemName)
repositoryId property to the corresponding
 repository id.public java.lang.String getItemFolder()
public void setItemFolder(java.lang.String pItemFolder)
repositoryId property to the repository
 id corresponding to the item's name, folder, and extension.  The
 folder is expected to end with a "/" (e.g., "/targetedcontent/").public java.lang.String getItemExtension()
public void setItemExtension(java.lang.String pItemExtension)
repositoryId property to the repository id
 corresponding to the item's name, folder, and extension.  The
 extension is expected to start with a "." (e.g., ".html").public java.lang.String getItemPathWordSeparator()
public void setItemPathWordSeparator(java.lang.String pItemPathWordSeparator)
itemPathWordSeparator is set to "_" then
 the id "/targeted content/my item.html" will be converted into
 "/targeted_content/my_item.html."public java.lang.String getContentPropertyName()
public void setContentPropertyName(java.lang.String pContentPropertyName)
public java.lang.String getContentParagraphTagName()
public void setContentParagraphTagName(java.lang.String pContentParagraphTagName)
public java.lang.String getXmlEncoding()
public void setXmlEncoding(java.lang.String pXMLEncoding)
public java.util.Properties getLinksDictionary()
public void setLinksDictionary(java.util.Properties pLinksDictionary)
public java.lang.String getContent()
public void setContent(java.lang.String pContent)
value.content, where content
 is specified by contentPropertyName.
 Before the item's content is set, links to any known content
 are added.
 The property value is set to the item's content after HTML
 paragraph tags are added to it.public java.lang.String getClaimPropertyName()
public void setClaimPropertyName(java.lang.String pClaimPropertyName)
public boolean handleClaimUpdate(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
It then updates the rest of the article's meta-data. See atg.repository.servlet.RepositoryFormHandler.handleUpdate().
pRequest - the servlet's requestpResponse - the servlet's responsejavax.servlet.ServletException - if there was an error while executing
 the codejava.io.IOException - if there was an error with servlet ioatg.repository.servlet.RepositoryFormHandler.handleUpdateprotected void updateItem(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
value property are saved into
 the repository item.  Also, the XML encoding (which is not
 technically a property of the repository item) is updated through
 the XMLDeclaration.  If any errors occur in the process, form
 errors will be added.updateItem in class RepositoryFormHandlerpRequest - the servlet's requestpResponse - the servlet's responsejavax.servlet.ServletException - if there was an error while executing
 the codejava.io.IOException - if there was an error with servlet io