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:
org.alfresco.service.cmr.dictionary.Constraint
public class SystemTemplateLocationsConstraint extends org.alfresco.repo.dictionary.constraint.ListOfValuesConstraintA 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
-
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, org.alfresco.service.cmr.i18n.MessageLookup messageLookup)List<String>getRawAllowedValues()StringgetTemplatesParentClasspath()NodeRefExpressiongetTemplatesParentRepositoryPath()voidsetNamespacePrefixResolver(org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver)voidsetNodeService(org.alfresco.service.cmr.repository.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
-
-
-
-
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(org.alfresco.service.cmr.repository.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(org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver)
-
setRepositoryTemplateTypeName
public void setRepositoryTemplateTypeName(String repositoryTemplateTypeName)
-
getRawAllowedValues
public List<String> getRawAllowedValues()
- Overrides:
getRawAllowedValuesin classorg.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
-
getAllowedValues
public List<String> getAllowedValues()
- Overrides:
getAllowedValuesin classorg.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
-
getDisplayLabel
public String getDisplayLabel(String constraintAllowableValue, org.alfresco.service.cmr.i18n.MessageLookup messageLookup)
- Overrides:
getDisplayLabelin classorg.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
-
evaluateSingleValue
protected void evaluateSingleValue(Object value)
- Overrides:
evaluateSingleValuein classorg.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
-
-