org.sakaiproject.service.legacy.content
Interface ContentResourceEdit

All Superinterfaces:
ContentResource, Edit, Entity
All Known Implementing Classes:
BaseContentService.BaseResourceEdit

public interface ContentResourceEdit
extends ContentResource, Edit

ContentResource is an editable ContentResource.

Version:
$Revision: 2371 $
Author:
University of Michigan, CHEF Software Development Team
See Also:
org.chefproject.service.generic.GenericContentHostingService, org.chefproject.core.Entity

Field Summary
 
Fields inherited from interface org.sakaiproject.service.legacy.entity.Entity
SEPARATOR
 
Method Summary
 void setContent(byte[] content)
          Set the resource content.
 void setContentLength(int length)
          Set the content byte length.
 void setContentType(String type)
          Set the resource MIME type.
 
Methods inherited from interface org.sakaiproject.service.legacy.content.ContentResource
getContent, getContentLength, getContentType, streamContent
 
Methods inherited from interface org.sakaiproject.service.legacy.entity.Entity
getId, getProperties, getReference, getReference, getUrl, getUrl, toXml
 
Methods inherited from interface org.sakaiproject.service.legacy.entity.Edit
getPropertiesEdit, isActiveEdit
 

Method Detail

setContentLength

public void setContentLength(int length)
Set the content byte length.

Parameters:
length - The content byte length.

setContentType

public void setContentType(String type)
Set the resource MIME type.

Parameters:
type - The resource MIME type.

setContent

public void setContent(byte[] content)
Set the resource content.

Parameters:
content - An array containing the bytes of the resource's content.