public class OwCMISDocumentClassImpl extends OwCMISAbstractNativeObjectClass<org.apache.chemistry.opencmis.client.api.DocumentType,org.apache.chemistry.opencmis.client.api.TransientDocument> implements OwCMISDocumentClass<org.apache.chemistry.opencmis.client.api.TransientDocument>
OwObjectClass to represent Document objects. Explicit handling and extension of Versioning functionality.
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
MIME_TYPE_PREFIX_OW_POLICY, MIME_TYPE_PREFIX_OW_RELATIONSHIP
Constructor and Description |
---|
OwCMISDocumentClassImpl(org.apache.chemistry.opencmis.client.api.DocumentType documentType,
OwCMISNativeSession session) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.chemistry.opencmis.client.api.ObjectId |
createNativeObject(Map<String,Object> properties,
org.apache.chemistry.opencmis.client.api.ObjectId nativeParentFolder,
org.apache.chemistry.opencmis.commons.data.ContentStream contentStream,
boolean majorVersion,
boolean checkedOut,
List<org.apache.chemistry.opencmis.client.api.Policy> policies,
List<org.apache.chemistry.opencmis.commons.data.Ace> addAce,
List<org.apache.chemistry.opencmis.commons.data.Ace> removeAce)
To be implemented for specific object type, providing already native value representations
|
OwCMISDocument |
from(org.apache.chemistry.opencmis.client.api.TransientDocument object_p,
Map<String,?> conversionParameters)
Creates an
OwCMISObject for the given native TransientCmisObject |
boolean |
hasVersionSeries() |
protected void |
initializeAsHierarchyRoot() |
canCreateNewObject, convertToNativeProperties, createContext, createNewObject, createSkeletonObject, findPropertyClass, getChilds, getClassName, getDescription, getDisplayName, getMimetype, getNativeObject, getNativeParentFromObject, getNativePropertyClass, getNativePropertyClasses, getParent, getPropertyClasses, getQueryName, getQueryResultConverter, getType, isQueryable, newTransientObject
getChildNames, getPreferredPropertyType, getSession, hasChilds
addVirtualPropertyClass, getCopyClassName, getModes, getNamePropertyName, getParameterValue, getPropertyClass, getPropertyClassNames, getQueryablePropertyClasses, getVirtualPropertyClass, getVirtualPropertyClasses, isAssignableFrom, isContentRequired, isHidden, subclassedBy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertToNativeProperties, getNativeObject, getNativePropertyClass, getNativePropertyClasses, getParent, getQueryResultConverter, getSession, newTransientObject
canCreateNewObject, createNewObject, createSkeletonObject, findPropertyClass, getChildNames, getChilds, getCopyClassName, getMimetype, getNamePropertyName, getPreferredPropertyType, getPropertyClass, getPropertyClasses, getPropertyClassNames, getQueryablePropertyClasses, getQueryName, getVirtualPropertyClass, getVirtualPropertyClasses, isAssignableFrom, isContentRequired, isQueryable, subclassedBy
public OwCMISDocumentClassImpl(org.apache.chemistry.opencmis.client.api.DocumentType documentType, OwCMISNativeSession session)
protected void initializeAsHierarchyRoot()
initializeAsHierarchyRoot
in class OwCMISAbstractObjectClass
public boolean hasVersionSeries() throws Exception
hasVersionSeries
in interface com.wewebu.ow.server.ecm.OwObjectClass
hasVersionSeries
in class OwCMISAbstractObjectClass
Exception
public OwCMISDocument from(org.apache.chemistry.opencmis.client.api.TransientDocument object_p, Map<String,?> conversionParameters) throws com.wewebu.ow.server.exceptions.OwException
OwCMISNativeObjectClass
OwCMISObject
for the given native TransientCmisObject
from
in interface OwCMISDocumentClass<org.apache.chemistry.opencmis.client.api.TransientDocument>
from
in interface OwCMISNativeObjectClass<org.apache.chemistry.opencmis.client.api.DocumentType,org.apache.chemistry.opencmis.client.api.TransientDocument>
conversionParameters
- a Map of conversion parameters values (see OwCMISConversionParameters
for
a list of common parameter names)OwCMISObject
corresponding to the given TransientCmisObject
com.wewebu.ow.server.exceptions.OwException
protected org.apache.chemistry.opencmis.client.api.ObjectId createNativeObject(Map<String,Object> properties, org.apache.chemistry.opencmis.client.api.ObjectId nativeParentFolder, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean majorVersion, boolean checkedOut, List<org.apache.chemistry.opencmis.client.api.Policy> policies, List<org.apache.chemistry.opencmis.commons.data.Ace> addAce, List<org.apache.chemistry.opencmis.commons.data.Ace> removeAce)
OwCMISAbstractNativeObjectClass
createNativeObject
in class OwCMISAbstractNativeObjectClass<org.apache.chemistry.opencmis.client.api.DocumentType,org.apache.chemistry.opencmis.client.api.TransientDocument>
properties
- Map of property names (String) to corresponding values (extend Object)nativeParentFolder
- ObjectId native parent folder id representationcontentStream
- ContentStream (can be null)majorVersion
- boolean version state (ignored if checkdedOut = true or non versionable type is created)checkedOut
- boolean create checked-out (ignored for non versionable types)policies
- List of org.apache.chemistry.opencmis.client.api.Policy objects (can be null)addAce
- List of ACE's which should be added (can be null)removeAce
- List of ACE's which should be removed (can be null)Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.