Class GlAccountLogic
java.lang.Object
com.echothree.util.server.control.BaseLogic
com.echothree.model.control.accounting.server.logic.GlAccountLogic
-
Method Summary
Modifier and TypeMethodDescriptioncreateGlAccount
(ExecutionErrorAccumulator eea, String glAccountName, GlAccount parentGlAccount, GlAccountType glAccountType, GlAccountClass glAccountClass, GlAccountCategory glAccountCategory, GlResourceType glResourceType, Currency currency, Boolean isDefault, Language language, String description, BasePK createdBy) void
deleteGlAccount
(ExecutionErrorAccumulator eea, GlAccount glAccount, BasePK deletedBy) getDefaultGlAccountByCategory
(ExecutionErrorAccumulator eea, GlAccount[] glAccounts, String glAccountCategoryName, String unknownDefaultGlAccountError) Obtain a GL Account fitting within a given GL Account Category.getGlAccountByName
(ExecutionErrorAccumulator eea, String glAccountName) getGlAccountByName
(ExecutionErrorAccumulator eea, String glAccountName, EntityPermission entityPermission) getGlAccountByNameForUpdate
(ExecutionErrorAccumulator eea, String glAccountName) getGlAccountByUniversalSpec
(ExecutionErrorAccumulator eea, GlAccountUniversalSpec universalSpec, boolean allowDefault, GlAccountCategory glAccountCategory) getGlAccountByUniversalSpec
(ExecutionErrorAccumulator eea, GlAccountUniversalSpec universalSpec, boolean allowDefault, GlAccountCategory glAccountCategory, EntityPermission entityPermission) getGlAccountByUniversalSpecForUpdate
(ExecutionErrorAccumulator eea, GlAccountUniversalSpec universalSpec, boolean allowDefault, GlAccountCategory glAccountCategory) static GlAccountLogic
void
updateGlAccountFromValue
(GlAccountDetailValue glAccountDetailValue, BasePK updatedBy) Methods inherited from class com.echothree.util.server.control.BaseLogic
addExecutionError, addSecurityMessage, getEntityInstanceByBaseEntity, getEntityInstanceByBasePK, getSession, handleExecutionError, handleSecurityMessage, hasExecutionErrors
-
Method Details
-
getInstance
-
createGlAccount
public GlAccount createGlAccount(ExecutionErrorAccumulator eea, String glAccountName, GlAccount parentGlAccount, GlAccountType glAccountType, GlAccountClass glAccountClass, GlAccountCategory glAccountCategory, GlResourceType glResourceType, Currency currency, Boolean isDefault, Language language, String description, BasePK createdBy) -
getGlAccountByName
public GlAccount getGlAccountByName(ExecutionErrorAccumulator eea, String glAccountName, EntityPermission entityPermission) -
getGlAccountByName
-
getGlAccountByNameForUpdate
-
getGlAccountByUniversalSpec
public GlAccount getGlAccountByUniversalSpec(ExecutionErrorAccumulator eea, GlAccountUniversalSpec universalSpec, boolean allowDefault, GlAccountCategory glAccountCategory, EntityPermission entityPermission) -
getGlAccountByUniversalSpec
public GlAccount getGlAccountByUniversalSpec(ExecutionErrorAccumulator eea, GlAccountUniversalSpec universalSpec, boolean allowDefault, GlAccountCategory glAccountCategory) -
getGlAccountByUniversalSpecForUpdate
public GlAccount getGlAccountByUniversalSpecForUpdate(ExecutionErrorAccumulator eea, GlAccountUniversalSpec universalSpec, boolean allowDefault, GlAccountCategory glAccountCategory) -
getDefaultGlAccountByCategory
public GlAccount getDefaultGlAccountByCategory(ExecutionErrorAccumulator eea, GlAccount[] glAccounts, String glAccountCategoryName, String unknownDefaultGlAccountError) Obtain a GL Account fitting within a given GL Account Category.- Parameters:
eea
- The ExecutionErrorAccumulator that any errors that are encountered should be added to.glAccounts
- A list of GlAccounts that will be drawn from to find a result.glAccountCategoryName
- If no glAccount is found in glAccounts, this will be used to find a default.unknownDefaultGlAccountError
- If no default is found, this error will be added to the ExecutionErrorAccumulator.- Returns:
- The glAccount to use, unless null.
-
updateGlAccountFromValue
-
deleteGlAccount
-