org.kuali.kfs.coa.businessobject
Class AccountDelegateGlobal

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by org.kuali.kfs.coa.businessobject.AccountDelegateGlobal
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, org.kuali.rice.kns.bo.BusinessObject, org.kuali.rice.kns.bo.GlobalBusinessObject, org.kuali.rice.kns.bo.PersistableBusinessObject

public class AccountDelegateGlobal
extends org.kuali.rice.kns.bo.PersistableBusinessObjectBase
implements org.kuali.rice.kns.bo.GlobalBusinessObject

This class simply acts as a container to hold the List of Delegate Changes and the list of Account entries, for the Global Delegate Change Document.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
AccountDelegateGlobal()
          Constructs a DelegateGlobal.java.
 
Method Summary
 void addAccount(AccountGlobalDetail accountGlobalDetail)
          This method adds a single AccountGlobalDetail instance to the list.
 List buildListOfDeletionAwareLists()
           
 List<org.kuali.rice.kns.bo.PersistableBusinessObject> generateDeactivationsToPersist()
           
 List<org.kuali.rice.kns.bo.PersistableBusinessObject> generateGlobalChangesToPersist()
           
 AccountGlobalDetail getAccount(String chartCode, String accountNumber)
          This method retrieves the specific AccountGlobalDetail object that corresponds to your requested chartCode and accountNumber (or a null object if there is no match).
 List<AccountGlobalDetail> getAccountGlobalDetails()
          Gets the accountGlobalDetails attribute.
 List<? extends org.kuali.rice.kns.bo.GlobalBusinessObjectDetail> getAllDetailObjects()
           
 List<AccountDelegateGlobalDetail> getDelegateGlobals()
          Gets the delegateGlobals attribute.
 String getDocumentNumber()
           
 AccountDelegateModel getModel()
           
 String getModelChartOfAccountsCode()
           
 String getModelName()
           
 String getModelOrganizationCode()
           
 boolean isPersistable()
           
 void linkEditableUserFields()
           
 void setAccountGlobalDetails(List<AccountGlobalDetail> accountGlobalDetails)
          Sets the accountGlobalDetails attribute value.
 void setDelegateGlobals(List<AccountDelegateGlobalDetail> delegateGlobals)
          Sets the delegateGlobals attribute value.
 void setDocumentNumber(String documentNumber)
           
 void setModel(AccountDelegateModel loadModel)
           
 void setModelChartOfAccountsCode(String loadModelChartOfAccountsCode)
           
 void setModelName(String loadModelName)
           
 void setModelOrganizationCode(String loadModelOrganizationCode)
           
protected  LinkedHashMap toStringMapper()
           
 
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
addNote, afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeInsert, beforeUpdate, beforeUpdate, deleteNote, getAttachmentService, getBoNote, getBoNotes, getExtension, getNoteService, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isAutoIncrementSet, isBoNotesSupport, isNewCollectionRecord, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setAutoIncrementSet, setBoNotes, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber, supportsBoNotes
 
Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase
prepareForWorkflow, toString, toStringBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kns.bo.BusinessObject
prepareForWorkflow
 

Constructor Detail

AccountDelegateGlobal

public AccountDelegateGlobal()
Constructs a DelegateGlobal.java.

Method Detail

addAccount

public void addAccount(AccountGlobalDetail accountGlobalDetail)
This method adds a single AccountGlobalDetail instance to the list. If one is already present in the list with the same chartCode and accountNumber, then this new one will not be added.

Parameters:
accountGlobalDetail - - populated AccountGlobalDetail instance

getAccount

public AccountGlobalDetail getAccount(String chartCode,
                                      String accountNumber)
This method retrieves the specific AccountGlobalDetail object that corresponds to your requested chartCode and accountNumber (or a null object if there is no match).

Parameters:
chartCode -
accountNumber -
Returns:
returns the AccountGlobalDetail instance matching the chartCode & accountNumber passed in, or Null if none match

generateDeactivationsToPersist

