mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added LIST constraint
- An optionally case-insensitive list of supported values - Supports any types that can be converted to String by our type-converter. Simple parameter values for constraints must not be in a <value> element, just like Spring properties (sorry) Constraint parameters of type java.util.List are now supported: <list> <value> <value> </list> git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2660 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -10,6 +10,7 @@ d_dictionary.constraint.err.type_or_ref=Constraint ''{0}'' cannot have a ''type'
|
||||
d_dictionary.constraint.err.ref_not_found=Constraint reference ''{0}'' not found on constraint ''{1}''
|
||||
d_dictionary.constraint.err.anon_needs_property=Anonymous constraints can only be declared within the context of a property
|
||||
d_dictionary.constraint.err.invalid_type=Constraint type ''{0}'' on constraint ''{1}'' is not a well-known type or a valid Constraint implementation
|
||||
d_dictionary.constraint.err.property_simple_and_list="Constraint ''{0}'' has both a simple and list value for property ''{1}''
|
||||
d_dictionary.constraint.err.construct_failure=Failed to construct an instance of type ''{0}'' for constraint ''{1}''
|
||||
d_dictionary.constraint.err.property_mismatch=Property mismatch setting property ''{0}'' on constraint ''{1}''
|
||||
d_dictionary.constraint.err.property_not_set=Property ''{0}'' has not been set on constraint ''{1}''
|
||||
@@ -34,3 +35,7 @@ d_dictionary.constraint.string_length.invalid_min_length=Invalid ''minLength'' p
|
||||
d_dictionary.constraint.string_length.invalid_max_length=Invalid ''maxLength'' property: {0}
|
||||
d_dictionary.constraint.string_length.non_string=Property value could not be converted to a String: {0}
|
||||
d_dictionary.constraint.string_length.invalid_length=String length of ''{0}'' is not in range [{1}; {2}]
|
||||
|
||||
d_dictionary.constraint.list_of_values.no_values=The list of allowed values is empty
|
||||
d_dictionary.constraint.list_of_values.non_string=Property value could not be converted to a String: {0}
|
||||
d_dictionary.constraint.list_of_values.invalid_value=The value is not an allowed value: {0}
|
||||
|
@@ -16,8 +16,8 @@
|
||||
|
||||
<constraints>
|
||||
<constraint name="cm:filename" type="REGEX">
|
||||
<parameter name="expression"><![CDATA[[^\"\*\\\>\<\?\/\:\|\¬\£\%\&\+\;]+]]></parameter>
|
||||
<parameter name="requiresMatch">true</parameter>
|
||||
<parameter name="expression"><value><![CDATA[[^\"\*\\\>\<\?\/\:\|\¬\£\%\&\+\;]+]]></value></parameter>
|
||||
<parameter name="requiresMatch"><value>true</value></parameter>
|
||||
</constraint>
|
||||
</constraints>
|
||||
|
||||
|
Reference in New Issue
Block a user