Package org.alfresco.repo.action

Examples of org.alfresco.repo.action.ParameterDefinitionImpl


        }
    }

    protected void addParameterDefinitions(List<ParameterDefinition> paramList) {
        paramList.add(
                new ParameterDefinitionImpl( // Create a new parameter definition to add to the list
                PARAM_ACTIVE, // The name used to identify the parameter
                DataTypeDefinition.BOOLEAN, // The parameter value type
                false, // Indicates whether the parameter is mandatory
                getParamDisplayLabel(PARAM_ACTIVE)));   // The parameters display label

        paramList.add(
                new ParameterDefinitionImpl(
                PARAM_PASS,
                DataTypeDefinition.TEXT,
                true,
                getParamDisplayLabel(PARAM_PASS)));
    }
View Full Code Here


                    + " Make sure you specify a valid DataType from the Dictionary.", clazz, method));
          }
          final boolean mandatory = actionParameter.mandatory();
          final String displayLabel = actionParameter.displayLabel();
          final String constraintName = StringUtils.stripToNull(actionParameter.constraintName());
          final ParameterDefinition parameterDefinition = new ParameterDefinitionImpl(name,
              dataType.getName(), mandatory, displayLabel, multivalued, constraintName);
          parameterDefinitions.add(parameterDefinition);
          final String parameterName = parameterDefinition.getName();
          if (mapping.hasParameter(parameterName) == false) {
            mapping.addParameterMapping(new ParameterMapping(parameterDefinition, index, clazz));
          } else {
            throw new RuntimeException(String.format("Duplicate parameter '%s'", parameterName));
          }
View Full Code Here

TOP

Related Classes of org.alfresco.repo.action.ParameterDefinitionImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.