org.kuali.kpme.core.principal
Class PrincipalHRAttributes

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.core.principal.PrincipalHRAttributes
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, HrBusinessObjectContract, PrincipalHRAttributesContract, 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 PrincipalHRAttributes
extends HrBusinessObject
implements PrincipalHRAttributesContract

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
PrincipalHRAttributes()
           
 
Method Summary
 Calendar getCalendar()
          The Calendar object the PrincipalHRAttributes is associated with
 Boolean getHistory()
          The history flag for PrincipalHRAttributes lookups
 String getHrPrincipalAttributeId()
          The primary key of a PrincipalHRAttributes entry saved in a database
 String getId()
          The unique id defined by the object, could be a combination of multiple fields
 String getLeaveCalendar()
          The name of the LeaveCalendar object the PrincipalHRAttributes is associated with
 Calendar getLeaveCalObj()
           
 String getLeavePlan()
          The name of the LeavePlan object the PrincipalHRAttributes is associated with
 LeavePlan getLeavePlanObj()
          Determines the accrual rules and leave codes for the employee
 String getName()
          The principalId's names (first, middle and last names) the PrincipalHRAttributes is associated with
 String getPayCalendar()
          Defines the calendar associated with the user for their timesheet
 org.kuali.rice.kim.api.identity.Person getPerson()
          The Person object the PrincipalHRAttributes is associated with
 String getPrincipalId()
          The principalId the PrincipalHRAttributes is associated with
 Date getServiceDate()
          The employee's start date for their leave eligible job
 org.joda.time.LocalDate getServiceLocalDate()
          The serviceDate (LocalDate) the PrincipalHRAttributes is associated with
 String getTimezone()
          The time zone that the employee is located in
protected  String getUniqueKey()
           
 boolean isFmlaEligible()
          The fmlaEligible flag to dictate if FMLA leave codes are available for the employee to select on leave calendar
 boolean isWorkersCompEligible()
          The workersCompEligible flag to dictate if FMLA leave codes are available for the employee to select on leave calendar
 void setCalendar(Calendar calendar)
           
 void setFmlaEligible(boolean fmlaEligible)
           
 void setHistory(Boolean history)
           
 void setHrPrincipalAttributeId(String hrPrincipalAttributeId)
           
 void setId(String id)
           
 void setLeaveCalendar(String leaveCalendar)
           
 void setLeaveCalObj(Calendar leaveCalObj)
           
 void setLeavePlan(String leavePlan)
           
 void setLeavePlanObj(LeavePlan leavePlanObj)
           
 void setPayCalendar(String payCalendar)
           
 void setPerson(org.kuali.rice.kim.api.identity.Person person)
           
 void setPrincipalId(String principalId)
           
 void setServiceDate(Date serviceDate)
           
 void setServiceLocalDate(org.joda.time.LocalDate serviceLocalDate)
           
 void setTimezone(String timezone)
           
 void setWorkersCompEligible(boolean workersCompEligible)
           
 
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

EQUAL_TO_FIELDS

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

CACHE_NAME

public static final String CACHE_NAME
See Also:
Constant Field Values
Constructor Detail

PrincipalHRAttributes

public PrincipalHRAttributes()
Method Detail

getPrincipalId

public String getPrincipalId()
Description copied from interface: PrincipalHRAttributesContract
The principalId the PrincipalHRAttributes is associated with

principalId of a PrincipalHRAttributes

Specified by:
getPrincipalId in interface PrincipalHRAttributesContract
Returns:
principalId for PrincipalHRAttributes

setPrincipalId

public void setPrincipalId(String principalId)

getName

public String getName()
Description copied from interface: PrincipalHRAttributesContract
The principalId's names (first, middle and last names) the PrincipalHRAttributes is associated with

It gets a Person object if person is null based on the principalId. person.getName() constructs the first, middle and last names.

Specified by:
getName in interface PrincipalHRAttributesContract
Returns:
person.getName() if person is not null, otherwise ""

getPayCalendar

public String getPayCalendar()
Description copied from interface: PrincipalHRAttributesContract
Defines the calendar associated with the user for their timesheet

payCalendar of a PrincipalHRAttributes

Specified by:
getPayCalendar in interface PrincipalHRAttributesContract
Returns:
payCalendar for PrincipalHRAttributes

setPayCalendar

public void setPayCalendar(String payCalendar)

getLeavePlan

public String getLeavePlan()
Description copied from interface: PrincipalHRAttributesContract
The name of the LeavePlan object the PrincipalHRAttributes is associated with

The employee's Leave Plan that determines the accrual rules and leave codes.

Specified by:
getLeavePlan in interface PrincipalHRAttributesContract
Returns:
leavePlan of PrincipalHRAttributes

setLeavePlan

public void setLeavePlan(String leavePlan)

getServiceDate

public Date getServiceDate()
Description copied from interface: PrincipalHRAttributesContract
The employee's start date for their leave eligible job

