com.wewebu.ow.server.ecmimpl.opencmis.objectclass
Class OwCMISRelationshipClassImpl

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.opencmis.objectclass.OwCMISAbstractObjectClass
      extended by com.wewebu.ow.server.ecmimpl.opencmis.objectclass.OwCMISAbstractSessionObjectClass<OwCMISNativeSession>
          extended by com.wewebu.ow.server.ecmimpl.opencmis.objectclass.OwCMISAbstractNativeObjectClass<org.apache.chemistry.opencmis.client.api.RelationshipType,org.apache.chemistry.opencmis.client.api.TransientRelationship>
              extended by com.wewebu.ow.server.ecmimpl.opencmis.objectclass.OwCMISRelationshipClassImpl
All Implemented Interfaces:
com.wewebu.ow.server.ecm.OwObjectClass, OwCMISNativeObjectClass<org.apache.chemistry.opencmis.client.api.RelationshipType,org.apache.chemistry.opencmis.client.api.TransientRelationship>, OwCMISObjectClass, OwCMISRelationshipClass, OwCMISSessionObjectClass<OwCMISNativeSession>

public class OwCMISRelationshipClassImpl
extends OwCMISAbstractNativeObjectClass<org.apache.chemistry.opencmis.client.api.RelationshipType,org.apache.chemistry.opencmis.client.api.TransientRelationship>
implements OwCMISRelationshipClass

OwCMISRelationshipClassImpl.

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


Field Summary
 
Fields inherited from interface com.wewebu.ow.server.ecmimpl.opencmis.objectclass.OwCMISObjectClass
MIME_TYPE_PREFIX_OW_POLICY, MIME_TYPE_PREFIX_OW_RELATIONSHIP
 
Fields inherited from interface com.wewebu.ow.server.ecm.OwObjectClass
OPERATION_TYPE_CHECKIN, OPERATION_TYPE_CHECKOUT, OPERATION_TYPE_CREATE_NEW_OBJECT, OPERATION_TYPE_SET_PROPERTIES, OPERATION_TYPE_UNDEF
 