public List<org.kuali.rice.kns.bo.PersistableBusinessObject> generateDeactivationsToPersist()
Specified by:
generateDeactivationsToPersist in interface org.kuali.rice.kns.bo.GlobalBusinessObject
See Also:
org.kuali.rice.kns.document.GlobalBusinessObject#getGlobalChangesToDelete()

generateGlobalChangesToPersist

public List<org.kuali.rice.kns.bo.PersistableBusinessObject> generateGlobalChangesToPersist()
Specified by:
generateGlobalChangesToPersist in interface org.kuali.rice.kns.bo.GlobalBusinessObject
See Also:
org.kuali.rice.kns.document.GlobalBusinessObject#applyGlobalChanges(org.kuali.rice.kns.bo.BusinessObject)

toStringMapper

protected LinkedHashMap toStringMapper()
Specified by:
toStringMapper in class org.kuali.rice.kns.bo.BusinessObjectBase
See Also:
BusinessObjectBase.toStringMapper()

getDocumentNumber

public String getDocumentNumber()
Specified by:
getDocumentNumber in interface org.kuali.rice.kns.bo.GlobalBusinessObject
See Also:
org.kuali.rice.kns.document.GlobalBusinessObject#getDocumentNumber()

setDocumentNumber

public void setDocumentNumber(String documentNumber)
Specified by:
setDocumentNumber in interface org.kuali.rice.kns.bo.GlobalBusinessObject
See Also:
org.kuali.rice.kns.document.GlobalBusinessObject#setDocumentNumber(java.lang.String)

getAccountGlobalDetails

public final List<AccountGlobalDetail> getAccountGlobalDetails()
Gets the accountGlobalDetails attribute.

Returns:
Returns the accountGlobalDetails.

setAccountGlobalDetails

public final void setAccountGlobalDetails(List<AccountGlobalDetail> accountGlobalDetails)
Sets the accountGlobalDetails attribute value.

Parameters:
accountGlobalDetails - The accountGlobalDetails to set.

getDelegateGlobals

public final List<AccountDelegateGlobalDetail> getDelegateGlobals()
Gets the delegateGlobals attribute.

Returns:
Returns the delegateGlobals.

setDelegateGlobals

public final void setDelegateGlobals(List<AccountDelegateGlobalDetail> delegateGlobals)
Sets the delegateGlobals attribute value.

Parameters:
delegateGlobals - The delegateGlobals to set.

isPersistable

public boolean isPersistable()
Specified by:
isPersistable in interface org.kuali.rice.kns.bo.GlobalBusinessObject
See Also:
org.kuali.rice.kns.document.GlobalBusinessObject#isPersistable()

getModelName

public String getModelName()

setModelName

public void setModelName(String loadModelName)

getModelChartOfAccountsCode

public String getModelChartOfAccountsCode()

setModelChartOfAccountsCode

public void setModelChartOfAccountsCode(String loadModelChartOfAccountsCode)

getModelOrganizationCode

public String getModelOrganizationCode()

setModelOrganizationCode

public void setModelOrganizationCode(String loadModelOrganizationCode)

getModel

public AccountDelegateModel getModel()

setModel

public void setModel(AccountDelegateModel loadModel)

getAllDetailObjects

public List<? extends org.kuali.rice.kns.bo.GlobalBusinessObjectDetail> getAllDetailObjects()
Specified by:
getAllDetailObjects in interface org.kuali.rice.kns.bo.GlobalBusinessObject

linkEditableUserFields

public void linkEditableUserFields()
Specified by:
linkEditableUserFields in interface org.kuali.rice.kns.bo.PersistableBusinessObject
Overrides:
linkEditableUserFields in class org.kuali.rice.kns.bo.PersistableBusinessObjectBase

buildListOfDeletionAwareLists

public List buildListOfDeletionAwareLists()
Specified by:
buildListOfDeletionAwareLists in interface org.kuali.rice.kns.bo.PersistableBusinessObject
Overrides:
buildListOfDeletionAwareLists in class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
See Also:
PersistableBusinessObjectBase.buildListOfDeletionAwareLists()


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