Package com.znize.platform.model.bean
Class SimpleHierarchyEntityBean<T extends Hierarchy>
- 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.bean.HierarchyEntityBackingBean<T>
-
- com.znize.platform.model.bean.SimpleHierarchyEntityBean<T>
-
- Type Parameters:
T- Hierarchy
- All Implemented Interfaces:
EntityExportHandler<T>,EntityImportHandler,MenuNodeActionHandler,java.io.Serializable,java.lang.Cloneable
public class SimpleHierarchyEntityBean<T extends Hierarchy> extends HierarchyEntityBackingBean<T>
SimpeHierarchyEntity backing Bean that uses IdRule table to store id rules for hierarchy types.- Since:
- 1.2
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleHierarchyEntityBean.HierarchyDescriptorHierarchy Type Descriptor-
Nested classes/interfaces inherited from class com.znize.platform.model.bean.HierarchyEntityBackingBean
HierarchyEntityBackingBean.Reference, HierarchyEntityBackingBean.ReferencedEditPermission
-
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 inherited from class com.znize.platform.model.bean.HierarchyEntityBackingBean
PROPERTY_ID_RULE, PROPERTY_LEVEL, UI_INSERT_HIERARCHY_SUBCLASS_PROPERTIES_BEGIN, UI_INSERT_HIERARCHY_SUBCLASS_PROPERTIES_END
-
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 SimpleHierarchyEntityBean()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddHierarchyDescriptorMapping(java.util.Map<java.lang.Class,SimpleHierarchyEntityBean.HierarchyDescriptor> mapping)Add the HierarchyDescriptor map, merging to existing HierarchyDescriptor(s) if any.protected java.lang.StringgetHierarchyIdRule()Get Hierarchy Id rule.protected java.util.List<HierarchyEntityBackingBean.Reference>getReferences()Get the list of reference this hierarchyEntity is referenced.-
Methods inherited from class com.znize.platform.model.bean.HierarchyEntityBackingBean
addMenuNodes, addRowCommandMenuNodes, buildViewConfig, clickEntityRowCommand, clickMenuNode, getChildHierarchyEntities, getChildHierarchyIdLength, getChildHierarchyIdLength, getChildrenCountLimit, getChildrenQueryCriteria, getConflictActionSelectItems, getDescendantHierarchyEntities, getDescendantsQueryCriteria, getEntityImportValidator, getEntityNameResolver, getHierarchyComparator, getHierarchyIdLength, getHierarchyIdRule, getHierarchyPathQueryCriteria, getLevel, getParentHierarchy, getPropertyDynamicValue, getPropertySelectItems, getQueryCriterion, getReferencedEditPermission, getRootHierarchyIdKey, hasPropertyAnnotations, importEntitiesCompleted, isHasDeletePermission, isLeafRequired, isOpenEntitySelectDialogEnabled, postRefreshEntityPropertyModel, postRefreshViewAfterCommit, postRefreshViewAfterCommitEntityList, prepareEntity, prepareEntityListCreateEntity, validate
-
Methods inherited from class com.znize.platform.model.bean.EntityBackingBean
addCommonMenuNodes, addContextMenuNodes, addGroupByProperties, addHiddenPropertyQueryElements, addHiddenPropertyQueryElements, addMenuNodes, addOrderByProperties, addPrerequisites, afterBeanFlowNavigate, applyChange, applyChange, authorizeAccess, beanFlowNavigate, beforeBeanFlowNavigate, beforeImportEntities, beforeLoadInitialPage, buildEntityListViewConfig, buildEntityTabView, buildFormBean, buildFormBean, buildQueryTabView, 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, getActionDescriptor, getAutoCompleteQueryElement, getAutoCompleteQueryProperties, getAutoCompleteSuggestions, getBeanFlowFormDesignList, getBeanFlowHistory, getChangedMessages, getCheckImageURL, getCommandConfirmMessage, getCommandHandler, getCommandIcon, getCommandIcon, getCommandVisibleName, 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, 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, getQueryCommandInfo, getQueryJoinGraph, getQueryPropertyValue, getQueryResultPageSizeSelectItems, getQueryResultTitle, getQueryResultTransformer, getQueryResultViewEntityType, getRowStyleClass, getShowEntityRowCount, getShowTypeAfterCommit, getStatisticsProperties, getSystemEntityImportDescriptor, getTitle, getTransactionListener, getTypeDescriptorForSelectDialog, getTypeName, getViewConfig, getVisibleQueryRestrictionProperties, handlePartialBehaviorEvent, handlePartialBehaviorEvent, importEntities, importEntities, 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, 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, postRefreshViewAfterRollback, postRemove, postRemoveEntityList, preMerge, 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, createDialogContent, 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, isOpenInputDialog, 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
-
-
-
-
Method Detail
-
addHierarchyDescriptorMapping
public static void addHierarchyDescriptorMapping(java.util.Map<java.lang.Class,SimpleHierarchyEntityBean.HierarchyDescriptor> mapping)
Add the HierarchyDescriptor map, merging to existing HierarchyDescriptor(s) if any.In case of merging for a hierarchy type, add references to the existing HierarchyDescriptor, and keep its existing defaultIdRule not changed.
- Parameters:
mapping- a map from hierarchy type to its HierarchyDescriptor.
-
getHierarchyIdRule
protected java.lang.String getHierarchyIdRule() throws SystemExceptionDescription copied from class:HierarchyEntityBackingBeanGet Hierarchy Id rule. see @Link com.znize.platform.entity.IdRule- Specified by:
getHierarchyIdRulein classHierarchyEntityBackingBean<T extends Hierarchy>- Returns:
- id rule that is a string of digits.
- Throws:
SystemException- throw if an error occurs in retrieving id rule.
-
getReferences
protected java.util.List<HierarchyEntityBackingBean.Reference> getReferences()
Description copied from class:HierarchyEntityBackingBeanGet the list of reference this hierarchyEntity is referenced.- Specified by:
getReferencesin classHierarchyEntityBackingBean<T extends Hierarchy>- Returns:
- a list of reference
-
-