mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
OpenCMIS server refactoring
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29544 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -20,14 +20,15 @@ package org.alfresco.opencmis.mapping;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.alfresco.opencmis.CMISConnector;
|
||||
import org.alfresco.opencmis.dictionary.CMISNodeInfo;
|
||||
import org.alfresco.service.ServiceRegistry;
|
||||
import org.alfresco.service.cmr.repository.AssociationRef;
|
||||
import org.apache.chemistry.opencmis.commons.PropertyIds;
|
||||
|
||||
/**
|
||||
* Accessor for the Target Id (relationship)
|
||||
*
|
||||
* @author davidc
|
||||
* @author florian.mueller
|
||||
*/
|
||||
public class TargetIdProperty extends AbstractProperty
|
||||
{
|
||||
@@ -36,20 +37,13 @@ public class TargetIdProperty extends AbstractProperty
|
||||
*
|
||||
* @param serviceRegistry
|
||||
*/
|
||||
public TargetIdProperty(ServiceRegistry serviceRegistry)
|
||||
public TargetIdProperty(ServiceRegistry serviceRegistry, CMISConnector connector)
|
||||
{
|
||||
super(serviceRegistry, PropertyIds.TARGET_ID);
|
||||
super(serviceRegistry, connector, PropertyIds.TARGET_ID);
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* org.alfresco.cmis.mapping.AbstractProperty#getValue(org.alfresco.service
|
||||
* .cmr.repository.AssociationRef)
|
||||
*/
|
||||
public Serializable getValue(AssociationRef assocRef)
|
||||
public Serializable getValueInternal(CMISNodeInfo nodeInfo)
|
||||
{
|
||||
return assocRef.getTargetRef().toString();
|
||||
return createNodeInfo(nodeInfo.getAssociationRef().getTargetRef()).getObjectId();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user