public class OwCMISQueryResultConverterImpl<O extends org.apache.chemistry.opencmis.client.api.TransientCmisObject> extends Object implements OwCMISQueryResultConverter<O>
OwCMISQueryResultConverterImpl.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwCMISQueryResultConverterImpl(org.apache.chemistry.opencmis.client.api.Session session) |
Modifier and Type | Method and Description |
---|---|
protected void |
addQueryResultProperties(org.apache.chemistry.opencmis.commons.impl.dataobjects.ObjectDataImpl objectData,
com.wewebu.ow.csqlc.ast.OwQueryStatement statement,
org.apache.chemistry.opencmis.client.api.QueryResult queryResult) |
protected org.apache.chemistry.opencmis.client.api.ObjectType |
getMainObjectClass(com.wewebu.ow.csqlc.ast.OwQueryStatement statement,
org.apache.chemistry.opencmis.client.api.QueryResult queryResult) |
protected String |
getQueryResultObjectTypeId(com.wewebu.ow.csqlc.ast.OwQueryStatement statement,
org.apache.chemistry.opencmis.client.api.QueryResult queryResult) |
org.apache.chemistry.opencmis.client.api.Session |
getSession() |
O |
toCmisObject(org.apache.chemistry.opencmis.client.api.QueryResult queryResult,
com.wewebu.ow.csqlc.ast.OwQueryStatement statement,
org.apache.chemistry.opencmis.client.api.OperationContext operationContext)
Converts a given CMIS query result object to an OPEN CMIS transient object
based on query result properties , SQL statement that produced the result and
the context in which it was ran.
|
public OwCMISQueryResultConverterImpl(org.apache.chemistry.opencmis.client.api.Session session)
public org.apache.chemistry.opencmis.client.api.Session getSession()
protected String getQueryResultObjectTypeId(com.wewebu.ow.csqlc.ast.OwQueryStatement statement, org.apache.chemistry.opencmis.client.api.QueryResult queryResult)
protected org.apache.chemistry.opencmis.client.api.ObjectType getMainObjectClass(com.wewebu.ow.csqlc.ast.OwQueryStatement statement, org.apache.chemistry.opencmis.client.api.QueryResult queryResult) throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
protected void addQueryResultProperties(org.apache.chemistry.opencmis.commons.impl.dataobjects.ObjectDataImpl objectData, com.wewebu.ow.csqlc.ast.OwQueryStatement statement, org.apache.chemistry.opencmis.client.api.QueryResult queryResult) throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public O toCmisObject(org.apache.chemistry.opencmis.client.api.QueryResult queryResult, com.wewebu.ow.csqlc.ast.OwQueryStatement statement, org.apache.chemistry.opencmis.client.api.OperationContext operationContext) throws com.wewebu.ow.server.exceptions.OwException
OwCMISQueryResultConverter
toCmisObject
in interface OwCMISQueryResultConverter<O extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
queryResult
- a QueryResult
statement
- OwQueryStatement
that produced the QueryResult
operationContext
- the operation context in which the statement was ranTransientCmisObject
corresponding to the given QueryResult
of the given CMIS OwQueryStatement
in the given OperationContext
com.wewebu.ow.server.exceptions.OwException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.