Class SystemTemplateLocationsConstraint

  • All Implemented Interfaces:
    org.alfresco.service.cmr.dictionary.Constraint

    public class SystemTemplateLocationsConstraint
    extends org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
    A system paths string values constraint to be used in conjunction with SystemVirtualizationMethods 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 java.lang.String NULL_SYSTEM_TEMPLATE  
      static java.lang.String NULL_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
    • Field Detail

      • NULL_SYSTEM_TEMPLATE

        public static final java.lang.String NULL_SYSTEM_TEMPLATE
        See Also:
        Constant Field Values
      • NULL_SYSTEM_TEMPLATE_MESSAGE

        public static final java.lang.String NULL_SYSTEM_TEMPLATE_MESSAGE
        See Also:
        Constant Field Values
    • Constructor Detail

      • SystemTemplateLocationsConstraint

        public SystemTemplateLocationsConstraint()
    • Method Detail

      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
      • setTemplatesParentClasspath

        public void setTemplatesParentClasspath​(java.lang.String templatesParentClasspath)
      • getTemplatesParentClasspath

        public java.lang.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​(java.lang.String repositoryTemplateTypeName)
      • getRawAllowedValues

        public java.util.List<java.lang.String> getRawAllowedValues()
        Overrides:
        getRawAllowedValues in class org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
      • getAllowedValues

        public java.util.List<java.lang.String> getAllowedValues()
        Overrides:
        getAllowedValues in class org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
      • getDisplayLabel

        public java.lang.String getDisplayLabel​(java.lang.String constraintAllowableValue,
                                                org.alfresco.service.cmr.i18n.MessageLookup messageLookup)
        Overrides:
        getDisplayLabel in class org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
      • evaluateSingleValue

        protected void evaluateSingleValue​(java.lang.Object value)
        Overrides:
        evaluateSingleValue in class org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint