org.kuali.kpme.tklm.leave.approval.web
Class ApprovalLeaveSummaryRow

java.lang.Object
  extended by org.kuali.kpme.tklm.leave.approval.web.ApprovalLeaveSummaryRow
All Implemented Interfaces:
Serializable, Comparable<ApprovalLeaveSummaryRow>, ApprovalLeaveSummaryRowContract

public class ApprovalLeaveSummaryRow
extends Object
implements Comparable<ApprovalLeaveSummaryRow>, Serializable, ApprovalLeaveSummaryRowContract

See Also:
Serialized Form

Constructor Summary
ApprovalLeaveSummaryRow()
           
 
Method Summary
 int compareTo(ApprovalLeaveSummaryRow row)
           
 String getApprovalStatus()
          The approvalStatus associated with the ApprovalLeaveSummaryRow
 String getColor()
          The color associated with the ApprovalLeaveSummaryRow
 Map<String,List<Map<String,Object>>> getDetailMap()
           
 String getDocumentId()
          The documentId associated with the ApprovalLeaveSummaryRow
 Map<Date,Map<String,BigDecimal>> getEarnCodeLeaveHours()
          The map of earn code leave hours associated with the ApprovalLeaveSummaryRow
 Map<String,Boolean> getEnableWeekDetails()
           
 Boolean getExemptEmployee()
          TODO: Is this field needed? The exemptEmployee flag of the ApprovalTimeSummaryRow
 String getLastApproveMessage()
          The lastApproveMessage associated with the ApprovalLeaveSummaryRow
 List<LeaveBlock> getLeaveBlockList()
          The list of LeaveBlock objects associated with the ApprovalLeaveSummaryRow
 LeaveSummary getLeaveSummary()
           
 Boolean getMoreThanOneCalendar()
          TODO: Is this field needed? The moreThanOneCalendar flag of the ApprovalTimeSummaryRow
 String getName()
          The name associated with the ApprovalLeaveSummaryRow
 List<org.kuali.rice.kew.api.note.Note> getNotes()
          The list of notes associated with the ApprovalLeaveSummaryRow
 String getPrincipalId()
          The principalId associated with the ApprovalLeaveSummaryRow
 String getRoleName()
          The role name of the principalId associated with the ApprovalLeaveSummaryRow
 Map<String,String> getRoleNames()
          The map of role names associated with the ApprovalLeaveSummaryRow
 String getSelected()
          TODO: Put a better comment The selected associated with the ApprovalLeaveSummaryRow
 String getUserTargetURLParams()
          TODO: Make sure this comment is right The URL parameters associated with the ApprovalLeaveSummaryRow
 List<String> getWarnings()
          The list of warnings associated with the ApprovalLeaveSummaryRow
 Map<String,Set<Date>> getWeekDateList()
           
 Map<String,String> getWeekDates()
           
 Map<Integer,String> getWeeklyDistribution()
           
 boolean isApprovable()
          Is this record ready to be approved?
 void setApprovalStatus(String approvalStatus)
           
 void setColor(String color)
           
 void setDetailMap(Map<String,List<Map<String,Object>>> detailMap)
           
 void setDocumentId(String documentId)
           
 void setEarnCodeLeaveHours(Map<Date,Map<String,BigDecimal>> earnCodeLeaveHours)
           
 void setEnableWeekDetails(Map<String,Boolean> enableWeekDetails)
           
 void setExemptEmployee(Boolean exemptEmployee)
           
 void setLastApproveMessage(String lastApproveMessage)
           
 void setLeaveBlockList(List<LeaveBlock> leaveBlockList)
           
 void setLeaveSummary(LeaveSummary leaveSummary)
           
 void setMoreThanOneCalendar(Boolean moreThanOneCalendar)
           
 void setName(String name)
           
 void setNotes(List<org.kuali.rice.kew.api.note.Note> notes)
           
 void setPrincipalId(String principalId)
           
 void setRoleNames(Map<String,String> roleNames)
           
 void setSelected(String selected)
           
 void setWarnings(List<String> warnings)
           
 void setWeekDateList(Map<String,Set<Date>> weekDateList)
           
 void setWeekDates(Map<String,String> weekDates)
           
 void setWeeklyDistribution(Map<Integer,String> weeklyDistribution)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApprovalLeaveSummaryRow

public ApprovalLeaveSummaryRow()
Method Detail

getLeaveSummary

public LeaveSummary getLeaveSummary()

setLeaveSummary

public void setLeaveSummary(LeaveSummary leaveSummary)

