com.wewebu.ow.server.ecmimpl.opencmis.objectclass
Class OwCMISQueryResultConverterImpl<O extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.opencmis.objectclass.OwCMISQueryResultConverterImpl<O>
All Implemented Interfaces:
OwCMISQueryResultConverter<O>
Direct Known Subclasses:
OwCMISAlfrescoQueryResultConverterImpl

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 Summary
OwCMISQueryResultConverterImpl(org.apache.chemistry.opencmis.client.api.Session session)
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwCMISQueryResultConverterImpl

public OwCMISQueryResultConverterImpl(org.apache.chemistry.opencmis.client.api.Session session)
Method Detail

getSession

public org.apache.chemistry.opencmis.client.api.Session getSession()

getQueryResultObjectTypeId

protected String getQueryResultObjectTypeId(com.wewebu.ow.csqlc.ast.OwQueryStatement statement,
                                            org.apache.chemistry.opencmis.client.api.QueryResult queryResult)

getMainObjectClass

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
Throws:
com.wewebu.ow.server.exceptions.OwException

addQueryResultProperties

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
Throws:
com.wewebu.ow.server.exceptions.OwException

toCmisObject

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
Description copied from interface: OwCMISQueryResultConverter
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.

Specified by:
toCmisObject in interface OwCMISQueryResultConverter<O extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
Parameters:
queryResult - a QueryResult
statement - OwQueryStatement that produced the QueryResult
operationContext - the operation context in which the statement was ran
Returns:
a TransientCmisObject corresponding to the given QueryResult of the given CMIS OwQueryStatement in the given OperationContext
Throws:
com.wewebu.ow.server.exceptions.OwException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.