org.kuali.kpme.tklm.time.rules.lunch.department
Class DeptLunchRule

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.kpme.core.bo.HrBusinessObject
              extended by org.kuali.kpme.tklm.time.rules.lunch.department.DeptLunchRule
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, HrBusinessObjectContract, DeptLunchRuleContract, org.kuali.rice.core.api.mo.common.active.Inactivatable, org.kuali.rice.core.api.mo.common.GloballyUnique, org.kuali.rice.core.api.mo.common.Versioned, org.kuali.rice.core.api.mo.ModelObjectBasic, org.kuali.rice.krad.bo.BusinessObject, org.kuali.rice.krad.bo.PersistableBusinessObject

public class DeptLunchRule
extends HrBusinessObject
implements DeptLunchRuleContract

See Also:
Serialized Form

Field Summary
static String CACHE_NAME
           
static com.google.common.collect.ImmutableList<String> EQUAL_TO_FIELDS
           
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
DeptLunchRule()
           
 
Method Summary
 BigDecimal getDeductionMins()
          The amount of minutes to be deducted as a lunch
 Department getDepartmentObj()
          The Department object associated with the DeptLunchRule
 String getDept()
          The dept associated with the DeptLunchRule
 String getHrDeptId()
          The id of the Department object associated with the DeptLunchRule
 String getHrJobId()
          The id of the Job object associated with the DeptLunchRule
 String getId()
          The unique id defined by the object, could be a combination of multiple fields
 Job getJob()
          The Job object associated with the DeptLunchRule
 Long getJobNumber()
          The jobNumber associated with the DeptLunchRule
 org.kuali.rice.kim.api.identity.Person getPrincipal()
          The principal associated with the DeptLunchRule
 String getPrincipalId()
          The principalId associated with the DeptLunchRule
 BigDecimal getShiftHours()
          The number of hours which must be met in order for the deduction to occur
 String getTkDeptLunchRuleId()
          The primary key of a DeptLunchRule entry saved in a database
 String getTkWorkAreaId()
          The id of the WorkArea object associated with the DeptLunchRule
 String getUniqueKey()
           
 String getUserPrincipalId()
          User which set up the lunch rule
 Long getWorkArea()
          The work area associated with the DeptLunchRule
 WorkArea getWorkAreaObj()
          The WorkArea object associated with the DeptLunchRule
 boolean isHistory()
          The history flag of the DeptLunchRule
 void setDeductionMins(BigDecimal deductionMins)
           
 void setDepartmentObj(Department departmentObj)
           
 void setDept(String dept)
           
 void setHistory(boolean history)
           
 void setHrDeptId(String hrDeptId)
           
 void setHrJobId(String hrJobId)
           
 void setId(String id)
           
 void setJob(Job job)
           
 void setJobNumber(Long jobNumber)
           
 void setPrincipal(org.kuali.rice.kim.api.identity.Person principal)
           
 void setPrincipalId(String principalId)
           
 void setShiftHours(BigDecimal shiftHours)
           
 void setTkDeptLunchRuleId(String tkDeptLunchRuleId)
           
 void setTkWorkAreaId(String tkWorkAreaId)
           
 void setUserPrincipalId(String userPrincipalId)
           
 void setWorkArea(Long workArea)
           
 void setWorkAreaObj(WorkArea workAreaObj)
           
 
Methods inherited from class org.kuali.kpme.core.bo.HrBusinessObject
getEffectiveDate, getEffectiveLocalDate, getRelativeEffectiveDate, getTimestamp, isActive, setActive, setEffectiveDate, setEffectiveLocalDate, setRelativeEffectiveDate, setTimestamp
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.kpme.core.api.bo.HrBusinessObjectContract
getEffectiveDate, getEffectiveLocalDate, getRelativeEffectiveDate, getTimestamp
 
Methods inherited from interface org.kuali.rice.krad.bo.PersistableBusinessObject
buildListOfDeletionAwareLists, getExtension, isNewCollectionRecord, linkEditableUserFields, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from interface org.kuali.rice.krad.bo.BusinessObject
refresh
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.Versioned
getVersionNumber
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.GloballyUnique
getObjectId
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.active.Inactivatable
isActive
 

Field Detail

CACHE_NAME

public static final String CACHE_NAME
See Also:
Constant Field Values

EQUAL_TO_FIELDS

public static final com.google.common.collect.ImmutableList<String> EQUAL_TO_FIELDS
Constructor Detail

DeptLunchRule

public DeptLunchRule()
Method Detail

getPrincipal

public org.kuali.rice.kim.api.identity.Person getPrincipal()
Description copied from interface: DeptLunchRuleContract
The principal associated with the DeptLunchRule

If a principal id is defined, only this specific employee will be subject to the automatic lunch deduction.

Specified by:
getPrincipal in interface DeptLunchRuleContract
Returns:
principal for DeptLunchRule

setPrincipal

public void setPrincipal(org.kuali.rice.kim.api.identity.Person principal)

getJob

public Job getJob()
Description copied from interface: DeptLunchRuleContract
The Job object associated with the DeptLunchRule

If job # is defined, only this specific employee's job will be subject to the automatic lunch deduction.

Specified by:
getJob in interface DeptLunchRuleContract
Returns:
job for DeptLunchRule

setJob

public void setJob(Job job)

getWorkAreaObj

public WorkArea getWorkAreaObj()
Description copied from interface: DeptLunchRuleContract
The WorkArea object associated with the DeptLunchRule

If a work area is defined, only entries associated with a job in this work area will be subject to the automatic lunch deduction.

Specified by:
getWorkAreaObj in interface DeptLunchRuleContract
Returns:
workAreaObj for DeptLunchRule

setWorkAreaObj