isApprovable

public boolean isApprovable()
Is this record ready to be approved?

Specified by:
isApprovable in interface ApprovalLeaveSummaryRowContract
Returns:
true if a valid TK_APPROVER / TK_PROCESSOR can approve, false otherwise.

compareTo

public int compareTo(ApprovalLeaveSummaryRow row)
Specified by:
compareTo in interface Comparable<ApprovalLeaveSummaryRow>

getName

public String getName()
Description copied from interface: ApprovalLeaveSummaryRowContract
The name associated with the ApprovalLeaveSummaryRow

name of an ApprovalLeaveSummaryRow

Specified by:
getName in interface ApprovalLeaveSummaryRowContract
Returns:
name for ApprovalLeaveSummaryRow

setName

public void setName(String name)

getPrincipalId

public String getPrincipalId()
Description copied from interface: ApprovalLeaveSummaryRowContract
The principalId associated with the ApprovalLeaveSummaryRow

principalId of an ApprovalLeaveSummaryRow

Specified by:
getPrincipalId in interface ApprovalLeaveSummaryRowContract
Returns:
principalId for ApprovalLeaveSummaryRow

setPrincipalId

public void setPrincipalId(String principalId)

getUserTargetURLParams

public String getUserTargetURLParams()
Description copied from interface: ApprovalLeaveSummaryRowContract
TODO: Make sure this comment is right The URL parameters associated with the ApprovalLeaveSummaryRow

Helper method to grab the URL parameters for setting target mode for a user/documentID leave summary.

Specified by:
getUserTargetURLParams in interface ApprovalLeaveSummaryRowContract
Returns:
parameter portion of a URL, usable to initiate target mode.

getLeaveBlockList

public List<LeaveBlock> getLeaveBlockList()
Description copied from interface: ApprovalLeaveSummaryRowContract
The list of LeaveBlock objects associated with the ApprovalLeaveSummaryRow

leaveBlockList of an ApprovalLeaveSummaryRow

Specified by:
getLeaveBlockList in interface ApprovalLeaveSummaryRowContract
Returns:
leaveBlockList for ApprovalLeaveSummaryRow

setLeaveBlockList

public void setLeaveBlockList(List<LeaveBlock> leaveBlockList)

getDocumentId

public String getDocumentId()
Description copied from interface: ApprovalLeaveSummaryRowContract
The documentId associated with the ApprovalLeaveSummaryRow

documentId of an ApprovalLeaveSummaryRow

Specified by:
getDocumentId in interface ApprovalLeaveSummaryRowContract
Returns:
documentId for ApprovalLeaveSummaryRow

setDocumentId

public void setDocumentId(String documentId)

getWarnings

public List<String> getWarnings()
Description copied from interface: ApprovalLeaveSummaryRowContract
The list of warnings associated with the ApprovalLeaveSummaryRow

warnings of an ApprovalLeaveSummaryRow

Specified by:
getWarnings in interface ApprovalLeaveSummaryRowContract
Returns:
warnings for ApprovalLeaveSummaryRow

setWarnings

public void setWarnings(List<String> warnings)

getSelected

public String getSelected()
Description copied from interface: ApprovalLeaveSummaryRowContract
TODO: Put a better comment The selected associated with the ApprovalLeaveSummaryRow

selected of an ApprovalLeaveSummaryRow

Specified by:
getSelected in interface ApprovalLeaveSummaryRowContract
Returns:
selected for ApprovalLeaveSummaryRow

setSelected

public void setSelected(String selected)

getNotes

public List<org.kuali.rice.kew.api.note.Note> getNotes()
Description copied from interface: ApprovalLeaveSummaryRowContract
The list of notes associated with the ApprovalLeaveSummaryRow

notes of an ApprovalLeaveSummaryRow

Specified by:
getNotes in interface ApprovalLeaveSummaryRowContract
Returns:
notes for ApprovalLeaveSummaryRow

setNotes

public void setNotes(List<org.kuali.rice.kew.api.note.Note> notes)

getLastApproveMessage

public String getLastApproveMessage()
Description copied from interface: ApprovalLeaveSummaryRowContract
The lastApproveMessage associated with the ApprovalLeaveSummaryRow

lastApproveMessage of an ApprovalLeaveSummaryRow

Specified by:
getLastApproveMessage in interface ApprovalLeaveSummaryRowContract
Returns:
lastApproveMessage for ApprovalLeaveSummaryRow

setLastApproveMessage

