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

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

public class AlfrescoResource
extends AbstractResource

Alfresco resource Content = heavy asset Metadata = Alfresco information Object ids are of the following format: alfresco:/// alfresco:///workspace/SpacesStore/39627322-c892-49fe-bcbb-a5c72bdc2a9b where is // Example: alfresco:///workspace/SpacesStore/790ccbc3-a3ee-45ba-b169-0926ad77c2c8

Author:
muzquiano
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.extensions.surf.resource.AbstractResource
bytes, endpointId, name, objectId, protocolId
 
Constructor Summary
AlfrescoResource(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.
protected  String getNodeRefId()
           
 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
 

Constructor Detail

AlfrescoResource

public AlfrescoResource(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

getNodeRefId

protected String getNodeRefId()


Copyright © 2009 SpringSource, Inc. All Rights Reserved.