01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/metaobj/tags/sakai_2-4-1/metaobj-api/api/src/java/org/sakaiproject/metaobj/shared/mgt/home/StructuredArtifactHomeInterface.java $
03: * $Id: StructuredArtifactHomeInterface.java 20850 2007-02-01 00:05:58Z john.ellis@rsmart.com $
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.home;
21:
22: import java.util.Date;
23:
24: import org.sakaiproject.metaobj.shared.mgt.CloneableObjectHome;
25: import org.sakaiproject.metaobj.shared.mgt.PresentableObjectHome;
26: import org.sakaiproject.metaobj.shared.mgt.WritableObjectHome;
27: import org.sakaiproject.metaobj.shared.model.Type;
28: import org.sakaiproject.metaobj.shared.model.StructuredArtifact;
29: import org.sakaiproject.metaobj.utils.xml.SchemaNode;
30: import org.sakaiproject.content.api.ContentResource;
31:
32: /**
33: * marker for structured artifact home
34: */
35: public interface StructuredArtifactHomeInterface extends
36: WritableObjectHome, CloneableObjectHome, PresentableObjectHome {
37:
38: public String getSiteId();
39:
40: public SchemaNode getRootSchema();
41:
42: public Type getType();
43:
44: public String getInstruction();
45:
46: public Date getModified();
47:
48: public String getRootNode();
49:
50: public SchemaNode getSchema();
51:
52: public StructuredArtifact load(ContentResource resource);
53:
54: public String getTypeId();
55:
56: public byte[] getBytes(StructuredArtifact artifact);
57:
58: }
|