01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/metaobj/tags/sakai_2-4-1/metaobj-api/api/src/java/org/sakaiproject/metaobj/shared/ArtifactFinder.java $
03: * $Id: ArtifactFinder.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;
21:
22: import java.util.Collection;
23:
24: import org.sakaiproject.metaobj.shared.model.Artifact;
25: import org.sakaiproject.metaobj.shared.model.Id;
26: import org.sakaiproject.metaobj.shared.model.MimeType;
27:
28: /*
29: * Common search
30: *
31: * $Header: /opt/CVS/osp2.x/homesComponent/src/java/org/theospi/metaobj/repository/ArtifactFinder.java,v 1.1 2005/06/29 18:36:41 chmaurer Exp $
32: * $Revision: 9469 $
33: * $Date: 2006-05-15 10:52:05 -0400 (Mon, 15 May 2006) $
34: */
35:
36: public interface ArtifactFinder {
37:
38: /**
39: * search for a list of artifacts in the system owner by owner and matching the given type
40: *
41: * @param owner
42: * @param type
43: * @return
44: */
45: public Collection findByOwnerAndType(Id owner, String type);
46:
47: public Collection findByOwnerAndType(Id owner, String type,
48: MimeType mimeType);
49:
50: public Collection findByOwner(Id owner);
51:
52: public Collection findByWorksiteAndType(Id worksiteId, String type);
53:
54: public Collection findByWorksite(Id worksiteId);
55:
56: public Artifact load(Id artifactId);
57:
58: public Collection findByType(String type);
59:
60: /**
61: * @return true if calls to find should actually load the artifacts
62: */
63: public boolean getLoadArtifacts();
64:
65: public void setLoadArtifacts(boolean loadArtifacts);
66:
67: }
|