Class RecordsManagementTypeFormFilter

  • All Implemented Interfaces:
    RecordsManagementCustomModel, RecordsManagementModel, org.alfresco.repo.forms.processor.Filter<org.alfresco.service.cmr.dictionary.TypeDefinition,​org.alfresco.service.cmr.repository.NodeRef>

    public class RecordsManagementTypeFormFilter
    extends RecordsManagementFormFilter<org.alfresco.service.cmr.dictionary.TypeDefinition>
    implements RecordsManagementModel
    Implementation of a form processor Filter.

    The filter implements the afterGenerate method to ensure a default unique identifier is provided for the rma:identifier property.

    The filter also ensures that any custom properties defined for the records management type are provided as part of the Form.

    Author:
    Gavin Cornwell
    • Field Detail

      • NAME_FIELD_GROUP

        protected static final org.alfresco.repo.forms.FieldGroup NAME_FIELD_GROUP
      • TITLE_FIELD_GROUP

        protected static final org.alfresco.repo.forms.FieldGroup TITLE_FIELD_GROUP
      • DESC_FIELD_GROUP

        protected static final org.alfresco.repo.forms.FieldGroup DESC_FIELD_GROUP
      • OTHER_FIELD_GROUP

        protected static final org.alfresco.repo.forms.FieldGroup OTHER_FIELD_GROUP
      • identifierService

        protected IdentifierService identifierService
        Identifier service
    • Constructor Detail

      • RecordsManagementTypeFormFilter

        public RecordsManagementTypeFormFilter()
    • Method Detail

      • setIdentifierService

        public void setIdentifierService​(IdentifierService identifierService)
        Parameters:
        identifierService - identifier service
      • afterGenerate

        public void afterGenerate​(org.alfresco.service.cmr.dictionary.TypeDefinition type,
                                  List<String> fields,
                                  List<String> forcedFields,
                                  org.alfresco.repo.forms.Form form,
                                  Map<String,​Object> context)
        Specified by:
        afterGenerate in interface org.alfresco.repo.forms.processor.Filter<org.alfresco.service.cmr.dictionary.TypeDefinition,​org.alfresco.service.cmr.repository.NodeRef>
      • addCustomRMProperties

        protected void addCustomRMProperties​(org.alfresco.service.namespace.QName customisableType,
                                             org.alfresco.repo.forms.Form form)
        Adds a property definition for each of the custom properties for the given RM type to the given form.
        Parameters:
        customisableType - Enum representing the RM type to add custom properties for
        form - The form to add the properties to