|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.forms.processor.AbstractFormProcessor
org.alfresco.repo.forms.processor.FilteredFormProcessor
org.alfresco.repo.forms.processor.node.ContentModelFormProcessor
org.alfresco.repo.forms.processor.node.NodeFormProcessor
public class NodeFormProcessor
FormProcessor implementation that can generate and persist Form objects for repository nodes.
Field Summary |
---|
Fields inherited from class org.alfresco.repo.forms.processor.node.ContentModelFormProcessor |
---|
associationNamePattern, contentService, dictionaryService, fileFolderService, namespaceService, nodeService, propertyNamePattern, transientPropertyPattern |
Fields inherited from class org.alfresco.repo.forms.processor.FilteredFormProcessor |
---|
fieldProcessorRegistry, filterRegistry |
Fields inherited from class org.alfresco.repo.forms.processor.AbstractFormProcessor |
---|
active, DESTINATION, matchPattern, patternMatcher, processorRegistry |
Constructor Summary | |
---|---|
NodeFormProcessor()
|
Method Summary | |
---|---|
protected java.util.Set |
getAspectNames(org.alfresco.service.cmr.repository.NodeRef nodeRef)
|
protected java.util.Map |
getAssociationValues(org.alfresco.service.cmr.repository.NodeRef item)
|
protected org.alfresco.service.cmr.dictionary.TypeDefinition |
getBaseType(org.alfresco.service.cmr.repository.NodeRef nodeRef)
|
protected java.lang.String |
getItemType(org.alfresco.service.cmr.repository.NodeRef item)
Returns a String describing the type fo the specified item. |
protected java.lang.String |
getItemURI(org.alfresco.service.cmr.repository.NodeRef item)
Returns the URI location of the specified item. |
protected org.apache.commons.logging.Log |
getLogger()
Retrieves a logger instance to log to. |
protected java.util.Map |
getPropertyValues(org.alfresco.service.cmr.repository.NodeRef nodeRef)
|
protected java.util.Map |
getTransientValues(org.alfresco.service.cmr.repository.NodeRef item)
|
protected org.alfresco.service.cmr.repository.NodeRef |
getTypedItem(Item item)
Returns a typed Object representing the given item. |
protected void |
internalGenerate(org.alfresco.service.cmr.repository.NodeRef item,
java.util.List fields,
java.util.List forcedFields,
Form form,
java.util.Map context)
Generates the form. |
protected org.alfresco.service.cmr.repository.NodeRef |
internalPersist(org.alfresco.service.cmr.repository.NodeRef item,
FormData data)
Persists the form data. |
protected void |
processWorkingCopy(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Form form)
Determines whether the given node represents a working copy, if it does the name field is searched for and set to protected as the name field should not be edited for a working copy. |
Methods inherited from class org.alfresco.repo.forms.processor.node.ContentModelFormProcessor |
---|
addPropertyDataIfRequired, determineDefaultMimetype, generateDefaultFields, getDefaultIgnoredFields, makeItemData, persistNode, processAssociationPersist, processContentPropertyPersist, processEncodingPropertyPersist, processMimetypePropertyPersist, processNamePropertyPersist, processPropertyPersist, setContentService, setDictionaryService, setFileFolderService, setNamespaceService, setNodeService |
Methods inherited from class org.alfresco.repo.forms.processor.FilteredFormProcessor |
---|
generate, generateSelectedFields, persist, populateForm, setFieldProcessorRegistry, setFilterRegistry, setIgnoredFields |
Methods inherited from class org.alfresco.repo.forms.processor.AbstractFormProcessor |
---|
isActive, isApplicable, register, setActive, setFormItemType, setFormItemUrl, setMatchPattern, setProcessorRegistry, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NodeFormProcessor()
Method Detail |
---|
protected org.apache.commons.logging.Log getLogger()
FilteredFormProcessor
getLogger
in class FilteredFormProcessor
protected org.alfresco.service.cmr.repository.NodeRef getTypedItem(Item item)
FilteredFormProcessor
Subclasses that represent a form type will return a typed object that is then passed to each of it's handlers, the handlers can therefore safely cast the Object to the type they expect.
getTypedItem
in class FilteredFormProcessor
item
- The item to get a typed object for
protected java.lang.String getItemType(org.alfresco.service.cmr.repository.NodeRef item)
FilteredFormProcessor
String
describing the type fo the specified item.
getItemType
in class FilteredFormProcessor
protected java.lang.String getItemURI(org.alfresco.service.cmr.repository.NodeRef item)
FilteredFormProcessor
getItemURI
in class FilteredFormProcessor
protected java.util.Map getPropertyValues(org.alfresco.service.cmr.repository.NodeRef nodeRef)
getPropertyValues
in class ContentModelFormProcessor
protected java.util.Map getAssociationValues(org.alfresco.service.cmr.repository.NodeRef item)
getAssociationValues
in class ContentModelFormProcessor
protected java.util.Map getTransientValues(org.alfresco.service.cmr.repository.NodeRef item)
getTransientValues
in class ContentModelFormProcessor
protected java.util.Set getAspectNames(org.alfresco.service.cmr.repository.NodeRef nodeRef)
getAspectNames
in class ContentModelFormProcessor
protected org.alfresco.service.cmr.dictionary.TypeDefinition getBaseType(org.alfresco.service.cmr.repository.NodeRef nodeRef)
getBaseType
in class ContentModelFormProcessor
protected void processWorkingCopy(org.alfresco.service.cmr.repository.NodeRef nodeRef, Form form)
nodeRef
- NodeRef of node to check and potentially processform
- The generated formprotected void internalGenerate(org.alfresco.service.cmr.repository.NodeRef item, java.util.List fields, java.util.List forcedFields, Form form, java.util.Map context)
FilteredFormProcessor
internalGenerate
in class FilteredFormProcessor
item
- The object to generate a form forfields
- Restricted list of fields to includeforcedFields
- List of fields to forcibly includeform
- The form object being generatedcontext
- Map representing optional context that can be used during
retrieval of the formprotected org.alfresco.service.cmr.repository.NodeRef internalPersist(org.alfresco.service.cmr.repository.NodeRef item, FormData data)
FilteredFormProcessor
internalPersist
in class FilteredFormProcessor
item
- The object to persist the form fordata
- The data to persist
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |