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,19 +20,19 @@ 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.alfresco.service.cmr.repository.NodeRef;
|
||||
|
||||
/**
|
||||
* Property accessor for fixed value mapping (eg to null, true, etc)
|
||||
*
|
||||
* @author andyh
|
||||
* @author florian.mueller
|
||||
*/
|
||||
public class FixedValueProperty extends AbstractProperty
|
||||
{
|
||||
private Serializable value;
|
||||
|
||||
|
||||
/**
|
||||
* Construct
|
||||
*
|
||||
@@ -40,26 +40,14 @@ public class FixedValueProperty extends AbstractProperty
|
||||
* @param propertyName
|
||||
* @param value
|
||||
*/
|
||||
public FixedValueProperty(ServiceRegistry serviceRegistry, String propertyName, Serializable value)
|
||||
public FixedValueProperty(ServiceRegistry serviceRegistry, CMISConnector connector, String propertyName,
|
||||
Serializable value)
|
||||
{
|
||||
super(serviceRegistry, propertyName);
|
||||
super(serviceRegistry, connector, propertyName);
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.alfresco.cmis.property.PropertyAccessor#getValue(org.alfresco.service.cmr.repository.NodeRef)
|
||||
*/
|
||||
public Serializable getValue(NodeRef nodeRef)
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
/*
|
||||
* (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 value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user