public void setLastApproveMessage(String lastApproveMessage)

getApprovalStatus

public String getApprovalStatus()
Description copied from interface: ApprovalLeaveSummaryRowContract
The approvalStatus associated with the ApprovalLeaveSummaryRow

approvalStatus of an ApprovalLeaveSummaryRow

Specified by:
getApprovalStatus in interface ApprovalLeaveSummaryRowContract
Returns:
approvalStatus for ApprovalLeaveSummaryRow

setApprovalStatus

public void setApprovalStatus(String approvalStatus)

getEarnCodeLeaveHours

public Map<Date,Map<String,BigDecimal>> getEarnCodeLeaveHours()
Description copied from interface: ApprovalLeaveSummaryRowContract
The map of earn code leave hours associated with the ApprovalLeaveSummaryRow

earnCodeLeaveHours of an ApprovalLeaveSummaryRow

Specified by:
getEarnCodeLeaveHours in interface ApprovalLeaveSummaryRowContract
Returns:
earnCodeLeaveHours for ApprovalLeaveSummaryRow

setEarnCodeLeaveHours

public void setEarnCodeLeaveHours(Map<Date,Map<String,BigDecimal>> earnCodeLeaveHours)

getWeeklyDistribution

public Map<Integer,String> getWeeklyDistribution()

setWeeklyDistribution

public void setWeeklyDistribution(Map<Integer,String> weeklyDistribution)

getWeekDates

public Map<String,String> getWeekDates()

setWeekDates

public void setWeekDates(Map<String,String> weekDates)

getMoreThanOneCalendar

public Boolean getMoreThanOneCalendar()
Description copied from interface: ApprovalLeaveSummaryRowContract
TODO: Is this field needed? The moreThanOneCalendar flag of the ApprovalTimeSummaryRow

moreThanOneCalendar flag of an ApprovalTimeSummaryRow

Specified by:
getMoreThanOneCalendar in interface ApprovalLeaveSummaryRowContract
Returns:
moreThanOneCalendar flag for an ApprovalTimeSummaryRow

setMoreThanOneCalendar

public void setMoreThanOneCalendar(Boolean moreThanOneCalendar)

getExemptEmployee

public Boolean getExemptEmployee()
Description copied from interface: ApprovalLeaveSummaryRowContract
TODO: Is this field needed? The exemptEmployee flag of the ApprovalTimeSummaryRow

exemptEmployee flag of an ApprovalTimeSummaryRow

Specified by:
getExemptEmployee in interface ApprovalLeaveSummaryRowContract
Returns:
moreThaexemptEmployeenOneCalendar flag for an ApprovalTimeSummaryRow

setExemptEmployee

public void setExemptEmployee(Boolean exemptEmployee)

getColor

public String getColor()
Description copied from interface: ApprovalLeaveSummaryRowContract
The color associated with the ApprovalLeaveSummaryRow

color of an ApprovalLeaveSummaryRow

Specified by:
getColor in interface ApprovalLeaveSummaryRowContract
Returns:
the color

setColor

public void setColor(String color)
Parameters:
color - the color to set

getRoleNames

public Map<String,String> getRoleNames()
Description copied from interface: ApprovalLeaveSummaryRowContract
The map of role names associated with the ApprovalLeaveSummaryRow

roleNames of an ApprovalLeaveSummaryRow

Specified by:
getRoleNames in interface ApprovalLeaveSummaryRowContract
Returns:
roleNames for ApprovalLeaveSummaryRow

setRoleNames

public void setRoleNames(Map<String,String> roleNames)

getRoleName

public String getRoleName()
Description copied from interface: ApprovalLeaveSummaryRowContract
The role name of the principalId associated with the ApprovalLeaveSummaryRow

role name of the principalId of an ApprovalLeaveSummaryRow

Specified by:
getRoleName in interface ApprovalLeaveSummaryRowContract
Returns:
getRoleNames().get(HrContext.getPrincipalId()) for ApprovalLeaveSummaryRow

getWeekDateList

public Map<String,Set<Date>> getWeekDateList()

setWeekDateList

public void setWeekDateList(Map<String,Set<Date>> weekDateList)

getDetailMap

public Map<String,List<Map<String,Object>>> getDetailMap()

setDetailMap

public void setDetailMap(Map<String,List<Map<String,Object>>> detailMap)

getEnableWeekDetails

public Map<String,Boolean> getEnableWeekDetails()

setEnableWeekDetails

public void setEnableWeekDetails(Map<String,Boolean> enableWeekDetails)


Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.