org.sakaiproject.contentreview.model
Class ContentReviewItem

java.lang.Object
  extended by org.sakaiproject.contentreview.model.ContentReviewItem

public class ContentReviewItem
extends Object

This is a POJO (data storage object)

Author:
David Jacka

Field Summary
static String NOT_SUBMITTED
           
static Long NOT_SUBMITTED_CODE
           
static String REPORT_ERROR_NO_RETRY
           
static Long REPORT_ERROR_NO_RETRY_CODE
           
static String REPORT_ERROR_RETRY
           
static Long REPORT_ERROR_RETRY_CODE
           
static String SUBMISSION_ERROR_NO_RETRY
           
static Long SUBMISSION_ERROR_NO_RETRY_CODE
           
static String SUBMISSION_ERROR_RETRY
           
static Long SUBMISSION_ERROR_RETRY_CODE
           
static Long SUBMISSION_ERROR_RETRY_EXCEEDED
           
static String SUBMISSION_ERROR_USER_DETAILS
           
static Long SUBMISSION_ERROR_USER_DETAILS_CODE
           
static String SUBMITTED_AWAITING_REPORT
           
static Long SUBMITTED_AWAITING_REPORT_CODE
           
static String SUBMITTED_REPORT_AVAILABLE
           
static Long SUBMITTED_REPORT_AVAILABLE_CODE
           
 
Constructor Summary
ContentReviewItem()
          Default constructor
ContentReviewItem(String contentId)
          Minimal constructor
ContentReviewItem(String userId, String siteId, String taskId, String contentId, Date dateQueued, Long status)
          Constructor for a newly queued item
ContentReviewItem(String userId, String siteId, String taskId, String contentId, String externalId, Date dateQueued, Date dateSubmitted, Date dateReportReceived, long status, Integer reviewScore)
          Full constructor
 
