org.kuali.rice.kim.impl.identity.affiliation
Class EntityAffiliationHistoryBo

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.kim.impl.identity.affiliation.EntityAffiliationBo
              extended by org.kuali.rice.kim.impl.identity.affiliation.EntityAffiliationHistoryBo
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, Inactivatable, InactivatableFromTo, Defaultable, GloballyUnique, Historical, Identifiable, Versioned, ModelObjectBasic, EntityAffiliationContract, EntityAffiliationHistoryContract, BusinessObject, PersistableBusinessObject

public class EntityAffiliationHistoryBo
extends EntityAffiliationBo
implements EntityAffiliationHistoryContract

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, newCollectionRecord, objectId, versionNumber
 
Constructor Summary
EntityAffiliationHistoryBo()
           
 
Method Summary
static EntityAffiliationHistoryBo from(EntityAffiliationHistory immutable)
          Creates a AddressTypeHistory business object from an immutable representation of a AddressTypeHistory.
static EntityAffiliationHistoryBo from(EntityAffiliation im, Timestamp fromDate, Timestamp toDate)
          Creates a AddressType business object from an immutable representation of a AddressType.
 org.joda.time.DateTime getActiveFromDate()
          Gets the date for which the record become active.
 Timestamp getActiveFromDateValue()
           
 org.joda.time.DateTime getActiveToDate()
          Gets the date for which the record become inactive.
 Timestamp getActiveToDateValue()
           
 EntityAffiliationTypeHistoryBo getAffiliationType()
          Gets this KimEntityAffiliation's type.
 Long getHistoryId()
           
 boolean isActive(org.joda.time.DateTime activeAsOfDate)
          Returns if the record is active for a given Time.
 boolean isActive(Timestamp activeAsOfDate)
           
 boolean isActiveNow()
           
 void setActiveFromDateValue(Timestamp activeFromDateValue)
           
 void setActiveToDateValue(Timestamp activeToDateValue)
           
 void setAffiliationType(EntityAffiliationTypeHistoryBo affiliationType)
           
 void setHistoryId(Long historyId)
           
static EntityAffiliationHistory to(EntityAffiliationHistoryBo bo)
          Converts a mutable EntityAffiliationHistoryBo to an immutable AddressTypeHistory representation.
 
Methods inherited from class org.kuali.rice.kim.impl.identity.affiliation.EntityAffiliationBo
from, getActive, getAffiliationTypeCode, getCampusCode, getDefaultValue, getEntityId, getId, isActive, isDefaultValue, setActive, setAffiliationType, setAffiliationTypeCode, setCampusCode, setDefaultValue, setEntityId, setId, to
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getLegacyDataAdapter, getObjectId, 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.rice.kim.api.identity.affiliation.EntityAffiliationContract
getCampusCode, getEntityId
 
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.Defaultable
isDefaultValue
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.Identifiable
getId
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.active.Inactivatable
isActive
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

EntityAffiliationHistoryBo

public EntityAffiliationHistoryBo()
Method Detail

getHistoryId

public Long getHistoryId()
Specified by:
getHistoryId in interface Historical

setHistoryId

public void setHistoryId(Long historyId)

getActiveFromDateValue

public Timestamp getActiveFromDateValue()

setActiveFromDateValue

public void setActiveFromDateValue(Timestamp activeFromDateValue)

getActiveToDateValue

public Timestamp getActiveToDateValue()

setActiveToDateValue

public void setActiveToDateValue(Timestamp activeToDateValue)

isActive

public boolean isActive(Timestamp activeAsOfDate)

isActive

public boolean isActive(org.joda.time.DateTime activeAsOfDate)
Description copied from interface: InactivatableFromTo
Returns if the record is active for a given Time. If the activeAsOfDate is null will return null.

Specified by:
isActive in interface InactivatableFromTo
Returns:
true if active false if not

isActiveNow

public boolean isActiveNow()
Specified by:
isActiveNow in interface Historical

getActiveFromDate

public org.joda.time.DateTime getActiveFromDate()
Description copied from interface: InactivatableFromTo
Gets the date for which the record become active. Can be null.

Specified by:
getActiveFromDate in interface InactivatableFromTo
Returns:
Timestamp of active from date

getActiveToDate

public org.joda.time.DateTime getActiveToDate()
Description copied from interface: InactivatableFromTo
Gets the date for which the record become inactive. Can be null.

Specified by:
getActiveToDate in interface InactivatableFromTo
Returns:
Timestamp of active to date

getAffiliationType

public EntityAffiliationTypeHistoryBo getAffiliationType()
Description copied from interface: EntityAffiliationContract
Gets this KimEntityAffiliation's type.

Specified by:
getAffiliationType in interface EntityAffiliationContract
Specified by:
getAffiliationType in interface EntityAffiliationHistoryContract
Overrides:
getAffiliationType in class EntityAffiliationBo
Returns:
the type for this KimEntityAffiliation, or null if none has been assigned.

setAffiliationType

public void setAffiliationType(EntityAffiliationTypeHistoryBo affiliationType)

to

public static EntityAffiliationHistory to(EntityAffiliationHistoryBo bo)
Converts a mutable EntityAffiliationHistoryBo to an immutable AddressTypeHistory representation.

Parameters:
bo -
Returns:
an immutable AddressTypeHistory

from

public static EntityAffiliationHistoryBo from(EntityAffiliationHistory immutable)
Creates a AddressTypeHistory business object from an immutable representation of a AddressTypeHistory.

Parameters:
immutable - an immutable AddressType
Returns:
a AddressTypeBo

from

public static EntityAffiliationHistoryBo from(EntityAffiliation im,
                                              Timestamp fromDate,
                                              Timestamp toDate)
Creates a AddressType business object from an immutable representation of a AddressType.

Parameters:
im - an immutable AddressType
Returns:
a AddressTypeBo


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