org.sakaiproject.component.app.presentation
Class PrLegacyManager

java.lang.Object
  extended byorg.sakaiproject.component.app.presentation.PrLegacyManager
All Implemented Interfaces:
PresentationManager

public class PrLegacyManager
extends Object
implements PresentationManager

Author:
Mark Norton The PresentationManager allows new presentations to be created and added. It provides a means to list all known presentations via a PresentationIterator.

Field Summary
protected  org.osid.id.IdManager idManager
           
static Logger logger
           
static String PROP_PRESENT_CURRENT_SLIDE
           
 
Constructor Summary
PrLegacyManager()
           
 
Method Summary
 boolean advanceShow(Presentation pres)
          Advance a slide show on a presentation
 boolean allowUpdate(Presentation pres)
          Determine if the user is allowed to modify this presentation
 boolean backShow(Presentation pres)
          Reverse a slide show on a presentation
 void clearPresentationCache()
          Clear out any cached presentations
 Slide getCurrentSlide(Presentation pres)
          Get current slide for a show
 int getCurrentSlideNumber(Presentation pres)
          Get current slide number for a show
 String getHomeReference()
          Get a Sakai reference to the presentation area - returns null on any type of failure.
 org.osid.id.IdManager getIdManager()
          Dependency injection of IdManager.
 String getModificationDate(Presentation pres)
          Gets the modification date of the presentation - always goes through to the Content service so as to get the live values.
 Time getModificationTime(Presentation pres)
          Gets the modification time of the presentation - always goes through to the Content service so as to get the live values.
 List getPresentations()
          Return an interator which lists all known presentations.
 String getReference(Presentation pres)
          Get a Sakai reference to a particular presentation - returns null on any type of failure.
 String getTitle(Presentation pres)
           
 boolean isShowing(Presentation pres)
          Returns true if an active show is going on for the presentation
 boolean rewindShow(Presentation pres)
          Rewind a slide show on a presentation
 void setIdManager(org.osid.id.IdManager im)
           
 boolean startShow(Presentation pres)
          Start a slide show on a presentation
 boolean stopShow(Presentation pres)
          Stop a slide show on a presentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_PRESENT_CURRENT_SLIDE

public static final String PROP_PRESENT_CURRENT_SLIDE
See Also:
Constant Field Values

idManager

protected org.osid.id.IdManager idManager

logger

public static Logger logger
Constructor Detail

PrLegacyManager

public PrLegacyManager()
Method Detail

getIdManager

public org.osid.id.IdManager getIdManager()
Dependency injection of IdManager.

Specified by:
getIdManager in interface PresentationManager

setIdManager

public void setIdManager(org.osid.id.IdManager im)
Specified by:
setIdManager in interface PresentationManager

clearPresentationCache

public void clearPresentationCache()
Clear out any cached presentations

Specified by:
clearPresentationCache in interface PresentationManager

getHomeReference

public String getHomeReference()
Description copied from interface: PresentationManager
Get a Sakai reference to the presentation area - returns null on any type of failure.

Specified by:
getHomeReference in interface PresentationManager

getReference

public String getReference(Presentation pres)
Description copied from interface: PresentationManager
Get a Sakai reference to a particular presentation - returns null on any type of failure.

Specified by:
getReference in interface PresentationManager

allowUpdate

public boolean allowUpdate(Presentation pres)
Determine if the user is allowed to modify this presentation

Specified by:
allowUpdate in interface PresentationManager

getTitle

public String getTitle(Presentation pres)

getModificationTime

public Time getModificationTime(Presentation pres)
Gets the modification time of the presentation - always goes through to the Content service so as to get the live values.

Parameters:
pres -
Returns:

getModificationDate

public String getModificationDate(Presentation pres)
Gets the modification date of the presentation - always goes through to the Content service so as to get the live values.

Specified by:
getModificationDate in interface PresentationManager
Parameters:
pres -
Returns:

startShow

public boolean startShow(Presentation pres)
Start a slide show on a presentation

Specified by:
startShow in interface PresentationManager

stopShow

public boolean stopShow(Presentation pres)
Stop a slide show on a presentation

Specified by:
stopShow in interface PresentationManager

rewindShow

public boolean rewindShow(Presentation pres)
Description copied from interface: PresentationManager
Rewind a slide show on a presentation

Specified by:
rewindShow in interface PresentationManager

advanceShow

public boolean advanceShow(Presentation pres)
Advance a slide show on a presentation

Specified by:
advanceShow in interface PresentationManager

backShow

public boolean backShow(Presentation pres)
Reverse a slide show on a presentation

Specified by:
backShow in interface PresentationManager

isShowing

public boolean isShowing(Presentation pres)
Returns true if an active show is going on for the presentation

Specified by:
isShowing in interface PresentationManager

getCurrentSlide

public Slide getCurrentSlide(Presentation pres)
Get current slide for a show

Specified by:
getCurrentSlide in interface PresentationManager

getCurrentSlideNumber

public int getCurrentSlideNumber(Presentation pres)
Description copied from interface: PresentationManager
Get current slide number for a show

Specified by:
getCurrentSlideNumber in interface PresentationManager

getPresentations

public List getPresentations()
                      throws IdUnusedException,
                             TypeException,
                             PermissionException
Return an interator which lists all known presentations.

Specified by:
getPresentations in interface PresentationManager
Throws:
IdUnusedException
TypeException
PermissionException