Class CmisRepositoryConnectorUtils
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnectorUtils
-
public class CmisRepositoryConnectorUtils extends java.lang.Object- Author:
- Piergiorgio Lucidi
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSLASH
-
Constructor Summary
Constructors Constructor Description CmisRepositoryConnectorUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddValuesOfProperties(org.apache.chemistry.opencmis.client.api.Document document, org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd, java.lang.String cmisQuery)static voidaddValuesOfProperty(java.util.List<org.apache.chemistry.opencmis.client.api.Property<?>> props, boolean isWildcardQuery, java.util.Map<java.lang.String,java.lang.String> cmisQueryColumns, org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd)static booleanexistsInSelectClause(java.lang.String cmisQuery, java.lang.String propertyId)Utility method to understand if a property must be indexed or notstatic java.lang.StringgetCmisQueryWithObjectId(java.lang.String cmisQuery)Utility method to consider the objectId whenever it is not present in the select clausestatic java.lang.StringgetDocumentURL(org.apache.chemistry.opencmis.client.api.Document document, org.apache.chemistry.opencmis.client.api.Session session)static java.util.Map<java.lang.String,java.lang.String>getSelectMap(java.lang.String cmisQuery)static booleanisWildcardQuery(java.lang.String selectClause)
-
-
-
Field Detail
-
SLASH
public static final java.lang.String SLASH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDocumentURL
public static final java.lang.String getDocumentURL(org.apache.chemistry.opencmis.client.api.Document document, org.apache.chemistry.opencmis.client.api.Session session) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
getCmisQueryWithObjectId
public static java.lang.String getCmisQueryWithObjectId(java.lang.String cmisQuery)
Utility method to consider the objectId whenever it is not present in the select clause- Parameters:
cmisQuery-- Returns:
- the cmisQuery with the cmis:objectId property added in the select clause
-
existsInSelectClause
public static boolean existsInSelectClause(java.lang.String cmisQuery, java.lang.String propertyId)Utility method to understand if a property must be indexed or not- Parameters:
cmisQuery-propertyId-- Returns:
- TRUE if the property is included in the select clause of the query, otherwise it will return FALSE
-
addValuesOfProperties
public static void addValuesOfProperties(org.apache.chemistry.opencmis.client.api.Document document, org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd, java.lang.String cmisQuery)- Parameters:
rd- : object that contains the properties to pass to connectorcmisQuery- : cmis query
-
addValuesOfProperty
public static void addValuesOfProperty(java.util.List<org.apache.chemistry.opencmis.client.api.Property<?>> props, boolean isWildcardQuery, java.util.Map<java.lang.String,java.lang.String> cmisQueryColumns, org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd)- Parameters:
props- : list properties of a documentisWildcardQuery- : if the query select is of type '*'cmisQueryColumns- : selectors queryrd- : object that contains the properties to pass to connector
-
getSelectMap
public static java.util.Map<java.lang.String,java.lang.String> getSelectMap(java.lang.String cmisQuery)
-
isWildcardQuery
public static boolean isWildcardQuery(java.lang.String selectClause)
-
-