org.kuali.kpme.core.assignment
Class Assignment

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.assignment.Assignment
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, AssignmentContract, HrBusinessObjectContract, 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 Assignment
extends HrBusinessObject
implements AssignmentContract

See Also:
Serialized Form

Field Summary
static com.google.common.collect.ImmutableList<String> CACHE_FLUSH
           
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
Assignment()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<AssignmentAccount> getAssignmentAccounts()
          List of AssignmentAccounts associated with this Assignment
 String getAssignmentDescription()
          Task field of Task object associated with the Assignment
 String getAssignmentKey()
          String combination job, workarea and task of AssignmentDescriptionKey build with the Assignment
 String getCalGroup()
          CalendarGroup associated with the Assignment
 String getClockText()
          Provides us with the text to display to the user for clock actions on this assignment.
 String getDept()
          Department based on the Job object associated with the Assignment
 Boolean getHistory()
          History flag for Assignment lookups
 String getHrJobId()
          Primary key of Job object associated with this Assignment
 String getId()
          The unique id defined by the object, could be a combination of multiple fields
 Job getJob()
          Job object associated with this Assignment
 Long getJobNumber()
          Job number of Job object associated with this Assignment
 String getName()
          Name of the employee associated with this Assignment
 org.kuali.rice.kim.api.identity.Person getPrincipal()
          Employee associated with the Assignment
 String getPrincipalId()
          Identifier of the employee associated with this Assignment
 Long getTask()
          Task field of Task object associated with the Assignment
 Task getTaskObj()
          Task object associated with the Assignment
 String getTkAssignmentId()
          The Primary Key of an Assignment entry saved in a database
 String getUniqueKey()
           
 Long getWorkArea()
          WorkArea field of WorkArea object associated with the Assignment
 WorkArea getWorkAreaObj()
          The work area for recording time which also drives approval routing.
 int hashCode()
           
 void setAssignmentAccounts(List<AssignmentAccount> assignmentAccounts)
           
 void setCalGroup(String calGroup)
           
 void setDept(String dept)
           
 void setHistory(Boolean history)
           
 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 setTask(Long task)
           
 void setTaskObj(Task taskObj)
           
 void setTkAssignmentId(String tkAssignmentId)
           
 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, finalize, getClass, 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_FLUSH

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

CACHE_NAME

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

Assignment

public Assignment()
Method Detail

getAssignmentAccounts

public List<AssignmentAccount> getAssignmentAccounts()
Description copied from interface: AssignmentContract
List of AssignmentAccounts associated with this Assignment

assignmentAccounts of Assignment

Specified by:
getAssignmentAccounts in interface AssignmentContract
Returns:
assignmentAccounts for Assignment

setAssignmentAccounts

public void setAssignmentAccounts(List<AssignmentAccount> assignmentAccounts)

getPrincipalId

public String getPrincipalId()
Description copied from interface: AssignmentContract
Identifier of the employee associated with this Assignment

principalId of Assignment

Specified by:
getPrincipalId in interface AssignmentContract
Returns:
principalId for Assignment

setPrincipalId

public void setPrincipalId(String principalId)

getName

public String getName()
Description copied from interface: AssignmentContract
Name of the employee associated with this Assignment

employee name of Assignment

Specified by:
getName in interface AssignmentContract
Returns:
employee name for Assignment

getJob

public Job getJob()
Description copied from interface: AssignmentContract
Job object associated with this Assignment

job of Assignment

Specified by:
getJob in interface AssignmentContract
Returns:
job for Assignment

setJob

public void setJob(Job job)

getJobNumber

public Long getJobNumber()
Description copied from interface: AssignmentContract
Job number of Job object associated with this Assignment

jobNumber of Assignment

Specified by:
getJobNumber in interface AssignmentContract
Returns:
jobNumber for Assignment

setJobNumber

public void setJobNumber(Long jobNumber)

getHrJobId

public String getHrJobId()
Description copied from interface: AssignmentContract
Primary key of Job object associated with this Assignment

hrJobId of Assignment

Specified by:
getHrJobId in interface AssignmentContract
Returns:
hrJobId for Assignment

setHrJobId

public void setHrJobId(String hrJobId)

getClockText

public String getClockText()
Provides us with the text to display to the user for clock actions on this assignment.

Specified by:
getClockText in interface AssignmentContract
Returns:

getTkAssignmentId

public String getTkAssignmentId()
Description copied from interface: AssignmentContract
The Primary Key of an Assignment entry saved in a database

tkAssignmentId of Assignment

Specified by:
getTkAssignmentId in interface AssignmentContract
Returns:
tkAssignmentId for Assignment

setTkAssignmentId

public void setTkAssignmentId(String tkAssignmentId)

setWorkArea

public void setWorkArea(Long workArea)

setTask

public void setTask(Long task)

getDept

public String getDept()
Description copied from interface: AssignmentContract
Department based on the Job object associated with the Assignment

dept of Assignment

Specified by:
getDept in interface AssignmentContract
Returns:
dept for Assignment

setDept

public void setDept(String dept)

getWorkAreaObj

public WorkArea getWorkAreaObj()
Description copied from interface: AssignmentContract
The work area for recording time which also drives approval routing. Valid values based on the department on the job.

workAreaObj of Assignment

Specified by:
getWorkAreaObj in interface AssignmentContract
Returns:
workAreaObj for Assignment

setWorkAreaObj

public void setWorkAreaObj(WorkArea workAreaObj)

getWorkArea

public Long getWorkArea()
Description copied from interface: AssignmentContract
WorkArea field of WorkArea object associated with the Assignment

workArea of Assignment

Specified by:
getWorkArea in interface AssignmentContract
Returns:
workArea for Assignment

getTask

public Long getTask()
Description copied from interface: AssignmentContract
Task field of Task object associated with the Assignment

task of Assignment

Specified by:
getTask in interface AssignmentContract
Returns:
task for Assignment

getAssignmentDescription

public String getAssignmentDescription()
Description copied from interface: AssignmentContract
Task field of Task object associated with the Assignment

task of Assignment

Specified by:
getAssignmentDescription in interface AssignmentContract
Returns:
task for Assignment

getPrincipal

public org.kuali.rice.kim.api.identity.Person getPrincipal()
Description copied from interface: AssignmentContract
Employee associated with the Assignment

principal of Assignment

Specified by:
getPrincipal in interface AssignmentContract
Returns:
principal for Assignment

setPrincipal

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

getTaskObj

public Task getTaskObj()
Description copied from interface: AssignmentContract
Task object associated with the Assignment

taskObj of Assignment

Specified by:
getTaskObj in interface AssignmentContract
Returns:
taskObj for Assignment

setTaskObj

public void setTaskObj(Task taskObj)

getHistory

public Boolean getHistory()
Description copied from interface: AssignmentContract
History flag for Assignment lookups

history of Assignment

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

setHistory

public void setHistory(Boolean history)

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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getCalGroup

public String getCalGroup()
Description copied from interface: AssignmentContract
CalendarGroup associated with the Assignment

calGroup of Assignment

Specified by:
getCalGroup in interface AssignmentContract
Returns:
calGroup for Assignment

setCalGroup

public void setCalGroup(String calGroup)

getAssignmentKey

public String getAssignmentKey()
Description copied from interface: AssignmentContract
String combination job, workarea and task of AssignmentDescriptionKey build with the Assignment

assignmentKey of Assignment

Specified by:
getAssignmentKey in interface AssignmentContract
Returns:
assignmentKey for Assignment


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