mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10725 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -41,9 +41,10 @@ import javax.xml.namespace.QName;
|
||||
*/
|
||||
public interface CMISConstants
|
||||
{
|
||||
public static final String CMIS_V10_NS = "http://www.cmis.org/CMIS/1.0";
|
||||
public static final String CMIS_200805_NS = "http://www.cmis.org/2008/05";
|
||||
|
||||
public static final QName OBJECT = new QName(CMIS_V10_NS, "object");
|
||||
public static final QName BASETYPE = new QName(CMIS_V10_NS, "baseType");
|
||||
public static final QName PROPERTIES = new QName(CMIS_200805_NS, "properties");
|
||||
public static final QName OBJECTID = new QName(CMIS_200805_NS, "objectId");
|
||||
public static final QName BASETYPE = new QName(CMIS_200805_NS, "baseType");
|
||||
|
||||
}
|
||||
|
@@ -45,8 +45,8 @@ public class CMISExtensionFactory extends AbstractExtensionFactory
|
||||
|
||||
public CMISExtensionFactory()
|
||||
{
|
||||
super(CMIS_V10_NS);
|
||||
addImpl(OBJECT, CMISObject.class);
|
||||
super(CMIS_200805_NS);
|
||||
addImpl(PROPERTIES, CMISProperties.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -41,16 +41,22 @@ import org.apache.abdera.model.ElementWrapper;
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
public class CMISObject extends ElementWrapper
|
||||
public class CMISProperties extends ElementWrapper
|
||||
{
|
||||
public CMISObject(Element internal)
|
||||
public CMISProperties(Element internal)
|
||||
{
|
||||
super(internal);
|
||||
}
|
||||
|
||||
public CMISObject(Factory factory)
|
||||
public CMISProperties(Factory factory)
|
||||
{
|
||||
super(factory, CMISConstants.OBJECT);
|
||||
super(factory, CMISConstants.PROPERTIES);
|
||||
}
|
||||
|
||||
public String getObjectId()
|
||||
{
|
||||
Element child = getInternal().getFirstChild(CMISConstants.OBJECTID);
|
||||
return (child == null) ? null : child.getText();
|
||||
}
|
||||
|
||||
public String getBaseType()
|
Reference in New Issue
Block a user