org.sakaiproject.metaobj.shared
Interface ArtifactFinder

All Known Implementing Classes:
FileArtifactFinder

public interface ArtifactFinder


Method Summary
 Collection findByOwner(Id owner)
           
 Collection findByOwnerAndType(Id owner, String type)
          search for a list of artifacts in the system owner by owner and matching the given type
 Collection findByOwnerAndType(Id owner, String type, MimeType mimeType)
           
 Collection findByType(String type)
           
 Collection findByWorksite(Id worksiteId)
           
 Collection findByWorksiteAndType(Id worksiteId, String type)
           
 boolean getLoadArtifacts()
           
 Artifact load(Id artifactId)
           
 void setLoadArtifacts(boolean loadArtifacts)
           
 

Method Detail

findByOwnerAndType

public Collection findByOwnerAndType(Id owner,
                                     String type)
search for a list of artifacts in the system owner by owner and matching the given type

Parameters:
owner -
type -
Returns:

findByOwnerAndType

public Collection findByOwnerAndType(Id owner,
                                     String type,
                                     MimeType mimeType)

findByOwner

public Collection findByOwner(Id owner)

findByWorksiteAndType

public Collection findByWorksiteAndType(Id worksiteId,
                                        String type)

findByWorksite

public Collection findByWorksite(Id worksiteId)

load

public Artifact load(Id artifactId)

findByType

public Collection findByType(String type)

getLoadArtifacts

public boolean getLoadArtifacts()
Returns:
true if calls to find should actually load the artifacts

setLoadArtifacts

public void setLoadArtifacts(boolean loadArtifacts)