com.wewebu.ow.server.ecmimpl.opencmis
Interface OwCMISNativeSession

All Superinterfaces:
OwCMISSession
All Known Implementing Classes:
OwCMISRepositorySession

public interface OwCMISNativeSession
extends OwCMISSession

Abstraction to OpenCMIS-Session object, contains additionally simplified helper methods.

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


Method Summary
<O extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
OwCMISNativeObjectClass<?,O>
classOf(O object)
           
 org.apache.chemistry.opencmis.client.api.OperationContext createOperationContext(Collection<String> filterPropertyNames, int maxItemsPerPage, OwCMISNativeObjectClass<?,?>... classContext)
           
<O extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
OwCMISNativeObject<O>
from(O transientCmisObject, Map<String,?> conversionParameters)
           
<T extends org.apache.chemistry.opencmis.client.api.ObjectType>
OwCMISNativeObjectClass<T,?>
from(T type)
          Performs ObjectType to OwCMISNativeObjectClass conversion.
 OwCMISNativeObject<org.apache.chemistry.opencmis.client.api.TransientCmisObject> getNativeObject(String objectNativeId, Collection<String> propertyNames, Map<String,?> conversionParameters)
           
 OwCMISNativeObjectClass<?,?> getNativeObjectClass(String className)
           
 OwCMISNativePropertyClassFactory getNativePropertyClassFactory()
           
 org.apache.chemistry.opencmis.client.api.Session getOpenCMISSession()
           
 
Methods inherited from interface com.wewebu.ow.server.ecmimpl.opencmis.OwCMISSession
createObject, createObjectSkeleton, getDMSIDDecoder, getLocale, getNetwork, getObject, getObjectByPath, getObjectClass, getObjectClasses, getParameterValue, getResource, getResourceInfo, getRootFolder, getTimeZone, query
 

Method Detail

getOpenCMISSession

org.apache.chemistry.opencmis.client.api.Session getOpenCMISSession()
Returns:
the corresponding Open CMIS Session

createOperationContext

org.apache.chemistry.opencmis.client.api.OperationContext createOperationContext(Collection<String> filterPropertyNames,
                                                                                 int maxItemsPerPage,
                                                                                 OwCMISNativeObjectClass<?,?>... classContext)
Parameters:
filterPropertyNames -
maxItemsPerPage -
classContext -
Returns:
an Open CMIS OperationContext with the filter set to the give properties and max items to the given value. Property IDs resolution is done in the given AWD class context.

getNativePropertyClassFactory

OwCMISNativePropertyClassFactory getNativePropertyClassFactory()

from

<T extends org.apache.chemistry.opencmis.client.api.ObjectType> OwCMISNativeObjectClass<T,?> from(T type)
                                                                                              throws com.wewebu.ow.server.exceptions.OwException
Performs ObjectType to OwCMISNativeObjectClass conversion.

Parameters:
type -
Returns:
the OwCMISNativeObjectClass correspondent of the given type.
Throws:
com.wewebu.ow.server.exceptions.OwException

classOf

<O extends org.apache.chemistry.opencmis.client.api.TransientCmisObject> OwCMISNativeObjectClass<?,O> classOf(O object)
                                                                                                          throws com.wewebu.ow.server.exceptions.OwException
Parameters:
object -
Returns:
the OwCMISNativeObjectClass of the given TransientCmisObject
Throws:
com.wewebu.ow.server.exceptions.OwException

from

<O extends org.apache.chemistry.opencmis.client.api.TransientCmisObject> OwCMISNativeObject<O> from(O transientCmisObject,
                                                                                                    Map<String,?> conversionParameters)
                                                                                                throws com.wewebu.ow.server.exceptions.OwException
Parameters:
transientCmisObject -
conversionParameters -
Returns:
the OwCMISNativeObject o
Throws:
com.wewebu.ow.server.exceptions.OwException

getNativeObjectClass

OwCMISNativeObjectClass<?,?> getNativeObjectClass(String className)
                                                  throws com.wewebu.ow.server.exceptions.OwException
Parameters:
className -
Returns:
the native object class with the given class name.
Throws:
com.wewebu.ow.server.exceptions.OwException

getNativeObject

OwCMISNativeObject<org.apache.chemistry.opencmis.client.api.TransientCmisObject> getNativeObject(String objectNativeId,
                                                                                                 Collection<String> propertyNames,
                                                                                                 Map<String,?> conversionParameters)
                                                                                                 throws com.wewebu.ow.server.exceptions.OwException
Parameters:
objectNativeId - the object ID of the document
propertyNames - a list of properties to be loaded for this object. If null then the set of properties that are loaded depends on the particular content repository implementation.
Returns:
a native object loaded from the content repository
Throws:
com.wewebu.ow.server.exceptions.OwException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.