01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/content/tags/sakai_2-4-1/content-api/api/src/java/org/sakaiproject/content/api/ContentResourceEdit.java $
03: * $Id: ContentResourceEdit.java 21414 2007-02-13 17:35:00Z jimeng@umich.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2003, 2004, 2005, 2006, 2007 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.content.api;
21:
22: import java.io.InputStream;
23: import java.io.OutputStream;
24:
25: import org.sakaiproject.content.api.GroupAwareEdit;
26: import org.sakaiproject.entity.api.Edit;
27: import org.sakaiproject.time.api.Time;
28:
29: /**
30: * <p>ContentResource is an editable ContentResource.</p>
31: */
32: public interface ContentResourceEdit extends ContentResource, Edit,
33: GroupAwareEdit {
34: /**
35: * Set the content byte length.
36: * @param length The content byte length.
37: */
38: public void setContentLength(int length);
39:
40: /**
41: * Set the resource MIME type.
42: * @param type The resource MIME type.
43: */
44: public void setContentType(String type);
45:
46: /**
47: * Set the resource content.
48: * @param content An array containing the bytes of the resource's content.
49: */
50: public void setContent(byte[] content);
51:
52: /**
53: * Set the "type" of this ContentEntity as determined by the ResourceType registration
54: * that was used to create it.
55: * @param string
56: */
57: public void setResourceType(String string);
58:
59: /**
60: * @param stream
61: */
62: public void setContent(InputStream stream);
63:
64: } // ContentResourceEdit
|