org.sakaiproject.tool.gradebook.facades.sakai2impl
Class GradebookEntityProducer

java.lang.Object
  extended by org.sakaiproject.tool.gradebook.facades.sakai2impl.BaseEntityProducer
      extended by org.sakaiproject.tool.gradebook.facades.sakai2impl.GradebookEntityProducer
All Implemented Interfaces:
org.sakaiproject.entity.api.ContextObserver, org.sakaiproject.entity.api.EntityProducer, org.sakaiproject.entity.api.EntityTransferrer, org.sakaiproject.importer.api.HandlesImportable

public class GradebookEntityProducer
extends BaseEntityProducer
implements org.sakaiproject.entity.api.ContextObserver, org.sakaiproject.entity.api.EntityTransferrer, org.sakaiproject.importer.api.HandlesImportable

Implements the Sakai EntityProducer approach to integration of tool-specific storage with site management.


Field Summary
static String GRADEBOOK_DEFINITION_TYPE
           
 
Fields inherited from class org.sakaiproject.tool.gradebook.facades.sakai2impl.BaseEntityProducer
entityManager, label, referenceRoot, serviceName
 
Constructor Summary
GradebookEntityProducer()
           
 
Method Summary
 boolean canHandleType(String typeName)
           
 void contextCreated(String context, boolean toolPlacement)
           
 void contextDeleted(String context, boolean toolPlacement)
           
 void contextUpdated(String context, boolean toolPlacement)
           
 List<org.sakaiproject.importer.api.Importable> getAllImportables(String contextId)
           
 void handle(org.sakaiproject.importer.api.Importable importable, String siteId)
           
 String[] myToolIds()
           
 void setGradebookFrameworkService(GradebookFrameworkService gradebookFrameworkService)
           
 void setGradebookService(GradebookService gradebookService)
           
 void setToolIds(List toolIds)
           
 void transferCopyEntities(String fromContext, String toContext, List ids)
           
 void transferCopyEntities(String fromContext, String toContext, List ids, boolean cleanup)
           
 void transferCopyEntitiesWithSettings(String fromContext, String toContext, List ids)
           
 
Methods inherited from class org.sakaiproject.tool.gradebook.facades.sakai2impl.BaseEntityProducer
archive, getEntity, getEntityAuthzGroups, getEntityDescription, getEntityResourceProperties, getEntityUrl, getHttpAccess, getLabel, getReferenceRoot, getServiceName, init, merge, parseEntityReference, setEntityManager, setLabel, setReferenceRoot, setServiceName, willArchiveMerge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GRADEBOOK_DEFINITION_TYPE

public static final String GRADEBOOK_DEFINITION_TYPE
See Also:
Constant Field Values
Constructor Detail

GradebookEntityProducer

public GradebookEntityProducer()
Method Detail

setToolIds

public void setToolIds(List toolIds)

myToolIds

public String[] myToolIds()
Specified by:
myToolIds in interface org.sakaiproject.entity.api.ContextObserver
Specified by:
myToolIds in interface org.sakaiproject.entity.api.EntityTransferrer

contextCreated

public void contextCreated(String context,
                           boolean toolPlacement)
Specified by:
contextCreated in interface org.sakaiproject.entity.api.ContextObserver

contextUpdated

public void contextUpdated(String context,
                           boolean toolPlacement)
Specified by:
contextUpdated in interface org.sakaiproject.entity.api.ContextObserver

contextDeleted

public void contextDeleted(String context,
                           boolean toolPlacement)
Specified by:
contextDeleted in interface org.sakaiproject.entity.api.ContextObserver

transferCopyEntities

public void transferCopyEntities(String fromContext,
                                 String toContext,
                                 List ids)
Specified by:
transferCopyEntities in interface org.sakaiproject.entity.api.EntityTransferrer

transferCopyEntitiesWithSettings

public void transferCopyEntitiesWithSettings(String fromContext,
                                             String toContext,
                                             List ids)

setGradebookFrameworkService

public void setGradebookFrameworkService(GradebookFrameworkService gradebookFrameworkService)

setGradebookService

public void setGradebookService(GradebookService gradebookService)

canHandleType

public boolean canHandleType(String typeName)
Specified by:
canHandleType in interface org.sakaiproject.importer.api.HandlesImportable

handle

public void handle(org.sakaiproject.importer.api.Importable importable,
                   String siteId)
Specified by:
handle in interface org.sakaiproject.importer.api.HandlesImportable

getAllImportables

public List<org.sakaiproject.importer.api.Importable> getAllImportables(String contextId)

transferCopyEntities

public void transferCopyEntities(String fromContext,
                                 String toContext,
                                 List ids,
                                 boolean cleanup)
Specified by:
transferCopyEntities in interface org.sakaiproject.entity.api.EntityTransferrer


Copyright © 2011 Sakai Project. All Rights Reserved.