|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.repository.servlet.RepositoryFormDataImpl
public class RepositoryFormDataImpl
A minimal, stand-alone implementation of RepositoryFormData.
Created: July 25 2005
RepositoryFormEditor
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
RepositoryFormDataImpl(MutableRepository pRepository,
RepositoryItemDescriptor pItemDescriptor,
java.lang.String pRepositoryId,
ApplicationLogging pLogger,
atg.repository.servlet.RepositoryEditorErrorHandler pErrorHandler)
Create a RepositoryFormDataImpl, without having a pre-existing repository item. |
|
RepositoryFormDataImpl(RepositoryItem pRepositoryItem,
ApplicationLogging pLogger,
atg.repository.servlet.RepositoryEditorErrorHandler pErrorHandler)
|
Method Summary | |
---|---|
protected java.util.Dictionary |
createValueDictionary()
Create the value dictionary. |
boolean |
getCheckForReadOnlyProperties()
Returns whether or not the form handler should throw an exception when updating item properties and read only properties are in the value dictionary. |
boolean |
getCheckForRequiredProperties()
Gets whether or not the form handler should check that all the required properties are present during the create/update operations. |
boolean |
getEditMapsAsLists()
Gets the property EditMapsAsLists. |
atg.repository.servlet.RepositoryEditorErrorHandler |
getErrorHandler()
Return an object responsible for handling form errors |
boolean |
getExtractDefaultValuesFromItem()
Returns whether or not property values should be extracted from a repository item if they do not have values specified in the form. |
RepositoryItemDescriptor |
getItemDescriptor()
Return the item descriptor for the top-level item or null |
ApplicationLogging |
getLogger()
The component to use for logging |
java.lang.String |
getMapKeyValueSeparator()
Gets the property MapKeyValueSeparator. |
MutableRepository |
getRepository()
Returns the repository this objects operates on. |
java.lang.String |
getRepositoryId()
Returns the repository id of the item being manipulated. |
RepositoryItem |
getRepositoryItem()
The current repository item or null if no current item exists |
atg.repository.servlet.RepositoryItemEditor |
getRepositoryItemEditor()
Return an implementaion of RepositoryItemEditor |
java.util.Set |
getTrimProperties()
Get the Set of the names of properties to trim. |
java.util.Dictionary |
getValue()
Returns a dictionary that stores the pending property values associated with an operation on the repository item (e.g. |
boolean |
isCreateTransientItems()
Gets property CreateTransientItems. |
boolean |
isRequireMapKeys()
Indicates if the form should require keys for all entries in Map properties. |
boolean |
isSortRepositoryItemSets()
Indicates if the form should display Sets of RepositoryItems sorted according to their display names. |
boolean |
isTrimProperty(java.lang.String pProperty)
Tests whether pProperty should be trimmed or not |
boolean |
isUpdateItemsInCollection()
Return a flag that indicates if the form should update individual collection items when updating a collection property. |
void |
setCheckForReadOnlyProperties(boolean pCheckForReadOnlyProperties)
Sets whether or this form handler should throw an exception when updating item properties and read only properties are in the value dictionary. |
void |
setCheckForRequiredProperties(boolean pCheckForRequiredProperties)
Sets whether or not the form handler should check that all the required properties are present during the create/update operations. |
void |
setCreateTransientItems(boolean pCreateTransientItems)
Sets property CreateTransientItems. |
void |
setEditMapsAsLists(boolean pEditMapsAsLists)
Sets the property EditMapsAsLists. |
void |
setExtractDefaultValuesFromItem(boolean pExtractDefaultValuesFromItem)
Sets whether or not property values should be extracted from a repository item if they do not have values specified in the form. |
void |
setRequireMapKeys(boolean pRequireMapKeys)
Set a flag that indicates if the form should require keys for all entries in Map properties. |
void |
setSortRepositoryItemSets(boolean pSortRepositoryItemSets)
Set a flag that indicates if the form should display Sets of RepositoryItems sorted according to their display names. |
void |
setTrimProperties(java.util.Set pTrimProperties)
Set the Set of the names of properties to trim. |
void |
setUpdateItemsInCollection(boolean pUpdateItemsInCollection)
Set a flag that indicates if the form should update individual collection items when updating a collection property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public RepositoryFormDataImpl(RepositoryItem pRepositoryItem, ApplicationLogging pLogger, atg.repository.servlet.RepositoryEditorErrorHandler pErrorHandler) throws RepositoryException
RepositoryException
public RepositoryFormDataImpl(MutableRepository pRepository, RepositoryItemDescriptor pItemDescriptor, java.lang.String pRepositoryId, ApplicationLogging pLogger, atg.repository.servlet.RepositoryEditorErrorHandler pErrorHandler)
pRepository
- The repository to contain this itempRepositoryItemDescriptor
- The repository item descriptor for the item we are editing.pRepositoryId
- The repository id for the item we are editingpLogger
- The logger to use for logging.Method Detail |
---|
public void setTrimProperties(java.util.Set pTrimProperties)
public java.util.Set getTrimProperties()
public void setExtractDefaultValuesFromItem(boolean pExtractDefaultValuesFromItem)
public void setEditMapsAsLists(boolean pEditMapsAsLists)
pEditMapsAsLists
- new value to setpublic void setCheckForReadOnlyProperties(boolean pCheckForReadOnlyProperties)
public void setCheckForRequiredProperties(boolean pCheckForRequiredProperties)
public void setCreateTransientItems(boolean pCreateTransientItems)
The default setting is false.
public void setRequireMapKeys(boolean pRequireMapKeys)
public void setSortRepositoryItemSets(boolean pSortRepositoryItemSets)
public void setUpdateItemsInCollection(boolean pUpdateItemsInCollection)
public atg.repository.servlet.RepositoryItemEditor getRepositoryItemEditor()
getRepositoryItemEditor
in interface RepositoryFormData
public atg.repository.servlet.RepositoryEditorErrorHandler getErrorHandler()
getErrorHandler
in interface RepositoryFormData
public java.util.Dictionary getValue()
getValue
in interface RepositoryFormData
public RepositoryItemDescriptor getItemDescriptor() throws RepositoryException
getItemDescriptor
in interface RepositoryFormData
RepositoryException
public java.lang.String getRepositoryId()
getRepositoryId
in interface RepositoryFormData
public MutableRepository getRepository()
getRepository
in interface RepositoryFormData
public RepositoryItem getRepositoryItem()
getRepositoryItem
in interface RepositoryFormData
public java.lang.String getMapKeyValueSeparator()
getMapKeyValueSeparator
in interface RepositoryFormData
public boolean getExtractDefaultValuesFromItem()
getExtractDefaultValuesFromItem
in interface RepositoryFormData
public boolean getEditMapsAsLists()
getEditMapsAsLists
in interface RepositoryFormData
public boolean getCheckForReadOnlyProperties()
getCheckForReadOnlyProperties
in interface RepositoryFormData
public boolean getCheckForRequiredProperties()
getCheckForRequiredProperties
in interface RepositoryFormData
public boolean isCreateTransientItems()
isCreateTransientItems
in interface RepositoryFormData
public boolean isRequireMapKeys()
isRequireMapKeys
in interface RepositoryFormData
public boolean isSortRepositoryItemSets()
isSortRepositoryItemSets
in interface RepositoryFormData
public boolean isTrimProperty(java.lang.String pProperty)
isTrimProperty
in interface RepositoryFormData
pProperty
- the name of the property to check to be trimmed
public boolean isUpdateItemsInCollection()
isUpdateItemsInCollection
in interface RepositoryFormData
public ApplicationLogging getLogger()
getLogger
in interface RepositoryFormData
protected java.util.Dictionary createValueDictionary()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |