org.apache.chemistry.opencmis.client.runtime
Class RelationshipImpl

java.lang.Object
  extended by org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject
      extended by org.apache.chemistry.opencmis.client.runtime.RelationshipImpl
All Implemented Interfaces:
Serializable, CmisObject, CmisObjectProperties, ObjectId, Relationship, RelationshipProperties

public class RelationshipImpl
extends AbstractCmisObject
implements Relationship

See Also:
Serialized Form

Constructor Summary
RelationshipImpl(SessionImpl session, ObjectType objectType, ObjectData objectData, OperationContext context)
          Constructor.
 
Method Summary
protected  TransientCmisObject createTransientCmisObject()
           
 CmisObject getSource()
          Gets the source object.
 CmisObject getSource(OperationContext context)
          Gets the source object using the given OperationContext.
 ObjectId getSourceId()
          Returns the source id of this CMIS relationship (CMIS property cmis:sourceId).
 CmisObject getTarget()
          Gets the target object.
 CmisObject getTarget(OperationContext context)
          Gets the target object using the given OperationContext.
 ObjectId getTargetId()
          Returns the target id of this CMIS relationship (CMIS property cmis:targetId).
 TransientRelationship getTransientRelationship()
           
 
Methods inherited from class org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject
addAcl, applyAcl, applyPolicy, delete, getAcl, getAcl, getAdapter, getAllowableActions, getBaseType, getBaseTypeId, getBinding, getChangeToken, getCreatedBy, getCreationContext, getCreationDate, getExtensions, getId, getLastModificationDate, getLastModifiedBy, getName, getObjectFactory, getObjectId, getObjectType, getPolicies, getProperties, getProperty, getPropertyQueryName, getPropertyValue, getRefreshTimestamp, getRelationships, getRenditions, getRepositoryId, getSession, getTransientObject, getType, initialize, readLock, readUnlock, refresh, refreshIfOld, removeAcl, removePolicy, updateProperties, updateProperties, writeLock, writeUnlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.chemistry.opencmis.client.api.CmisObject
addAcl, applyAcl, applyPolicy, delete, getAcl, getAdapter, getAllowableActions, getExtensions, getPolicies, getRefreshTimestamp, getRelationships, getRenditions, getTransientObject, refresh, refreshIfOld, removeAcl, removePolicy, updateProperties, updateProperties
 
Methods inherited from interface org.apache.chemistry.opencmis.client.api.ObjectId
getId
 
Methods inherited from interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
getBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getLastModificationDate, getLastModifiedBy, getName, getProperties, getProperty, getPropertyValue, getType
 

Constructor Detail

RelationshipImpl

public RelationshipImpl(SessionImpl session,
                        ObjectType objectType,
                        ObjectData objectData,
                        OperationContext context)
Constructor.

Method Detail

createTransientCmisObject

protected TransientCmisObject createTransientCmisObject()
Overrides:
createTransientCmisObject in class AbstractCmisObject

getTransientRelationship

public TransientRelationship getTransientRelationship()
Specified by:
getTransientRelationship in interface Relationship

getSource

public CmisObject getSource()
Description copied from interface: Relationship
Gets the source object. If the source object id is invalid, null will be returned.

Specified by:
getSource in interface Relationship

getSource

public CmisObject getSource(OperationContext context)
Description copied from interface: Relationship
Gets the source object using the given OperationContext. If the source object id is invalid, null will be returned.

Specified by:
getSource in interface Relationship

getSourceId

public ObjectId getSourceId()
Description copied from interface: RelationshipProperties
Returns the source id of this CMIS relationship (CMIS property cmis:sourceId).

Specified by:
getSourceId in interface RelationshipProperties

getTarget

public CmisObject getTarget()
Description copied from interface: Relationship
Gets the target object. If the target object id is invalid, null will be returned.

Specified by:
getTarget in interface Relationship

getTarget

public CmisObject getTarget(OperationContext context)
Description copied from interface: Relationship
Gets the target object using the given OperationContext. If the target object id is invalid, null will be returned.

Specified by:
getTarget in interface Relationship

getTargetId

public ObjectId getTargetId()
Description copied from interface: RelationshipProperties
Returns the target id of this CMIS relationship (CMIS property cmis:targetId).

Specified by:
getTargetId in interface RelationshipProperties


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.