Package fr.becpg.repo.search.impl
Class AbstractBeCPGQueryBuilder
java.lang.Object
fr.becpg.repo.search.impl.AbstractBeCPGQueryBuilder
- Direct Known Subclasses:
BeCPGQueryBuilder
Abstract AbstractBeCPGQueryBuilder class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprivate static final StringConstantQUERY_COND=" %s %s"private static final StringConstantQUERY_COND_ASPECT="ASPECT:\"%s\""private static final StringConstantQUERY_COND_EXACT_PATH="PATH:\"%s\""private static final StringConstantQUERY_COND_EXACT_TYPE="EXACTTYPE:\"%s\""private static final StringConstantQUERY_COND_ID="ID:\"%s\""private static final StringConstantQUERY_COND_MEMBERS="PATH:\"/app:company_home/%s/member"{trunked}private static final StringConstantQUERY_COND_PARENT="PARENT:\"%s\""private static final StringConstantQUERY_COND_PATH="PATH:\"/app:company_home/%s/*\invalid input: '&quo'"{trunked}private static final StringConstantQUERY_COND_PROP_CONTAINS_VALUE="%s:%s"private static final StringConstantQUERY_COND_PROP_EQUAL_VALUE="%s:\"%s\""private static final StringConstantQUERY_COND_PROP_ISNULL_OR_ISUNSET_VALUE="(ISNULL:\"%s\" OR ISUNSET:\invalid input: '&q'"{trunked}private static final StringConstantQUERY_COND_PROP_ISNULL_VALUE="ISNULL:\"%s\""private static final StringConstantQUERY_COND_SITE="SITE:\"%s\""private static final StringConstantQUERY_COND_TYPE="TYPE:\"%s\""private static final StringConstantQUERY_SUB_PATH="PATH:\"/app:company_home/%s//*\invalid input: '&qu'"{trunked} -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringboost.static StringencodePath(String path) encodePath.protected StringendGroup()endGroup.protected StringequalsQuery(String condType) equalsQuery.protected StringescapeQName(org.alfresco.service.namespace.QName qName) escapeQName.protected StringgetCond.protected StringgetCondAspect(org.alfresco.service.namespace.QName aspect) getCondAspect.protected StringgetCondContainsValue(org.alfresco.service.namespace.QName property, String value) getCondContainsValue.protected StringgetCondEqualID(org.alfresco.service.cmr.repository.NodeRef nodeRef) getCondEqualID.protected StringgetCondEqualValue(org.alfresco.service.namespace.QName property, String value) getCondEqualValue.protected StringgetCondExactPath(String path) getCondExactPath.protected StringgetCondExactType(org.alfresco.service.namespace.QName type) getCondExactType.protected StringgetCondIsNullOrIsUnsetValue(org.alfresco.service.namespace.QName property) getCondIsNullOrIsUnsetValue.protected StringgetCondIsNullValue(org.alfresco.service.namespace.QName property) getCondIsNullValue.protected StringgetCondMembers(String path) getCondMembers.protected StringgetCondParent(org.alfresco.service.cmr.repository.NodeRef nodeRef) getCondParent.protected StringgetCondPath(String path) getCondPath.protected StringgetCondSite(String siteId) getCondSite.protected StringgetCondSubPath(String path) getCondSubPath.protected StringgetCondType(org.alfresco.service.namespace.QName type) getCondType.protected StringgetGroup.protected StringgetMandatoryOrGroup(String op1, String op2) getMandatoryOrGroup.getSort(org.alfresco.service.namespace.QName field) getSort.getSort(org.alfresco.service.namespace.QName field, boolean asc) getSort.protected StringgetSortProp(org.alfresco.service.namespace.QName field) getSortProp.protected Stringmandatory.protected Stringoptional.protected Stringor.protected Stringprohibided(String condType) prohibided.protected StringstartGroup.
-
Field Details
-
QUERY_COND_PROP_EQUAL_VALUE
ConstantQUERY_COND_PROP_EQUAL_VALUE="%s:\"%s\""- See Also:
-
QUERY_COND_PROP_CONTAINS_VALUE
ConstantQUERY_COND_PROP_CONTAINS_VALUE="%s:%s"- See Also:
-
QUERY_COND_PROP_ISNULL_VALUE
ConstantQUERY_COND_PROP_ISNULL_VALUE="ISNULL:\"%s\""- See Also:
-
QUERY_COND_PROP_ISNULL_OR_ISUNSET_VALUE
ConstantQUERY_COND_PROP_ISNULL_OR_ISUNSET_VALUE="(ISNULL:\"%s\" OR ISUNSET:\invalid input: '&q'"{trunked}- See Also:
-
QUERY_COND_PATH
ConstantQUERY_COND_PATH="PATH:\"/app:company_home/%s/*\invalid input: '&quo'"{trunked}- See Also:
-
QUERY_SUB_PATH
ConstantQUERY_SUB_PATH="PATH:\"/app:company_home/%s//*\invalid input: '&qu'"{trunked}- See Also:
-
QUERY_COND_EXACT_PATH
ConstantQUERY_COND_EXACT_PATH="PATH:\"%s\""- See Also:
-
QUERY_COND_MEMBERS
ConstantQUERY_COND_MEMBERS="PATH:\"/app:company_home/%s/member"{trunked}- See Also:
-
QUERY_COND_ID
ConstantQUERY_COND_ID="ID:\"%s\""- See Also:
-
QUERY_COND_PARENT
ConstantQUERY_COND_PARENT="PARENT:\"%s\""- See Also:
-
QUERY_COND_TYPE
ConstantQUERY_COND_TYPE="TYPE:\"%s\""- See Also:
-
QUERY_COND_SITE
ConstantQUERY_COND_SITE="SITE:\"%s\""- See Also:
-
QUERY_COND_EXACT_TYPE
ConstantQUERY_COND_EXACT_TYPE="EXACTTYPE:\"%s\""- See Also:
-
QUERY_COND_ASPECT
ConstantQUERY_COND_ASPECT="ASPECT:\"%s\""- See Also:
-
QUERY_COND
ConstantQUERY_COND=" %s %s"- See Also:
-
language
-
-
Constructor Details
-
AbstractBeCPGQueryBuilder
public AbstractBeCPGQueryBuilder()
-
-
Method Details
-
getCondEqualValue
getCondEqualValue.
-
getCondEqualID
getCondEqualID.
- Parameters:
nodeRef- aNodeRefobject.- Returns:
- a
Stringobject.
-
getCondContainsValue
getCondContainsValue.
-
getCondIsNullValue
getCondIsNullValue.
- Parameters:
property- aQNameobject.- Returns:
- a
Stringobject.
-
getCondIsNullOrIsUnsetValue
getCondIsNullOrIsUnsetValue.
- Parameters:
property- aQNameobject.- Returns:
- a
Stringobject.
-
getCondExactPath
getCondExactPath.
-
getCondPath
getCondPath.
-
getCondSubPath
getCondSubPath.
-
getCondMembers
getCondMembers.
-
getCondParent
getCondParent.
- Parameters:
nodeRef- aNodeRefobject.- Returns:
- a
Stringobject.
-
getCondType
getCondType.
- Parameters:
type- aQNameobject.- Returns:
- a
Stringobject.
-
getCondSite
getCondSite.
-
getCondExactType
getCondExactType.
- Parameters:
type- aQNameobject.- Returns:
- a
Stringobject.
-
getCondAspect
getCondAspect.
- Parameters:
aspect- aQNameobject.- Returns:
- a
Stringobject.
-
getCond
protected String getCond(String cond, org.alfresco.service.cmr.search.SearchParameters.Operator operator) getCond.
-
mandatory
mandatory.
-
equalsQuery
equalsQuery.
-
prohibided
prohibided.
-
or
or.
-
optional
optional.
-
boost
boost.
-
startGroup
startGroup.
- Returns:
- a
Stringobject.
-
endGroup
endGroup.
- Returns:
- a
Stringobject.
-
getGroup
getGroup.
-
getMandatoryOrGroup
getMandatoryOrGroup.
-
getSortProp
getSortProp.
- Parameters:
field- aQNameobject.- Returns:
- a
Stringobject.
-
getSort
getSort.
- Parameters:
field- aQNameobject.asc- a boolean.- Returns:
- a
Mapobject.
-
getSort
getSort.
- Parameters:
field- aQNameobject.- Returns:
- a
Mapobject.
-
escapeQName
escapeQName.
- Parameters:
qName- aQNameobject.- Returns:
- a
Stringobject.
-
encodePath
encodePath.
-