Constructor Summary
OwCMISRelationshipClassImpl(org.apache.chemistry.opencmis.client.api.RelationshipType relationshipType, OwCMISNativeSession session)
           
 
Method Summary
protected  org.apache.chemistry.opencmis.client.api.ObjectId createNativeObject(Map<String,Object> properties, org.apache.chemistry.opencmis.client.api.ObjectId sourceObject, 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
 OwCMISRelationship from(org.apache.chemistry.opencmis.client.api.TransientRelationship object, Map<String,?> conversionParameters)
          Creates an OwCMISObject for the given native TransientCmisObject
protected  org.apache.chemistry.opencmis.client.api.ObjectId getNativeParentFromObject(com.wewebu.ow.server.ecm.OwObject parent_p)
          Get the native parent/representation from provide OwObject.
 boolean hasVersionSeries()
           
protected  void initializeAsHierarchyRoot()
           
 
Methods inherited from class com.wewebu.ow.server.ecmimpl.opencmis.objectclass.OwCMISAbstractNativeObjectClass
canCreateNewObject, convertToNativeProperties, createContext, createNewObject, createSkeletonObject, findPropertyClass, getChilds, getClassName, getDescription, getDisplayName, getMimetype, getNativeObject, getNativePropertyClass, getNativePropertyClasses, getParent, getPropertyClasses, getQueryName, getQueryResultConverter, getType, isQueryable, newTransientObject
 
Methods inherited from class com.wewebu.ow.server.ecmimpl.opencmis.objectclass.OwCMISAbstractSessionObjectClass
getChildNames, getPreferredPropertyType, getSession, hasChilds
 
Methods inherited from class com.wewebu.ow.server.ecmimpl.opencmis.objectclass.OwCMISAbstractObjectClass
addVirtualPropertyClass, getModes, getNamePropertyName, getParameterValue, getPropertyClass, getPropertyClassNames, getQueryablePropertyClasses, getVirtualPropertyClass, getVirtualPropertyClasses, isAssignableFrom, isContentRequired, isHidden, subclassedBy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.wewebu.ow.server.ecmimpl.opencmis.objectclass.OwCMISNativeObjectClass
convertToNativeProperties, getNativeObject, getNativePropertyClass, getNativePropertyClasses, getParent, getQueryResultConverter, getSession, newTransientObject
 
Methods inherited from interface com.wewebu.ow.server.ecmimpl.opencmis.objectclass.OwCMISObjectClass
canCreateNewObject, createNewObject, createSkeletonObject, findPropertyClass, getChildNames, getChilds, getMimetype, getNamePropertyName, getPreferredPropertyType, getPropertyClass, getPropertyClasses, getPropertyClassNames, getQueryablePropertyClasses, getQueryName, getVirtualPropertyClass, getVirtualPropertyClasses, isAssignableFrom, isContentRequired, isQueryable, subclassedBy
 
Methods inherited from interface com.wewebu.ow.server.ecm.OwObjectClass
getClassName, getDescription, getDisplayName, getModes, getType, hasChilds, isHidden
 

Constructor Detail

OwCMISRelationshipClassImpl

public OwCMISRelationshipClassImpl(org.apache.chemistry.opencmis.client.api.RelationshipType relationshipType,
                                   OwCMISNativeSession session)
Method Detail

initializeAsHierarchyRoot

protected void initializeAsHierarchyRoot()
Overrides:
initializeAsHierarchyRoot in class OwCMISAbstractObjectClass

hasVersionSeries

public boolean hasVersionSeries()
                         throws Exception
Specified by:
hasVersionSeries in interface com.wewebu.ow.server.ecm.OwObjectClass
Overrides:
hasVersionSeries in class OwCMISAbstractObjectClass
Throws:
Exception

from

public OwCMISRelationship from(org.apache.chemistry.opencmis.client.api.TransientRelationship object,
                               Map<String,?> conversionParameters)
                        throws com.wewebu.ow.server.exceptions.OwException
Description copied from interface: OwCMISNativeObjectClass
Creates an OwCMISObject for the given native TransientCmisObject

Specified by:
from in interface OwCMISNativeObjectClass<org.apache.chemistry.opencmis.client.api.RelationshipType,org.apache.chemistry.opencmis.client.api.TransientRelationship>
Specified by:
from in interface OwCMISRelationshipClass
conversionParameters - a Map of conversion parameters values (see OwCMISConversionParameters for a list of common parameter names)
Returns:
the OwCMISObject corresponding to the given TransientCmisObject
Throws:
com.wewebu.ow.server.exceptions.OwException

createNativeObject

protected org.apache.chemistry.opencmis.client.api.ObjectId createNativeObject(Map<String,Object> properties,
                                                                               org.apache.chemistry.opencmis.client.api.ObjectId sourceObject,
                                                                               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)
Description copied from class: OwCMISAbstractNativeObjectClass
To be implemented for specific object type, providing already native value representations

Specified by:
createNativeObject in class OwCMISAbstractNativeObjectClass<org.apache.chemistry.opencmis.client.api.RelationshipType,org.apache.chemistry.opencmis.client.api.TransientRelationship>
Parameters:
properties - Map of property names (String) to corresponding values (extend Object)
sourceObject - ObjectId native parent folder id representation
contentStream - 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)
Returns:
native Id of currently created object

getNativeParentFromObject

protected org.apache.chemistry.opencmis.client.api.ObjectId getNativeParentFromObject(com.wewebu.ow.server.ecm.OwObject parent_p)
                                                                               throws com.wewebu.ow.server.exceptions.OwException
Description copied from class: OwCMISAbstractNativeObjectClass
Get the native parent/representation from provide OwObject. Can throw exception if parent is required, in case parent is required or restricted in any case and does not match an OwInvalidOperationException should be thrown.

Overrides:
getNativeParentFromObject in class OwCMISAbstractNativeObjectClass<org.apache.chemistry.opencmis.client.api.RelationshipType,org.apache.chemistry.opencmis.client.api.TransientRelationship>
Parameters:
parent_p - OwObject (can be null)
Returns:
ObjectId or derived type, can return null in some cases like unfiled object creation
Throws:
com.wewebu.ow.server.exceptions.OwException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.