Class AbstractBeCPGQueryBuilder

java.lang.Object
fr.becpg.repo.search.impl.AbstractBeCPGQueryBuilder
Direct Known Subclasses:
BeCPGQueryBuilder

public abstract class AbstractBeCPGQueryBuilder extends Object

Abstract AbstractBeCPGQueryBuilder class.

Version:
$Id: $Id
Author:
matthieu
  • Field Details

  • Constructor Details

    • AbstractBeCPGQueryBuilder

      public AbstractBeCPGQueryBuilder()
  • Method Details

    • getCondEqualValue

      protected String getCondEqualValue(org.alfresco.service.namespace.QName property, String value)

      getCondEqualValue.

      Parameters:
      property - a QName object.
      value - a String object.
      Returns:
      a String object.
    • getCondEqualID

      protected String getCondEqualID(org.alfresco.service.cmr.repository.NodeRef nodeRef)

      getCondEqualID.

      Parameters:
      nodeRef - a NodeRef object.
      Returns:
      a String object.
    • getCondContainsValue

      protected String getCondContainsValue(org.alfresco.service.namespace.QName property, String value)

      getCondContainsValue.

      Parameters:
      property - a QName object.
      value - a String object.
      Returns:
      a String object.
    • getCondIsNullValue

      protected String getCondIsNullValue(org.alfresco.service.namespace.QName property)

      getCondIsNullValue.

      Parameters:
      property - a QName object.
      Returns:
      a String object.
    • getCondIsNullOrIsUnsetValue

      protected String getCondIsNullOrIsUnsetValue(org.alfresco.service.namespace.QName property)

      getCondIsNullOrIsUnsetValue.

      Parameters:
      property - a QName object.
      Returns:
      a String object.
    • getCondExactPath

      protected String getCondExactPath(String path)

      getCondExactPath.

      Parameters:
      path - a String object.
      Returns:
      a String object.
    • getCondPath

      protected String getCondPath(String path)

      getCondPath.

      Parameters:
      path - a String object.
      Returns:
      a String object.
    • getCondSubPath

      protected String getCondSubPath(String path)

      getCondSubPath.

      Parameters:
      path - a String object.
      Returns:
      a String object.
    • getCondMembers

      protected String getCondMembers(String path)

      getCondMembers.

      Parameters:
      path - a String object.
      Returns:
      a String object.
    • getCondParent

      protected String getCondParent(org.alfresco.service.cmr.repository.NodeRef nodeRef)

      getCondParent.

      Parameters:
      nodeRef - a NodeRef object.
      Returns:
      a String object.
    • getCondType

      protected String getCondType(org.alfresco.service.namespace.QName type)

      getCondType.

      Parameters:
      type - a QName object.
      Returns:
      a String object.
    • getCondSite

      protected String getCondSite(String siteId)

      getCondSite.

      Parameters:
      siteId - a String object.
      Returns:
      a String object.
    • getCondExactType

      protected String getCondExactType(org.alfresco.service.namespace.QName type)

      getCondExactType.

      Parameters:
      type - a QName object.
      Returns:
      a String object.
    • getCondAspect

      protected String getCondAspect(org.alfresco.service.namespace.QName aspect)

      getCondAspect.

      Parameters:
      aspect - a QName object.
      Returns:
      a String object.
    • getCond

      protected String getCond(String cond, org.alfresco.service.cmr.search.SearchParameters.Operator operator)

      getCond.

      Parameters:
      cond - a String object.
      operator - a SearchParameters.Operator object.
      Returns:
      a String object.
    • mandatory

      protected String mandatory(String condType)

      mandatory.

      Parameters:
      condType - a String object.
      Returns:
      a String object.
    • equalsQuery

      protected String equalsQuery(String condType)

      equalsQuery.

      Parameters:
      condType - a String object.
      Returns:
      a String object.
    • prohibided

      protected String prohibided(String condType)

      prohibided.

      Parameters:
      condType - a String object.
      Returns:
      a String object.
    • or

      protected String or(String condType)

      or.

      Parameters:
      condType - a String object.
      Returns:
      a String object.
    • optional

      protected String optional(String condType)

      optional.

      Parameters:
      condType - a String object.
      Returns:
      a String object.
    • boost

      protected String boost(String condType, Integer boostFactor)

      boost.

      Parameters:
      condType - a String object.
      boostFactor - a Integer object.
      Returns:
      a String object.
    • startGroup

      protected String startGroup()

      startGroup.

      Returns:
      a String object.
    • endGroup

      protected String endGroup()

      endGroup.

      Returns:
      a String object.
    • getGroup

      protected String getGroup(String op1, String op2)

      getGroup.

      Parameters:
      op1 - a String object.
      op2 - a String object.
      Returns:
      a String object.
    • getMandatoryOrGroup

      protected String getMandatoryOrGroup(String op1, String op2)

      getMandatoryOrGroup.

      Parameters:
      op1 - a String object.
      op2 - a String object.
      Returns:
      a String object.
    • getSortProp

      protected String getSortProp(org.alfresco.service.namespace.QName field)

      getSortProp.

      Parameters:
      field - a QName object.
      Returns:
      a String object.
    • getSort

      protected Map<String,Boolean> getSort(org.alfresco.service.namespace.QName field, boolean asc)

      getSort.

      Parameters:
      field - a QName object.
      asc - a boolean.
      Returns:
      a Map object.
    • getSort

      protected Map<String,Boolean> getSort(org.alfresco.service.namespace.QName field)

      getSort.

      Parameters:
      field - a QName object.
      Returns:
      a Map object.
    • escapeQName

      protected String escapeQName(org.alfresco.service.namespace.QName qName)

      escapeQName.

      Parameters:
      qName - a QName object.
      Returns:
      a String object.
    • encodePath

      public static String encodePath(String path)

      encodePath.

      Parameters:
      path - a String object.
      Returns:
      a String object.