serviceDate of a PrincipalHRAttributes

Specified by:
getServiceDate in interface PrincipalHRAttributesContract
Returns:
serviceDate for PrincipalHRAttributes

setServiceDate

public void setServiceDate(Date serviceDate)

getServiceLocalDate

public org.joda.time.LocalDate getServiceLocalDate()
Description copied from interface: PrincipalHRAttributesContract
The serviceDate (LocalDate) the PrincipalHRAttributes is associated with

serviceDate of a PrincipalHRAttributes

Specified by:
getServiceLocalDate in interface PrincipalHRAttributesContract
Returns:
serviceDate for PrincipalHRAttributes

setServiceLocalDate

public void setServiceLocalDate(org.joda.time.LocalDate serviceLocalDate)

isFmlaEligible

public boolean isFmlaEligible()
Description copied from interface: PrincipalHRAttributesContract
The fmlaEligible flag to dictate if FMLA leave codes are available for the employee to select on leave calendar

fmlaEligible of a PrincipalHRAttributes

Specified by:
isFmlaEligible in interface PrincipalHRAttributesContract
Returns:
true if fmla eligible, false if not

setFmlaEligible

public void setFmlaEligible(boolean fmlaEligible)

isWorkersCompEligible

public boolean isWorkersCompEligible()
Description copied from interface: PrincipalHRAttributesContract
The workersCompEligible flag to dictate if FMLA leave codes are available for the employee to select on leave calendar

workersCompEligible of a PrincipalHRAttributes

Specified by:
isWorkersCompEligible in interface PrincipalHRAttributesContract
Returns:
true if worker's comp eligible, false if not

setWorkersCompEligible

public void setWorkersCompEligible(boolean workersCompEligible)

getTimezone

public String getTimezone()
Description copied from interface: PrincipalHRAttributesContract
The time zone that the employee is located in

timezone of PrincipalHRAttributes

Specified by:
getTimezone in interface PrincipalHRAttributesContract
Returns:
timezone for PrincipalHRAttributes

setTimezone

public void setTimezone(String timezone)

getCalendar

public Calendar getCalendar()
Description copied from interface: PrincipalHRAttributesContract
The Calendar object the PrincipalHRAttributes is associated with

calendar of a PrincipalHRAttributes

Specified by:
getCalendar in interface PrincipalHRAttributesContract
Returns:
calendar for PrincipalHRAttributes

setCalendar

public void setCalendar(Calendar calendar)

getPerson

public org.kuali.rice.kim.api.identity.Person getPerson()
Description copied from interface: PrincipalHRAttributesContract
The Person object the PrincipalHRAttributes is associated with

person of a aPrincipalHRAttributes

Specified by:
getPerson in interface PrincipalHRAttributesContract
Returns:
person for PrincipalHRAttributes

setPerson

public void setPerson(org.kuali.rice.kim.api.identity.Person person)

getLeavePlanObj

public LeavePlan getLeavePlanObj()
Description copied from interface: PrincipalHRAttributesContract
Determines the accrual rules and leave codes for the employee

leavePlanObj of a PrincipalHRAttributes

Specified by:
getLeavePlanObj in interface PrincipalHRAttributesContract
Returns:
leavePlanObj for PrincipalHRAttributes

setLeavePlanObj

public void setLeavePlanObj(LeavePlan leavePlanObj)

getUniqueKey

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

getLeaveCalendar

public String getLeaveCalendar()
Description copied from interface: PrincipalHRAttributesContract
The name of the LeaveCalendar object the PrincipalHRAttributes is associated with

leaveCalendar of a PrincipalHRAttributes

Specified by:
getLeaveCalendar in interface PrincipalHRAttributesContract
Returns:
leaveCalendar for PrincipalHRAttributes

setLeaveCalendar

public void setLeaveCalendar(String leaveCalendar)

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

getLeaveCalObj

public Calendar getLeaveCalObj()

setLeaveCalObj

public void setLeaveCalObj(Calendar leaveCalObj)

getHrPrincipalAttributeId

public String getHrPrincipalAttributeId()
Description copied from interface: PrincipalHRAttributesContract
The primary key of a PrincipalHRAttributes entry saved in a database

hrPrincipalAttributeId of a PrincipalHRAttributes

Specified by:
getHrPrincipalAttributeId in interface PrincipalHRAttributesContract
Returns:
hrPrincipalAttributeId for PrincipalHRAttributes

setHrPrincipalAttributeId

public void setHrPrincipalAttributeId(String hrPrincipalAttributeId)

getHistory

public Boolean getHistory()
Description copied from interface: PrincipalHRAttributesContract
The history flag for PrincipalHRAttributes lookups

history of PrincipalHRAttributes

Specified by:
getHistory in interface PrincipalHRAttributesContract
Returns:
true if want to show history, false if not

setHistory

public void setHistory(Boolean history)


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