org.springframework.extensions.surf.resource.support
Class AlfrescoResource
java.lang.Object
org.springframework.extensions.surf.resource.AbstractResource
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlfrescoResource
public AlfrescoResource(String protocolId,
String endpointId,
String objectId)
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.