Search in sources :

Example 1 with ParameterDefinitionImpl

use of org.alfresco.repo.action.ParameterDefinitionImpl in project records-management by Alfresco.

the class ApplyCustomTypeAction method addParameterDefinitions.

/**
 * @see org.alfresco.module.org_alfresco_module_rm.action.RMActionExecuterAbstractBase#addParameterDefinitions(java.util.List)
 */
@Override
protected final void addParameterDefinitions(List<ParameterDefinition> paramList) {
    AspectDefinition aspectDef = getDictionaryService().getAspect(customTypeAspect);
    for (PropertyDefinition propDef : aspectDef.getProperties().values()) {
        QName propName = propDef.getName();
        QName propType = propDef.getDataType().getName();
        paramList.add(new ParameterDefinitionImpl(propName.toPrefixString(), propType, propDef.isMandatory(), null));
    }
}
Also used : QName(org.alfresco.service.namespace.QName) AspectDefinition(org.alfresco.service.cmr.dictionary.AspectDefinition) PropertyDefinition(org.alfresco.service.cmr.dictionary.PropertyDefinition) ParameterDefinitionImpl(org.alfresco.repo.action.ParameterDefinitionImpl)

Example 2 with ParameterDefinitionImpl

use of org.alfresco.repo.action.ParameterDefinitionImpl in project records-management by Alfresco.

the class CopyMoveLinkFileToBaseAction method addParameterDefinitions.

/**
 * @see org.alfresco.module.org_alfresco_module_rm.action.RMActionExecuterAbstractBase#addParameterDefinitions(java.util.List)
 */
@Override
protected void addParameterDefinitions(List<ParameterDefinition> paramList) {
    paramList.add(new ParameterDefinitionImpl(PARAM_PATH, DataTypeDefinition.TEXT, false, getParamDisplayLabel(PARAM_PATH)));
    paramList.add(new ParameterDefinitionImpl(PARAM_CREATE_RECORD_PATH, DataTypeDefinition.BOOLEAN, false, getParamDisplayLabel(PARAM_CREATE_RECORD_PATH)));
}
Also used : ParameterDefinitionImpl(org.alfresco.repo.action.ParameterDefinitionImpl)

Example 3 with ParameterDefinitionImpl

use of org.alfresco.repo.action.ParameterDefinitionImpl in project records-management by Alfresco.

the class HasDispositionActionEvaluator method addParameterDefinitions.

@Override
protected void addParameterDefinitions(List<ParameterDefinition> paramList) {
    paramList.add(new ParameterDefinitionImpl(PARAM_DISPOSITION_ACTION_RELATIVE_POSITION, DataTypeDefinition.QNAME, true, getParamDisplayLabel(PARAM_DISPOSITION_ACTION_RELATIVE_POSITION), false, "rm-ac-disposition-action-relative-positions"));
    paramList.add(new ParameterDefinitionImpl(PARAM_DISPOSITION_ACTION, DataTypeDefinition.QNAME, true, getParamDisplayLabel(PARAM_DISPOSITION_ACTION), false, "rm-ac-disposition-actions"));
}
Also used : ParameterDefinitionImpl(org.alfresco.repo.action.ParameterDefinitionImpl)

Example 4 with ParameterDefinitionImpl

use of org.alfresco.repo.action.ParameterDefinitionImpl in project records-management by Alfresco.

the class TestActionPropertySubs method addParameterDefinitions.

@Override
protected void addParameterDefinitions(List<ParameterDefinition> paramList) {
    paramList.add(new ParameterDefinitionImpl("dayShort", DataTypeDefinition.TEXT, false, ""));
    paramList.add(new ParameterDefinitionImpl("dayShort2", DataTypeDefinition.TEXT, false, ""));
    paramList.add(new ParameterDefinitionImpl("dayLong", DataTypeDefinition.TEXT, false, ""));
    paramList.add(new ParameterDefinitionImpl("dayNumber", DataTypeDefinition.TEXT, false, ""));
    paramList.add(new ParameterDefinitionImpl("dayYear", DataTypeDefinition.TEXT, false, ""));
    paramList.add(new ParameterDefinitionImpl("monthShort", DataTypeDefinition.TEXT, false, ""));
    paramList.add(new ParameterDefinitionImpl("monthShort2", DataTypeDefinition.TEXT, false, ""));
    paramList.add(new ParameterDefinitionImpl("monthLong", DataTypeDefinition.TEXT, false, ""));
    paramList.add(new ParameterDefinitionImpl("monthNumber", DataTypeDefinition.TEXT, false, ""));
    paramList.add(new ParameterDefinitionImpl("yearShort", DataTypeDefinition.TEXT, false, ""));
    paramList.add(new ParameterDefinitionImpl("yearShort2", DataTypeDefinition.TEXT, false, ""));
    paramList.add(new ParameterDefinitionImpl("yearLong", DataTypeDefinition.TEXT, false, ""));
    paramList.add(new ParameterDefinitionImpl("yearWeek", DataTypeDefinition.TEXT, false, ""));
    paramList.add(new ParameterDefinitionImpl("name", DataTypeDefinition.TEXT, false, ""));
    paramList.add(new ParameterDefinitionImpl("company", DataTypeDefinition.TEXT, false, ""));
    paramList.add(new ParameterDefinitionImpl("combo", DataTypeDefinition.TEXT, false, ""));
}
Also used : ParameterDefinitionImpl(org.alfresco.repo.action.ParameterDefinitionImpl)

Example 5 with ParameterDefinitionImpl

use of org.alfresco.repo.action.ParameterDefinitionImpl in project records-management by Alfresco.

the class RequestInfoAction method addParameterDefinitions.

/**
 * @see org.alfresco.module.org_alfresco_module_rm.action.RMActionExecuterAbstractBase#addParameterDefinitions(java.util.List)
 */
@Override
protected void addParameterDefinitions(List<ParameterDefinition> paramList) {
    paramList.add(new ParameterDefinitionImpl(PARAM_REQUESTED_INFO, DataTypeDefinition.TEXT, true, getParamDisplayLabel(PARAM_REQUESTED_INFO)));
    paramList.add(new ParameterDefinitionImpl(PARAM_ASSIGNEES, DataTypeDefinition.ANY, true, getParamDisplayLabel(PARAM_ASSIGNEES)));
    paramList.add(new ParameterDefinitionImpl(PARAM_RULE_CREATOR, DataTypeDefinition.TEXT, true, getParamDisplayLabel(PARAM_RULE_CREATOR)));
}
Also used : ParameterDefinitionImpl(org.alfresco.repo.action.ParameterDefinitionImpl)

Aggregations

ParameterDefinitionImpl (org.alfresco.repo.action.ParameterDefinitionImpl)6 AspectDefinition (org.alfresco.service.cmr.dictionary.AspectDefinition)2 PropertyDefinition (org.alfresco.service.cmr.dictionary.PropertyDefinition)2 QName (org.alfresco.service.namespace.QName)2 HashMap (java.util.HashMap)1 Map (java.util.Map)1 AlfrescoRuntimeException (org.alfresco.error.AlfrescoRuntimeException)1 ParameterDefinition (org.alfresco.service.cmr.action.ParameterDefinition)1