org.springframework.extensions.surf.resource.support
Class CMISResource

java.lang.Object
  extended by org.springframework.extensions.surf.resource.AbstractResource
      extended by org.springframework.extensions.surf.resource.support.CMISResource
All Implemented Interfaces:
Serializable, Resource

public class CMISResource
extends AbstractResource

CMIS resource Content = heavy asset Metadata = CMIS information Object ids are of the following format: cmis:///node/workspace/SpacesStore/790ccbc3-a3ee-45ba-b169-0926ad77c2c8 cmis:///cmis cmis:///types cmis:///queries

Author:
muzquiano
See Also:
Serialized Form

Field Summary
static org.dom4j.Namespace NAMESPACE_ALF
           
static org.dom4j.Namespace NAMESPACE_APP
           
static org.dom4j.Namespace NAMESPACE_CMIS
           
static org.dom4j.Namespace NAMESPACE_CMISRA
           
static org.dom4j.Namespace NAMESPACE_OPENSEARCH
           
 
Fields inherited from class org.springframework.extensions.surf.resource.AbstractResource
bytes, endpointId, name, objectId, protocolId
 
Constructor Summary
CMISResource(String protocolId, String endpointId, String objectId)
           
 
Method Summary
 ResourceContent getContent()
          Gets the content for this resource.
 String getContentURL()
          Gets the content url.
 ResourceContent getMetadata()
          Gets the metadata for this resource.
 String getMetadataURL()
          Gets the metadata url.
 String getObjectTypeId()
          Gets the object type id.
 boolean isContainer()
          Checks if the resource is a container.
 
Methods inherited from class org.springframework.extensions.surf.resource.AbstractResource
getEndpointId, getName, getObjectId, getProtocolId, getResourceId, setEndpointId, setName, setObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE_APP

public static org.dom4j.Namespace NAMESPACE_APP

NAMESPACE_CMISRA

public static org.dom4j.Namespace NAMESPACE_CMISRA

NAMESPACE_CMIS

public static org.dom4j.Namespace NAMESPACE_CMIS

NAMESPACE_ALF

public static org.dom4j.Namespace NAMESPACE_ALF

NAMESPACE_OPENSEARCH

public static org.dom4j.Namespace NAMESPACE_OPENSEARCH
Constructor Detail

CMISResource

public CMISResource(String protocolId,
                    String endpointId,
                    String objectId)
Method Detail

getMetadata

public ResourceContent getMetadata()
                            throws IOException
Description copied from interface: Resource
Gets the metadata for this resource. If there is no metadata for this resource, null will be returned.

Returns:
the metadata or null
Throws:
IOException

getMetadataURL

public String getMetadataURL()
Description copied from interface: Resource
Gets the metadata url. If there is no metadata url for this resource, null will be returned.

Returns:
the metadata url or null.

getContent

public ResourceContent getContent()
                           throws IOException
Description copied from interface: Resource
Gets the content for this resource. If there is no content for this resource, null will be returned.

Returns:
the content or null.
Throws:
IOException

getContentURL

public String getContentURL()
Description copied from interface: Resource
Gets the content url. If there is no content url for this resource, null will be returned.

Returns:
the content url

getObjectTypeId

public String getObjectTypeId()
Description copied from interface: Resource
Gets the object type id.

Returns:
the object type id

isContainer

public boolean isContainer()
Description copied from interface: Resource
Checks if the resource is a container.

Returns:
true, if is container


Copyright © 2009 SpringSource, Inc. All Rights Reserved.