de.bps.olat.modules.cl
Class Checklist

java.lang.Object
  extended by org.olat.core.commons.persistence.PersistentObject
      extended by de.bps.olat.modules.cl.Checklist
All Implemented Interfaces:
java.io.Serializable, CreateInfo, ModifiedInfo, Persistable

public class Checklist
extends PersistentObject
implements ModifiedInfo, java.io.Serializable

Description:
Checklist object, stored in "o_checklist" via Hibernate

Initial Date: 23.07.2009

Author:
bja
See Also:
Serialized Form

Constructor Summary
Checklist()
           
Checklist(java.lang.String title, java.lang.String description, java.util.List<Checkpoint> checkpoints)
           
 
Method Summary
 void addCheckpoint(int index, Checkpoint checkpoint)
          Add checkpoint to this checklist
 java.util.List<Checkpoint> getCheckpoints()
           
 java.lang.String getDescription()
           
 java.util.Date getLastModified()
           
 java.lang.String getTitle()
           
 java.util.List<Checkpoint> getVisibleCheckpoints()
          Filter out unvisible checkpoints.
 boolean hasCheckpoints()
           
 void removeCheckpoint(Checkpoint checkpoint)
          Remove checkpoint from this checklist
 void setCheckpoints(java.util.List<Checkpoint> checkpoints)
           
 void setDescription(java.lang.String description)
           
 void setLastModified(java.util.Date date)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class org.olat.core.commons.persistence.PersistentObject
equalsByPersistableKey, getCreationDate, getKey, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Checklist

public Checklist()

Checklist

public Checklist(java.lang.String title,
                 java.lang.String description,
                 java.util.List<Checkpoint> checkpoints)
Method Detail

getTitle

public java.lang.String getTitle()
Returns:
Returns the title.

getDescription

public java.lang.String getDescription()
Returns:
Returns the description.

getCheckpoints

public java.util.List<Checkpoint> getCheckpoints()
Returns:
Returns the checkpoints.

setTitle

public void setTitle(java.lang.String title)
Parameters:
title - The title to set.

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - The description to set.

setCheckpoints

public void setCheckpoints(java.util.List<Checkpoint> checkpoints)
Parameters:
checkpoints - The checkpoints to set.

getLastModified

public java.util.Date getLastModified()
Specified by:
getLastModified in interface ModifiedInfo
Returns:
See Also:
ModifiedInfo.getLastModified()

setLastModified

public void setLastModified(java.util.Date date)
Specified by:
setLastModified in interface ModifiedInfo
See Also:
ModifiedInfo.setLastModified(java.util.Date)

addCheckpoint

public void addCheckpoint(int index,
                          Checkpoint checkpoint)
Add checkpoint to this checklist

Parameters:
index -
checkpoint -

removeCheckpoint

public void removeCheckpoint(Checkpoint checkpoint)
Remove checkpoint from this checklist

Parameters:
checkpoint -

hasCheckpoints

public boolean hasCheckpoints()
Returns:
true or false

getVisibleCheckpoints

public java.util.List<Checkpoint> getVisibleCheckpoints()
Filter out unvisible checkpoints.

Returns:
List with all visible checkpoints