org.kuali.kfs.coa.businessobject
Class Organization

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.kfs.coa.businessobject.Organization
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, 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 Organization
extends org.kuali.rice.krad.bo.PersistableBusinessObjectBase
implements org.kuali.rice.core.api.mo.common.active.Inactivatable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
Organization()
           
 
Method Summary
 boolean equals(Object obj)
          public String getOrganizationReviewHierarchy() { Properties params = new Properties(); params.put("methodToCall", "start"); params.put("docFormKey", ""); params.put("lookupableImplServiceName", "RuleBaseValuesLookupableImplService"); params.put("fin_coa_cd", this.chartOfAccountsCode); params.put("org_cd", this.organizationCode); params.put("conversionFields", ""); params.put("returnLocation", ""); params.put("active_ind", "true"); params.put("ruleTemplateName", "KualiOrgReviewTemplate"); return UrlFactory.parameterizeUrl(SpringContext.getBean(KualiConfigurationService.class).getPropertyString(KFSConstants.WORKFLOW_URL_KEY) + "/Lookup.do", params); } /** Implementing equals so Org will behave reasonably in a hashed datastructure.
 Chart getChartOfAccounts()
          Gets the chartOfAccounts attribute.
 String getChartOfAccountsCode()
          Gets the chartOfAccountsCode attribute.
 String getCodeAndDescription()
           
 String getOrganizationCode()
          Gets the organizationCode attribute.
 String getOrganizationName()
          Gets the organizationName attribute.
 int hashCode()
           
 boolean isActive()
           
 void setActive(boolean active)
           
 void setChartOfAccounts(Chart chartOfAccounts)
          Deprecated.  
 void setChartOfAccountsCode(String chartOfAccountsCode)
          Sets the chartOfAccountsCode attribute value.
 void setOrganizationCode(String organizationCode)
          Sets the organizationCode attribute.
 void setOrganizationName(String organizationName)
          Sets the organizationName attribute.
protected  LinkedHashMap toStringMapper()
           
 
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.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

Organization

public Organization()
Method Detail

getOrganizationCode

public String getOrganizationCode()
Gets the organizationCode attribute.

Returns:
Returns the organizationCode

setOrganizationCode

public void setOrganizationCode(String organizationCode)
Sets the organizationCode attribute.

Parameters:
organizationCode - The organizationCode to set.

getOrganizationName

public String getOrganizationName()
Gets the organizationName attribute.

Returns:
Returns the organizationName

setOrganizationName

public void setOrganizationName(String organizationName)
Sets the organizationName attribute.

Parameters:
organizationName - The organizationName to set.

getChartOfAccounts

public Chart getChartOfAccounts()
Gets the chartOfAccounts attribute.

Returns:
Returns the chartOfAccounts

setChartOfAccounts

public void setChartOfAccounts(Chart chartOfAccounts)
Deprecated. 

Sets the chartOfAccounts attribute.

Parameters:
chartOfAccounts - The chartOfAccounts to set.

getChartOfAccountsCode

public String getChartOfAccountsCode()
Gets the chartOfAccountsCode attribute.

Returns:
Returns the chartOfAccountsCode.

setChartOfAccountsCode

public void setChartOfAccountsCode(String chartOfAccountsCode)
Sets the chartOfAccountsCode attribute value.

Parameters:
chartOfAccountsCode - The chartOfAccountsCode to set.

toStringMapper

protected LinkedHashMap toStringMapper()
See Also:
org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()

equals

public boolean equals(Object obj)
public String getOrganizationReviewHierarchy() { Properties params = new Properties(); params.put("methodToCall", "start"); params.put("docFormKey", ""); params.put("lookupableImplServiceName", "RuleBaseValuesLookupableImplService"); params.put("fin_coa_cd", this.chartOfAccountsCode); params.put("org_cd", this.organizationCode); params.put("conversionFields", ""); params.put("returnLocation", ""); params.put("active_ind", "true"); params.put("ruleTemplateName", "KualiOrgReviewTemplate"); return UrlFactory.parameterizeUrl(SpringContext.getBean(KualiConfigurationService.class).getPropertyString(KFSConstants.WORKFLOW_URL_KEY) + "/Lookup.do", params); } /** Implementing equals so Org will behave reasonably in a hashed datastructure.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getCodeAndDescription

public String getCodeAndDescription()
Returns:
Returns the code and description in format: xx - xxxxxxxxxxxxxxxx

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

isActive

public boolean isActive()
Specified by:
isActive in interface org.kuali.rice.core.api.mo.common.active.Inactivatable

setActive

public void setActive(boolean active)


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