org.sakaiproject.metaobj.shared.mgt.impl
Class FileArtifactFinder

java.lang.Object
  extended byorg.sakaiproject.metaobj.shared.mgt.impl.FileArtifactFinder
All Implemented Interfaces:
ArtifactFinder
Direct Known Subclasses:
StructuredArtifactFinder

public class FileArtifactFinder
extends Object
implements ArtifactFinder

Created by IntelliJ IDEA. User: John Ellis Date: Aug 17, 2005 Time: 2:08:27 PM To change this template use File | Settings | File Templates.


Constructor Summary
FileArtifactFinder()
           
 
Method Summary
protected  ContentResourceArtifact createArtifact(ContentResource resource)
           
 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)
           
 AgentManager getAgentManager()
           
 ContentHostingService getContentHostingService()
           
 ReadableObjectHome getContentResourceHome()
           
 IdManager getIdManager()
           
 boolean getLoadArtifacts()
           
 Artifact load(Id artifactId)
           
 void setAgentManager(AgentManager agentManager)
           
 void setContentHostingService(ContentHostingService contentHostingService)
           
 void setContentResourceHome(ReadableObjectHome contentResourceHome)
           
 void setIdManager(IdManager idManager)
           
 void setLoadArtifacts(boolean loadArtifacts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileArtifactFinder

public FileArtifactFinder()
Method Detail

findByOwnerAndType

public Collection findByOwnerAndType(Id owner,
                                     String type)
Description copied from interface: ArtifactFinder
search for a list of artifacts in the system owner by owner and matching the given type

Specified by:
findByOwnerAndType in interface ArtifactFinder
Parameters:
owner -
type -
Returns:

findByOwnerAndType

public Collection findByOwnerAndType(Id owner,
                                     String type,
                                     MimeType mimeType)
Specified by:
findByOwnerAndType in interface ArtifactFinder

createArtifact

protected ContentResourceArtifact createArtifact(ContentResource resource)

findByOwner

public Collection findByOwner(Id owner)
Specified by:
findByOwner in interface ArtifactFinder

findByWorksiteAndType

public Collection findByWorksiteAndType(Id worksiteId,
                                        String type)
Specified by:
findByWorksiteAndType in interface ArtifactFinder

findByWorksite

public Collection findByWorksite(Id worksiteId)
Specified by:
findByWorksite in interface ArtifactFinder

load

public Artifact load(Id artifactId)
Specified by:
load in interface ArtifactFinder

findByType

public Collection findByType(String type)
Specified by:
findByType in interface ArtifactFinder

getLoadArtifacts

public boolean getLoadArtifacts()
Specified by:
getLoadArtifacts in interface ArtifactFinder
Returns:
true if calls to find should actually load the artifacts

setLoadArtifacts

public void setLoadArtifacts(boolean loadArtifacts)
Specified by:
setLoadArtifacts in interface ArtifactFinder

getContentHostingService

public ContentHostingService getContentHostingService()

setContentHostingService

public void setContentHostingService(ContentHostingService contentHostingService)

getAgentManager

public AgentManager getAgentManager()

setAgentManager

public void setAgentManager(AgentManager agentManager)

getIdManager

public IdManager getIdManager()

setIdManager

public void setIdManager(IdManager idManager)

getContentResourceHome

public ReadableObjectHome getContentResourceHome()

setContentResourceHome

public void setContentResourceHome(ReadableObjectHome contentResourceHome)