public void setWorkAreaObj(WorkArea workAreaObj)

getDepartmentObj

public Department getDepartmentObj()
Description copied from interface: DeptLunchRuleContract
The Department object associated with the DeptLunchRule

If a department is defined, only entries associated with a job in this department will be subject to the automatic lunch deduction.

Specified by:
getDepartmentObj in interface DeptLunchRuleContract
Returns:
departmentObj for DeptLunchRule

setDepartmentObj

public void setDepartmentObj(Department departmentObj)

getWorkArea

public Long getWorkArea()
Description copied from interface: DeptLunchRuleContract
The work area associated with the DeptLunchRule

If a work area is defined, only entries associated with a job in this work area will be subject to the automatic lunch deduction.

Specified by:
getWorkArea in interface DeptLunchRuleContract
Returns:
workArea for DeptLunchRule

setWorkArea

public void setWorkArea(Long workArea)

getPrincipalId

public String getPrincipalId()
Description copied from interface: DeptLunchRuleContract
The principalId associated with the DeptLunchRule

If a principal id is defined, only this specific employee will be subject to the automatic lunch deduction.

Specified by:
getPrincipalId in interface DeptLunchRuleContract
Returns:
principalId for DeptLunchRule

setPrincipalId

public void setPrincipalId(String principalId)

getJobNumber

public Long getJobNumber()
Description copied from interface: DeptLunchRuleContract
The jobNumber associated with the DeptLunchRule

If job # is defined, only this specific employee's job will be subject to the automatic lunch deduction.

Specified by:
getJobNumber in interface DeptLunchRuleContract
Returns:
jobNumber for DeptLunchRule

setJobNumber

public void setJobNumber(Long jobNumber)

getUserPrincipalId

public String getUserPrincipalId()
Description copied from interface: DeptLunchRuleContract
User which set up the lunch rule

userPrincipalId of a DeptLunchRule

Specified by:
getUserPrincipalId in interface DeptLunchRuleContract
Returns:
userPrincipalId for DeptLunchRule

setUserPrincipalId

public void setUserPrincipalId(String userPrincipalId)

getTkDeptLunchRuleId

public String getTkDeptLunchRuleId()
Description copied from interface: DeptLunchRuleContract
The primary key of a DeptLunchRule entry saved in a database

tkTimeCollectionRuleId of a DeptLunchRule

Specified by:
getTkDeptLunchRuleId in interface DeptLunchRuleContract
Returns:
tkTimeCollectionRuleId for DeptLunchRule

setTkDeptLunchRuleId

public void setTkDeptLunchRuleId(String tkDeptLunchRuleId)

getDept

public String getDept()
Description copied from interface: DeptLunchRuleContract
The dept associated with the DeptLunchRule

If a department is defined, only entries associated with a job in this department will be subject to the automatic lunch deduction.

Specified by:
getDept in interface DeptLunchRuleContract
Returns:
dept for DeptLunchRule

setDept

public void setDept(String dept)

getDeductionMins

public BigDecimal getDeductionMins()
Description copied from interface: DeptLunchRuleContract
The amount of minutes to be deducted as a lunch

deductionMins of a DeptLunchRule

Specified by:
getDeductionMins in interface DeptLunchRuleContract
Returns:
deductionMins for DeptLunchRule

setDeductionMins

public void setDeductionMins(BigDecimal deductionMins)

getShiftHours

public BigDecimal getShiftHours()
Description copied from interface: DeptLunchRuleContract
The number of hours which must be met in order for the deduction to occur

shiftHours of a DeptLunchRule

Specified by:
getShiftHours in interface DeptLunchRuleContract
Returns:
shiftHours for DeptLunchRule

setShiftHours

public void setShiftHours(BigDecimal shiftHours)

getTkWorkAreaId

public String getTkWorkAreaId()
Description copied from interface: DeptLunchRuleContract
The id of the WorkArea object associated with the DeptLunchRule

tkWorkAreaId of a DeptLunchRule

Specified by:
getTkWorkAreaId in interface DeptLunchRuleContract
Returns:
tkWorkAreaId for DeptLunchRule

setTkWorkAreaId

public void setTkWorkAreaId(String tkWorkAreaId)

getHrDeptId

public String getHrDeptId()
Description copied from interface: DeptLunchRuleContract
The id of the Department object associated with the DeptLunchRule

hrDeptId of a DeptLunchRule

Specified by:
getHrDeptId in interface DeptLunchRuleContract
Returns:
hrDeptId for DeptLunchRule

setHrDeptId

public void setHrDeptId(String hrDeptId)

getHrJobId

public String getHrJobId()
Description copied from interface: DeptLunchRuleContract
The id of the Job object associated with the DeptLunchRule

hrJobId of a DeptLunchRule

Specified by:
getHrJobId in interface DeptLunchRuleContract
Returns:
hrJobId for DeptLunchRule

setHrJobId

public void setHrJobId(String hrJobId)

getUniqueKey

public String getUniqueKey()
Specified by:
getUniqueKey in class HrBusinessObject

getId

public String getId()
Description copied from interface: HrBusinessObjectContract
The unique id defined by the object, could be a combination of multiple fields

id of HrBusinessObject

Specified by:
getId in interface HrBusinessObjectContract
Specified by:
getId in class HrBusinessObject
Returns:
id of HrBusinessObject

setId

public void setId(String id)
Specified by:
setId in class HrBusinessObject

isHistory

public boolean isHistory()
Description copied from interface: DeptLunchRuleContract
The history flag of the DeptLunchRule

history flag of a DeptLunchRule

Specified by:
isHistory in interface DeptLunchRuleContract
Returns:
Y if on, N if not

setHistory

public void setHistory(boolean history)


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