01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/metaobj/tags/sakai_2-4-1/metaobj-api/api/src/java/org/sakaiproject/metaobj/shared/mgt/WritableObjectHome.java $
03: * $Id: WritableObjectHome.java 9469 2006-05-15 14:52:05Z chmaurer@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2004, 2005, 2006 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.metaobj.shared.mgt;
21:
22: import java.io.InputStream;
23:
24: import org.sakaiproject.metaobj.shared.model.Artifact;
25: import org.sakaiproject.metaobj.shared.model.PersistenceException;
26: import org.sakaiproject.metaobj.shared.model.Type;
27:
28: /**
29: * Created by IntelliJ IDEA.
30: * User: John Ellis
31: * Date: Apr 8, 2004
32: * Time: 5:16:54 PM
33: * To change this template use File | Settings | File Templates.
34: */
35: public interface WritableObjectHome extends ReadableObjectHome {
36:
37: /**
38: * Update or add the supplied object to the store.
39: *
40: * @param object The object to be updated or added
41: * @return The object with info such as Id in the
42: * case of add. In the case of update, the object
43: * will be returned as supplied.
44: */
45: public Artifact store(Artifact object) throws PersistenceException;
46:
47: public void remove(Artifact object) throws PersistenceException;
48:
49: public Artifact store(String displayName, String contentType,
50: Type type, InputStream in) throws PersistenceException;
51:
52: public Artifact update(Artifact object, InputStream in)
53: throws PersistenceException;
54: }
|