mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Part 1 of MOB-1036. Added form processor filter to intercept the requests for create forms for the records management container types i.e. series, category & folder. The filter adds a default value to the rma:identifier property so the 'Identifer' field in the create dialogs has a pre-populated default (a GUID for now).
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15386 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -72,7 +72,7 @@ public class FilterRegistry
|
||||
this.filters.add(filter);
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Registered filter: " + filter + " in register: " + this);
|
||||
logger.debug("Registered filter: " + filter + " in registry: " + this);
|
||||
}
|
||||
else if (logger.isWarnEnabled())
|
||||
{
|
||||
|
@@ -29,6 +29,8 @@ import java.util.List;
|
||||
import org.alfresco.repo.forms.Form;
|
||||
import org.alfresco.repo.forms.FormData;
|
||||
import org.alfresco.repo.forms.Item;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
/**
|
||||
* Abstract base class for all FormProcessor implementations that wish to use the
|
||||
@@ -38,6 +40,8 @@ import org.alfresco.repo.forms.Item;
|
||||
*/
|
||||
public abstract class FilteredFormProcessor extends AbstractFormProcessor
|
||||
{
|
||||
private static final Log logger = LogFactory.getLog(FilteredFormProcessor.class);
|
||||
|
||||
protected FilterRegistry filterRegistry;
|
||||
|
||||
/**
|
||||
@@ -48,6 +52,9 @@ public abstract class FilteredFormProcessor extends AbstractFormProcessor
|
||||
public void setFilterRegistry(FilterRegistry filterRegistry)
|
||||
{
|
||||
this.filterRegistry = filterRegistry;
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Set filter registry: " + this.filterRegistry + " for processor: " + this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user