Package com.znize.platform.model.bus
Class MonthCloseBean<T extends MonthClose,D extends java.lang.Comparable>
- java.lang.Object
-
- com.znize.platform.model.bean.Component
-
- com.znize.platform.model.bean.BackingBean
-
- com.znize.platform.model.bean.PersistenceDataBackingBean<T>
-
- com.znize.platform.model.bean.EntityBackingBean<T>
-
- com.znize.platform.model.bus.MonthCloseBean<T,D>
-
- Type Parameters:
T- MonthClose typeD- associated business(transaction) date type such as LocalDate, LocalDateTime and java.util.Date
- All Implemented Interfaces:
EntityExportHandler<T>,EntityImportHandler,MenuNodeActionHandler,java.io.Serializable,java.lang.Cloneable
public abstract class MonthCloseBean<T extends MonthClose,D extends java.lang.Comparable> extends EntityBackingBean<T>
MonthClose bean.- Since:
- 5.6
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMonthCloseBean.MonthCloseReportBean<T extends PersistenceEntity>MonthClose report bean has a wrapped bean and error flag that indicates whether the wrapped bean is showing an error or information.-
Nested classes/interfaces inherited from class com.znize.platform.model.bean.EntityBackingBean
EntityBackingBean.OrderByProperty, EntityBackingBean.PropertyQueryCriterion, EntityBackingBean.ShowTypeAfterCommit
-
Nested classes/interfaces inherited from class com.znize.platform.model.bean.PersistenceDataBackingBean
PersistenceDataBackingBean.GeneratedBeanPageContent, PersistenceDataBackingBean.HelpPathInfo
-
Nested classes/interfaces inherited from class com.znize.platform.model.bean.BackingBean
BackingBean.MessageLocation
-
Nested classes/interfaces inherited from class com.znize.platform.model.bean.Component
Component.ComponentVisitor
-
Nested classes/interfaces inherited from interface com.znize.platform.model.entimport.EntityImportHandler
EntityImportHandler.HandleResult<T extends PersistenceEntity>
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringUI_INSERT_MC_SUBCLASS_PROPERTIESUI insert name for subclass properties-
Fields inherited from class com.znize.platform.model.bean.EntityBackingBean
groupByProperties, orderByProperties, PROPERTY_PAGE_NUMBER, PROPERTY_SUB_NUMBER
-
Fields inherited from class com.znize.platform.model.bean.PersistenceDataBackingBean
COMMAND_EMAIL, COMMAND_HELP, COMMAND_OPEN_QUERY_FORM, COMMAND_PRINT_VIEW, entityAttrsMap, entityDataSource, entityPropertyList, entityPropertyListData, footerMenuBean, generatedBeans, hasCreatePermission, hasDeletePermission, hasEditPermission, hasViewPermission, headerMenuBean, initialViewConfig
-
Fields inherited from class com.znize.platform.model.bean.BackingBean
containerBean, hidden, messages, styleClass, title, viewConfig
-
Fields inherited from class com.znize.platform.model.bean.Component
parentComponent, uiView
-
-
Constructor Summary
Constructors Constructor Description MonthCloseBean()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddRowCommandMenuNodes(EntityListBackingBean<T> entityListBackingBean, MenuBean menuBean)Add menu nodes to the row command menu of the entity list backing bean.protected PageNavigationclickEntityRowCommand(EntityListBackingBean<T> entityListBackingBean, T accountingMonthClose, EntityProperty<T> property, MenuNode menuNode)Handle entity row command action for entity list view.PageNavigationclickMenuNode(MenuNode menuNode)Handle the action of the menu nodevoidcreateDialogContent(DialogBean dialogBean, MenuNode menuNode)Create dialog content for user to input data as the argument of the menu node command to be executed.protected ActionDescriptorgetActionDescriptor(ActionDescriptor.Type type, java.lang.String command)Create an ActionDescriptor with type and commandprotected java.lang.Class<? extends MonthClose>[]getDependentMonthCloseTypes()Dependency.protected abstract DgetEarliestTransactionDate()Get the earliest transaction date for the module.protected java.time.LocalDateTimegetEarliestTransactionLocalDateTime()Get the earliest transaction localDateTime for the module.TemporalPeriodgetEarliestUnclosedMonthDatePeriod(boolean timestamp, MonthClose valueToInitialize)Get the earliest unclosed month after closed months.static <T extends MonthClose>
TemporalPeriodgetEarliestUnclosedMonthDatePeriod(java.lang.Class<T> monthCloseType, boolean timestamp)Get the earliest unclosed month after closed months.static <T extends MonthClose>
java.lang.StringgetEarliestUnclosedMonthDatePeriod(java.lang.Class<T> monthCloseType, DataAccessUnit dataAccessUnit)Get the first unclosed month after closed months that can be used as input such as 2010-M5.<R extends PersistenceEntity>
EntityNameResolver<T,R>getEntityNameResolver()Get the EntityNameResolver that is used to get display name of an entity.protected java.util.List<MonthCloseBean.MonthCloseReportBean>getMonthCloseReportBeans(T entity, ContainerBean containerBean)Get monthClose report beans.java.lang.ObjectgetPropertyDynamicValue(PersistenceDataBackingBean<T> backingBean, T entity, EntityProperty<T> property)Get dynamic value of the property.booleanhasPropertyAnnotations()A dummy method to add property annotations.protected booleanisHasDeletePermission(PersistenceDataBackingBean<T> backingBean, T entity)Whether current user has the delete permission on the entity under the condition that the user has delete permission by access control.booleanisOpenInputDialog(MenuNode menuNode)Whether to open dialog to input data for the menuNode.protected booleanisShowMonthCloseReportEnabled()Whether to show the reporting about the MonthClose?protected TprepareEntity(T entity)Prepare the entity so that it can be usable.voidvalidate()Validate the entity of backing bean.static <T extends MonthClose>
voidvalidateUnclosedMonth(java.lang.String period, boolean earliestRequired, java.lang.Class<T> monthCloseType, DataAccessUnit dataAccessUnit)Validate the period that must be a month type and not closed, and check whether it is the earliest unclosed month if required.-
Methods inherited from class com.znize.platform.model.bean.EntityBackingBean
addCommonMenuNodes, addContextMenuNodes, addGroupByProperties, addHiddenPropertyQueryElements, addHiddenPropertyQueryElements, addMenuNodes, addMenuNodes, addOrderByProperties, addPrerequisites, afterBeanFlowNavigate, applyChange, applyChange, authorizeAccess, beanFlowNavigate, beforeBeanFlowNavigate, beforeImportEntities, beforeLoadInitialPage, buildEntityListViewConfig, buildEntityTabView, buildFormBean, buildFormBean, buildQueryTabView, buildViewConfig, calculateStatistics, checkPermissionBeforeCreate, checkQuantityQuotaBeforeCreate, clearCache, clearFormBeanPropertyValueFlags, clickCommonMenuNode, clickContextMenuNode, clickPropertyMenuNode, clickPropertyValue, convertPropertyInputDialogData, create, create, createDialogContent, createEntitiesElement, createEntityCaptchaProperty, createEntityElement, createEntityRowCommandProperty, delete, delete, editModeChanged, enableEdit, entitiesDeletedFromMemory, entityI18NCommitted, execBeanFlowNavigationCommand, exportEntities, exportEntitiesElementCreated, exportEntitiesToDirectory, exportEntitiesToFile, exportEntitiesToFile, fillEntityData, formBeanPropertyEntitiesToBeDeleted, generateNormativeIdDuringPrepareEntity, getAutoCompleteQueryElement, getAutoCompleteQueryProperties, getAutoCompleteSuggestions, getBeanFlowFormDesignList, getBeanFlowHistory, getChangedMessages, getCheckImageURL, getCommandConfirmMessage, getCommandHandler, getCommandIcon, getCommandIcon, getCommandVisibleName, getConflictActionSelectItems, getCreatedMessages, getCurrencyCode, getCurrentModeType, getDataAccessUnit, getDataAccessUnit, getDataFromEntityDataSource, getDefaultPrimaryProperties, getDefaultQueryOrders, getDefaultTitle, getDomEventDynamicHandler, getDynamicHelpMessage, getDynamicRenderStyle, getDynamicSelectItems, getDynamicSelectPropertyQueryElements, getEmbeddedStatisticsEntityRowLabel, getEntity, getEntityAssociatedWithFormBean, getEntityAttrComparator, getEntityAttrs, getEntityAttrsCacheKey, getEntityAttrsFromCache, getEntityBackingBean, getEntityCaptchaProperty, getEntityDeletionDescriptor, getEntityFetchGraph, getEntityFetchGraph, getEntityFileIdentifier, getEntityFilePath, getEntityImportValidator, getEntityListFormBeans, getEntityName, getEntityTypeAndName, getEntityTypeForPropertyInputDialog, getExportAsExcelSheetName, getFileNameExtension, getFileUploadOptions, getFormDesign, getFormDesignEntityType, getFormDesignEntityType, getFormEnctype, getGroupByProperties, getGroupByPropertySelectItems, getHelper, getHiddenPropertyQueryElements, getHiddenQueryRestrictionProperties, getIdRule, getImpliedStyleClass, getKeywordEntityProperty, getManageModeAfterCommit, getOneEntity, getOrderByAscSelectItems, getOrderByProperties, getOrderByPropertySelectItems, getOwningTenant, getPersistedEntityCount, getPositionToAddRows, getProgressDescriptor, getProgressDescriptor, getProgressDescriptor, getPropertiesToShowSelectItems, getPropertyPartialBehaviorSupport, getPropertySelectItems, getQueryCommandInfo, getQueryCriterion, getQueryJoinGraph, getQueryPropertyValue, getQueryResultPageSizeSelectItems, getQueryResultTitle, getQueryResultTransformer, getQueryResultViewEntityType, getRowStyleClass, getShowEntityRowCount, getShowTypeAfterCommit, getStatisticsProperties, getSystemEntityImportDescriptor, getTitle, getTransactionListener, getTypeDescriptorForSelectDialog, getTypeName, getViewConfig, getVisibleQueryRestrictionProperties, handlePartialBehaviorEvent, handlePartialBehaviorEvent, importEntities, importEntities, importEntitiesCompleted, initEntitiesToInsert, isAddChildEntityTypeToContextMenu, isApplyChangeRenderable, isAutoSetEntityRowSequenceNumbers, isCaptchaRequired, isCaptchaRequired, isCaptchaRequired, isCheckRowCommandPermissionsForEntities, isCreateSupported, isCreating, isDeleteEnabled, isDynamicHelpRenderable, isEditEnabled, isEmbeddedStatisticsEntity, isEmpty, isEntityHidden, isEntityListCreateInPlace, isEntityListEditInPlace, isEntityListInsertBeforeEnabled, isEntityListMoveUpDownEnabled, isEntityListNavigatableToEntity, isFormBeanPropertyEntitiesSaveOnDelete, isFormDesignAutoEnabled, isFormDesignSupported, isFormDesignSupported, isGroupBySelectRenderable, isHasActivatePermission, isHasCreatePermission, isHasDeletePermission, isHasEditPermission, isHasEditPermission, isHasPermission, isHasPermission, isHasViewPermission, isHasViewPermission, isLoginRequiredForCreate, isNextEntityCommandRenderable, isOpenDialogEnabledForNavigateToEntity, isOpenEntitySelectDialogEnabled, isOrderBySelectRenderable, isOverrideDataAccessUnitByTenantAttribute, isParentComponentRowEntityView, isPersistDataRequested, isPersistDataRequested, isPreviousEntityCommandRenderable, isPrintViewMenuNodeRenderable, isPropertyMenuNodeRenderable, isPropertyRenderable, isPropertyShowing, isPropertyValueRenderable, isQueryView, isReadOnly, isRemoveFormBeanEntity, isRequiredAnnotationUsedForQueryView, isUpdateFormBeanPropertyValueOnDelete, isVerifyBeforeApplyChangeRequired, isVerifyBeforeCreateRequired, loadEntityFromFile, nextEntity, pageRetrievedFromPersistence, pageSizeAdjusted, paginationChanged, postMerge, postPersist, postProcessStatistics, postRefreshDataModel, postRefreshEntityListPropertyModel, postRefreshEntityPropertyModel, postRefreshViewAfterCommit, postRefreshViewAfterCommitEntityList, postRefreshViewAfterRollback, postRemove, postRemoveEntityList, preMerge, prepareEntityListCreateEntity, prePersist, preRefreshColumnListModel, preRefreshEntityPropertyModel, preRemove, preReturnEdit, previousEntity, propertyValueChanged, refreshDataModel, refreshEntityPropertyModel, refreshMenuBeans, resolveDataDescriptor, resolveRegularExpression, setEntity, setEntity, setGroupByProperties, setHiddenPropertyQueryElements, setOrderByProperties, setQueryResultTransformer, showDefaultEmptyEntity, statisticsCalculated, storeEntityToFile, updateInitialViewConfig, useMinAvailableId, validateEntityDataSource, verifyShowingMode, walkComponentTree
-
Methods inherited from class com.znize.platform.model.bean.PersistenceDataBackingBean
addEmailMenuNode, addEntityCollectionProperty, addEntityFormBeanProperty, addEntityFormBeanProperty, addEntityProperty, addEntityProperty, addEntityProperty, addEntityPropertyAfter, addEntityPropertyBefore, addGeneratedBean, addGeneratedBean, addMenuNode, addMultitenantProperty, addPrintViewMenuNode, addPropertyRenderTarget, addPropertyRenderTarget, addPropertyRenderTargets, addPropertyRenderTargets, authorizeAccessEntityType, buildViewConfig, cacheEntityAttrs, callLifecycleListenerAfterPhase, callLifecycleListenerBeforePhase, canUserAccessEntityType, checkAvailability, checkAvailabilityAfterValidation, clearGeneratedBeans, clearInvalidUserInput, createHelpMenuNode, getBeanLocation, getCachedEntityAttrs, getContainerRenderRegions, getCurrentDeviceType, getDataDescriptor, getDefaultCommandMenuNode, getDomEventDynamicHandler, getEntityBackingBean, getEntityBackingBean, getEntityDataSource, getEntityFormBeanProperties, getEntityFormBeanProperty, getEntityProperties, getEntityProperties, getEntityProperties, getEntityPropertiesOfType, getEntityProperty, getEntityProperty, getEntityProperty, getEntityPropertyIndex, getEntityPropertyList, getEntityPropertyList, getEntityPropertyListData, getEntityPropertyMap, getEntityType, getErrorSupplementalMessages, getFlattenedEntityProperties, getFooterMenuBean, getFooterMenuViewConfig, getFormBean, getGeneratedBeans, getHeaderMenuBean, getHeaderMenuViewConfig, getHelpPathInfo, getInitialViewConfig, getMenuBean, getMenuNode, getMenuNodeFactory, getOverriddenCreatePermission, getOverriddenDeletePermission, getOverriddenEditPermission, getOverriddenPermission, getOverriddenViewPermission, getPersistableEntityType, getPropertyCurrentEntitiesOnPathTo, getPropertyEntityType, getQueryDescriptor, getQueryHints, getTypeDisplayName, getTypeName, groupEntityProperties, groupEntityProperties, groupEntityProperties, groupEntityProperties, hasInvalidUserInputs, isAllowDeleteInManageMode, isCreateEnabled, isEditEnabled, isEmailMenuNodeRenderable, isHasPermission, isHelpMenuNodeRenderable, isMenuNodeRenderable, isReadOnly, isUserHasPermission, isValueReserved, isVisibleAfterInit, printView, refreshDataModel, refreshDataModel, refreshEntityPropertyModel, removeEntityProperty, removeEntityPropertyGroup, removeEntityPropertyInvalidUserInput, removeInvalidUserInput, removeValidationErrorMessages, sendEmail, setBackingBean, setContainerBean, setEntityDataSource, setEntityPropertyList, setEntityType, setFooterMenuBean, setHeaderMenuBean, setInitialViewConfig, setPropertyCurrentEntitiesOnPathTo, setReadOnly, setViewConfig, visitEntityProperties
-
Methods inherited from class com.znize.platform.model.bean.BackingBean
addAsRenderTarget, addMessage, addMessage, addMessages, asVisitTarget, buildComponentDisplayTitle, getAccessControlAccessor, getBackingBeanContext, getCalendar, getContainerBean, getContainerDialogBean, getCurrentDate, getDisplayMessage, getDisplayTitle, getEnclosingBean, getEnclosingEntityProperty, getLocale, getMessage, getName, getOnFormSubmitJS, getProgressProperty, getRenewableSubscriptionsQueryCriteria, getRequestHelper, getRequestResult, getRootEnclosingBean, getSelfRenderRegions, getStyleClass, getStyleClass, getTimeZone, getTimeZoneId, handleError, hasMessages, isContainerDialogBean, isHidden, isManageMode, isMobile, isPanelVisible, isProgressDialogOpened, isRenderable, removeFromPageContent, setEnclosingPropertyEditEnabled, setHidden, setManageMode, setMessage, setMessage, setMessage, setName, setStyleClass, setTitle
-
Methods inherited from class com.znize.platform.model.bean.Component
existPathToAncestorType, getAuthenticatedUser, getCalcContext, getChildOfClosestAncestor, getClientId, getClosestAncestor, getComponentsOnPathTo, getCountryFromCurrentLocale, getCurrencyCode, getCurrentLocalDateTime, getDataAccessUnit, getDataConverter, getDisplayValue, getInstanceUser, getParameters, getParameters, getParentComponent, getPathTo, getPersistenceEntityManager, getPersistenceEntityManager, getPersistenceEntityManager, getPersistenceEntityManager, getResourceBundle, getRootComponent, getString, getUiView, getUiView, getYearStartDate, isAncestorComponentOf, isEntityI18NEnabled, isInPageContent, setClientId, setParentComponent, setUiView
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.znize.platform.model.entimport.EntityImportHandler
getEntityType
-
Methods inherited from interface com.znize.platform.model.menu.MenuNodeActionHandler
getContainerBean
-
-
-
-
Field Detail
-
UI_INSERT_MC_SUBCLASS_PROPERTIES
protected static final java.lang.String UI_INSERT_MC_SUBCLASS_PROPERTIES
UI insert name for subclass properties- See Also:
- Constant Field Values
-
-
Method Detail
-
hasPropertyAnnotations
public boolean hasPropertyAnnotations()
Description copied from class:EntityBackingBeanA dummy method to add property annotations. Default is empty, no properties.- Overrides:
hasPropertyAnnotationsin classEntityBackingBean<T extends MonthClose>- Returns:
- true. return value is ignored.
-
prepareEntity
protected T prepareEntity(T entity) throws SystemException
Description copied from class:EntityBackingBeanPrepare the entity so that it can be usable. Called before refreshing property model and showing to user. Subclass should override this method to initialize property values if any.- Overrides:
prepareEntityin classEntityBackingBean<T extends MonthClose>- Parameters:
entity- the entity of this backing bean- Returns:
- prepared entity
- Throws:
BackingBeanException- throw if backingBean related error occursSystemException- throw if any other error occurs
-
getEarliestTransactionDate
protected abstract D getEarliestTransactionDate()
Get the earliest transaction date for the module.- Returns:
- earliest date
-
getEarliestTransactionLocalDateTime
protected final java.time.LocalDateTime getEarliestTransactionLocalDateTime()
Get the earliest transaction localDateTime for the module.- Returns:
- earliest date
-
getPropertyDynamicValue
public java.lang.Object getPropertyDynamicValue(PersistenceDataBackingBean<T> backingBean, T entity, EntityProperty<T> property) throws SystemException
Description copied from class:EntityBackingBeanGet dynamic value of the property. Only backing bean knows its value.- Overrides:
getPropertyDynamicValuein classEntityBackingBean<T extends MonthClose>- Parameters:
backingBean- entity or entity list backing beanentity- the entity of the property.property- the property for which to get value- Returns:
- property value. default is null.
- Throws:
SystemException- throw if an error occurs
-
getEntityNameResolver
public <R extends PersistenceEntity> EntityNameResolver<T,R> getEntityNameResolver()
Description copied from class:EntityBackingBeanGet the EntityNameResolver that is used to get display name of an entity.- Overrides:
getEntityNameResolverin classEntityBackingBean<T extends MonthClose>- Returns:
- EntityNameResolver object. Default entity name is built from UniqueKeys annotation. If there is no UniqueKeys annotation, entity uniqueKey property defaults to Utility.getIdProperty(Class).
- See Also:
UniqueKeys,UniqueKeyUtil.getUniqueKeyAndLabel(Class, String)
-
isHasDeletePermission
protected boolean isHasDeletePermission(PersistenceDataBackingBean<T> backingBean, T entity) throws SystemException
Description copied from class:EntityBackingBeanWhether current user has the delete permission on the entity under the condition that the user has delete permission by access control.- Overrides:
isHasDeletePermissionin classEntityBackingBean<T extends MonthClose>- Parameters:
backingBean- backing bean that contains the entity.entity- entity to be deleted.- Returns:
- true if user has delete permission, false otherwise
- Throws:
SystemException- throw if an error occurs in evaluating access control
-
getDependentMonthCloseTypes
protected java.lang.Class<? extends MonthClose>[] getDependentMonthCloseTypes()
Dependency. Close dependent modules first before closing this module.- Returns:
- month close types that need to be closed first.
-
validate
public void validate() throws SystemExceptionDescription copied from class:EntityBackingBeanValidate the entity of backing bean. It is called before search, going to the verify mode, creating or saving changes of the entity in persistence.validate those properties whose validations are delayed(validation is skipped during model update).
Validate normative Id and verify the uniqueness of primary key. For form bean properties, save the values in the form beans into the properties.
In addition to value validation, it can be any logic. For example, calculate total, change the values of related entities.
- Overrides:
validatein classEntityBackingBean<T extends MonthClose>- Throws:
InvalidValueException- throw if any property value is invalidSystemException- throw if any other error occurs
-
getEarliestUnclosedMonthDatePeriod
public TemporalPeriod getEarliestUnclosedMonthDatePeriod(boolean timestamp, MonthClose valueToInitialize)
Get the earliest unclosed month after closed months.- Parameters:
timestamp- whether the date period is timestamp with hour and minute. If valueToInitialize is not null, timestamp should be false.valueToInitialize- if not null, initialize it as the earliest unclosed month.- Returns:
- LocalDateTimePeriod if timestamp is true, or LocalDatePeriod instance otherwise
-
getEarliestUnclosedMonthDatePeriod
public static <T extends MonthClose> TemporalPeriod getEarliestUnclosedMonthDatePeriod(java.lang.Class<T> monthCloseType, boolean timestamp)
Get the earliest unclosed month after closed months.- Parameters:
monthCloseType- MonthClose typetimestamp- whether the date period is timestamp with hour and minute.- Returns:
- date period
-
getEarliestUnclosedMonthDatePeriod
public static <T extends MonthClose> java.lang.String getEarliestUnclosedMonthDatePeriod(java.lang.Class<T> monthCloseType, DataAccessUnit dataAccessUnit) throws SystemException
Get the first unclosed month after closed months that can be used as input such as 2010-M5.- Parameters:
monthCloseType- MonthClose typedataAccessUnit- the DataAccessUnit for accessing entities- Returns:
- date period
- Throws:
SystemException
-
validateUnclosedMonth
public static <T extends MonthClose> void validateUnclosedMonth(java.lang.String period, boolean earliestRequired, java.lang.Class<T> monthCloseType, DataAccessUnit dataAccessUnit) throws SystemException
Validate the period that must be a month type and not closed, and check whether it is the earliest unclosed month if required.- Parameters:
period- the period to check such as 2012-M5.earliestRequired- whether the period must be the earliest unclosed monthmonthCloseType- monthClose typedataAccessUnit- the DataAccessUnit for accessing entities- Throws:
SystemException- throw if the period is not valid as requested.
-
isOpenInputDialog
public boolean isOpenInputDialog(MenuNode menuNode)
Description copied from interface:MenuNodeActionHandlerWhether to open dialog to input data for the menuNode.- Specified by:
isOpenInputDialogin interfaceMenuNodeActionHandler- Overrides:
isOpenInputDialogin classPersistenceDataBackingBean<T extends MonthClose>- Parameters:
menuNode- the menuNode to click- Returns:
- true if opening input dialog
-
isShowMonthCloseReportEnabled
protected boolean isShowMonthCloseReportEnabled()
Whether to show the reporting about the MonthClose?- Returns:
- true to show it, false otherwise
-
createDialogContent
public void createDialogContent(DialogBean dialogBean, MenuNode menuNode) throws SystemException
Description copied from class:PersistenceDataBackingBeanCreate dialog content for user to input data as the argument of the menu node command to be executed.- Specified by:
createDialogContentin interfaceMenuNodeActionHandler- Overrides:
createDialogContentin classPersistenceDataBackingBean<T extends MonthClose>- Parameters:
dialogBean- dialog container beanmenuNode- menu node clicked- Throws:
SystemException- throw if an error occurs in creating dialog content
-
clickMenuNode
public PageNavigation clickMenuNode(MenuNode menuNode) throws SystemException
Description copied from interface:MenuNodeActionHandlerHandle the action of the menu node- Specified by:
clickMenuNodein interfaceMenuNodeActionHandler- Overrides:
clickMenuNodein classEntityBackingBean<T extends MonthClose>- Parameters:
menuNode- the menu node clicked.- Returns:
- webPage
- Throws:
SystemException- throw if an error occurs in handling action
-
getActionDescriptor
protected ActionDescriptor getActionDescriptor(ActionDescriptor.Type type, java.lang.String command)
Description copied from class:EntityBackingBeanCreate an ActionDescriptor with type and command- Overrides:
getActionDescriptorin classEntityBackingBean<T extends MonthClose>- Parameters:
type- ActionDescriptor type such as create, delete, change.command- the more specific command, can be null- Returns:
- ActionDescriptor instance
-
addRowCommandMenuNodes
protected void addRowCommandMenuNodes(EntityListBackingBean<T> entityListBackingBean, MenuBean menuBean) throws SystemException
Description copied from class:EntityBackingBeanAdd menu nodes to the row command menu of the entity list backing bean. Subclasses should override this method to add row command menu nodes.- Overrides:
addRowCommandMenuNodesin classEntityBackingBean<T extends MonthClose>- Parameters:
entityListBackingBean- the entity list backing beanmenuBean- the row command menu bean to add menu nodes.- Throws:
SystemException- throw if an error occurs
-
clickEntityRowCommand
protected PageNavigation clickEntityRowCommand(EntityListBackingBean<T> entityListBackingBean, T accountingMonthClose, EntityProperty<T> property, MenuNode menuNode) throws SystemException
Description copied from class:EntityBackingBeanHandle entity row command action for entity list view.- Overrides:
clickEntityRowCommandin classEntityBackingBean<T extends MonthClose>- Parameters:
entityListBackingBean- entity list backing beanaccountingMonthClose- the entity that is related to the row menu node clicked.property- the row command property whose menu bean contains row menu nodes.menuNode- the row command menu node clicked- Returns:
- a PageNavigation
- Throws:
SystemException- throw if an error occurs
-
getMonthCloseReportBeans
protected java.util.List<MonthCloseBean.MonthCloseReportBean> getMonthCloseReportBeans(T entity, ContainerBean containerBean) throws SystemException
Get monthClose report beans. Subclass need to override this method to provide content that is a list of MonthCloseReportBean(s).- Parameters:
entity- MonthClosecontainerBean- the container bean of the returned MonthCloseReportBeans' wrapped beans.- Returns:
- a list of MonthCloseReportBean(s)
- Throws:
SystemException- throw if an error occurs
-
-