Method Summary
 String getContentId()
           
 Date getDateQueued()
          Getters and Setters
 Date getDateReportReceived()
           
 Date getDateSubmitted()
           
 Integer getErrorCode()
          Get the errorCode returned by the Service
 String getExternalId()
           
 String getIconUrl()
           
 Long getId()
           
 String getLastError()
           
 Date getNextRetryTime()
           
 Long getRetryCount()
           
 Integer getReviewScore()
           
 String getSiteId()
           
 Long getStatus()
           
 String getTaskId()
           
 String getUserId()
           
 void setContentId(String contentId)
           
 void setDateQueued(Date dateQueued)
           
 void setDateReportReceived(Date dateReportReceived)
           
 void setDateSubmitted(Date dateSubmitted)
           
 void setErrorCode(Integer errorCode)
          Set the error code for this submission
 void setExternalId(String externalId)
           
 void setIconURL(String u)
           
 void setId(Long id)
           
 void setLastError(String le)
           
 void setNextRetryTime(Date nextRetryTime)
           
 void setRetryCount(Long l)
           
 void setReviewScore(Integer reviewScore)
           
 void setSiteId(String siteId)
           
 void setStatus(Long status)
           
 void setTaskId(String taskId)
           
 void setUserId(String userId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_SUBMITTED

public static final String NOT_SUBMITTED
See Also:
Constant Field Values

NOT_SUBMITTED_CODE

public static final Long NOT_SUBMITTED_CODE

SUBMITTED_AWAITING_REPORT

public static final String SUBMITTED_AWAITING_REPORT
See Also:
Constant Field Values

SUBMITTED_AWAITING_REPORT_CODE

public static final Long SUBMITTED_AWAITING_REPORT_CODE

SUBMITTED_REPORT_AVAILABLE

public static final String SUBMITTED_REPORT_AVAILABLE
See Also:
Constant Field Values

SUBMITTED_REPORT_AVAILABLE_CODE

public static final Long SUBMITTED_REPORT_AVAILABLE_CODE

SUBMISSION_ERROR_RETRY

public static final String SUBMISSION_ERROR_RETRY
See Also:
Constant Field Values

SUBMISSION_ERROR_RETRY_CODE

public static final Long SUBMISSION_ERROR_RETRY_CODE

SUBMISSION_ERROR_NO_RETRY

public static final String SUBMISSION_ERROR_NO_RETRY
See Also:
Constant Field Values

SUBMISSION_ERROR_NO_RETRY_CODE

public static final Long SUBMISSION_ERROR_NO_RETRY_CODE

SUBMISSION_ERROR_USER_DETAILS

public static final String SUBMISSION_ERROR_USER_DETAILS
See Also:
Constant Field Values

SUBMISSION_ERROR_USER_DETAILS_CODE

public static final Long SUBMISSION_ERROR_USER_DETAILS_CODE

REPORT_ERROR_RETRY

public static final String REPORT_ERROR_RETRY
See Also:
Constant Field Values

REPORT_ERROR_RETRY_CODE

public static final Long REPORT_ERROR_RETRY_CODE

REPORT_ERROR_NO_RETRY

public static final String REPORT_ERROR_NO_RETRY
See Also:
Constant Field Values

REPORT_ERROR_NO_RETRY_CODE

public static final Long REPORT_ERROR_NO_RETRY_CODE

SUBMISSION_ERROR_RETRY_EXCEEDED

public static final Long SUBMISSION_ERROR_RETRY_EXCEEDED
Constructor Detail

ContentReviewItem

public ContentReviewItem()
Default constructor


ContentReviewItem

public ContentReviewItem(String contentId)
Minimal constructor


ContentReviewItem

public ContentReviewItem(String userId,
                         String siteId,
                         String taskId,
                         String contentId,
                         Date dateQueued,
                         Long status)
Constructor for a newly queued item


ContentReviewItem

public ContentReviewItem(String userId,
                         String siteId,
                         String taskId,
                         String contentId,
                         String externalId,
                         Date dateQueued,
                         Date dateSubmitted,
                         Date dateReportReceived,
                         long status,
                         Integer reviewScore)
Full constructor

Method Detail

getDateQueued

public Date getDateQueued()
Getters and Setters


setDateQueued

public void setDateQueued(Date dateQueued)

getDateReportReceived

public Date getDateReportReceived()

setDateReportReceived

public void setDateReportReceived(Date dateReportReceived)

getDateSubmitted

public Date getDateSubmitted()

setDateSubmitted

public void setDateSubmitted(Date dateSubmitted)

getSiteId

public String getSiteId()

setSiteId

public void setSiteId(String siteId)

getUserId

public String getUserId()

setUserId

public void setUserId(String userId)

getExternalId

public String getExternalId()

setExternalId

public void setExternalId(String externalId)

getContentId

public String getContentId()

setContentId

public void setContentId(String contentId)

getReviewScore

public Integer getReviewScore()

setReviewScore

public void setReviewScore(Integer reviewScore)

getStatus

public Long getStatus()

setStatus

public void setStatus(Long status)

getId

public Long getId()

setId

public void setId(Long id)

getTaskId

public String getTaskId()

setTaskId

public void setTaskId(String taskId)

getLastError

public String getLastError()

setLastError

public void setLastError(String le)

setIconURL

public void setIconURL(String u)

getIconUrl

public String getIconUrl()

getRetryCount

public Long getRetryCount()

setRetryCount

public void setRetryCount(Long l)

getNextRetryTime

public Date getNextRetryTime()

setNextRetryTime

public void setNextRetryTime(Date nextRetryTime)

getErrorCode

public Integer getErrorCode()
Get the errorCode returned by the Service

Returns:
the error code, null if none

setErrorCode

public void setErrorCode(Integer errorCode)
Set the error code for this submission

Parameters:
errorCode -


Copyright © 2003-2013 Sakai Project. All Rights Reserved.