Package org.alfresco.repo.virtual.model
Class SystemTemplateLocationsConstraint
- java.lang.Object
-
- org.alfresco.repo.dictionary.constraint.AbstractConstraint
-
- org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
-
- org.alfresco.repo.virtual.model.SystemTemplateLocationsConstraint
-
- All Implemented Interfaces:
Constraint
public class SystemTemplateLocationsConstraint extends ListOfValuesConstraint
A system paths string values constraint to be used in conjunction withSystemVirtualizationMethods to provide available system paths by exploring a predefined location in the java classpath ad a predefined repository location.- Author:
- Silviu Dinuta
-
-
Field Summary
Fields Modifier and Type Field Description static StringNULL_SYSTEM_TEMPLATEstatic StringNULL_SYSTEM_TEMPLATE_MESSAGE-
Fields inherited from class org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
ALLOWED_VALUES_PARAM, CASE_SENSITIVE_PARAM, caseSensitive, CONSTRAINT_TYPE, sorted, SORTED_PARAM
-
Fields inherited from class org.alfresco.repo.dictionary.constraint.AbstractConstraint
ERR_EVALUATE_EXCEPTION, ERR_PROP_NOT_SET
-
-
Constructor Summary
Constructors Constructor Description SystemTemplateLocationsConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidevaluateSingleValue(Object value)List<String>getAllowedValues()StringgetDisplayLabel(String constraintAllowableValue, MessageLookup messageLookup)List<String>getRawAllowedValues()StringgetTemplatesParentClasspath()NodeRefExpressiongetTemplatesParentRepositoryPath()voidsetNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver)voidsetNodeService(NodeService nodeService)voidsetRepositoryTemplateTypeName(String repositoryTemplateTypeName)voidsetTemplatesParentClasspath(String templatesParentClasspath)voidsetTemplatesParentRepositoryPath(NodeRefExpression templatesParentRepositoryPath)-
Methods inherited from class org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
getParameters, getType, initialize, isCaseSensitive, isSorted, setAllowedValues, setCaseSensitive, setSorted, toString
-
Methods inherited from class org.alfresco.repo.dictionary.constraint.AbstractConstraint
checkPropertyNotNull, evaluate, evaluateCollection, getShortName, getTitle, set_shortName, setRegistry, setShortName, setTitle
-
-
-
-
Field Detail
-
NULL_SYSTEM_TEMPLATE
public static final String NULL_SYSTEM_TEMPLATE
- See Also:
- Constant Field Values
-
NULL_SYSTEM_TEMPLATE_MESSAGE
public static final String NULL_SYSTEM_TEMPLATE_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setNodeService
public void setNodeService(NodeService nodeService)
-
setTemplatesParentClasspath
public void setTemplatesParentClasspath(String templatesParentClasspath)
-
getTemplatesParentClasspath
public String getTemplatesParentClasspath()
-
getTemplatesParentRepositoryPath
public NodeRefExpression getTemplatesParentRepositoryPath()
-
setTemplatesParentRepositoryPath
public void setTemplatesParentRepositoryPath(NodeRefExpression templatesParentRepositoryPath)
-
setNamespacePrefixResolver
public void setNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver)
-
setRepositoryTemplateTypeName
public void setRepositoryTemplateTypeName(String repositoryTemplateTypeName)
-
getRawAllowedValues
public List<String> getRawAllowedValues()
- Overrides:
getRawAllowedValuesin classListOfValuesConstraint
-
getAllowedValues
public List<String> getAllowedValues()
- Overrides:
getAllowedValuesin classListOfValuesConstraint
-
getDisplayLabel
public String getDisplayLabel(String constraintAllowableValue, MessageLookup messageLookup)
- Overrides:
getDisplayLabelin classListOfValuesConstraint
-
evaluateSingleValue
protected void evaluateSingleValue(Object value)
- Overrides:
evaluateSingleValuein classListOfValuesConstraint
-
-