Class PersistencePerspective
java.lang.Object
org.broadleafcommerce.openadmin.dto.PersistencePerspective
- All Implemented Interfaces:
Serializable
- Author:
- jfischer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ForeignKey[]protected String[]protected Stringprotected String[]protected String[]protected OperationTypesprotected Booleanprotected Booleanprotected Boolean -
Constructor Summary
ConstructorsConstructorDescriptionPersistencePerspective(OperationTypes operationTypes, String[] additionalNonPersistentProperties, ForeignKey[] additionalForeignKeys) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanString[]String[]Deprecated.String[]Deprecated.Deprecated.inthashCode()voidsetAdditionalForeignKeys(ForeignKey[] additionalForeignKeys) voidsetAdditionalNonPersistentProperties(String[] additionalNonPersistentProperties) voidsetConfigurationKey(String configurationKey) voidsetExcludeFields(String[] excludeManyToOneFields) Deprecated.voidsetIncludeFields(String[] includeManyToOneFields) Deprecated.voidsetOperationTypes(OperationTypes operationTypes) voidsetPersistencePerspectiveItems(Map<PersistencePerspectiveItemType, PersistencePerspectiveItem> persistencePerspectiveItems) voidsetPopulateToOneFields(Boolean populateToOneFields) Deprecated.voidsetShowArchivedFields(Boolean showArchivedFields) voidsetUseServerSideInspectionCache(Boolean useServerSideInspectionCache) toString()
-
Field Details
-
additionalNonPersistentProperties
-
additionalForeignKeys
-
persistencePerspectiveItems
protected Map<PersistencePerspectiveItemType,PersistencePerspectiveItem> persistencePerspectiveItems -
operationTypes
-
populateToOneFields
-
excludeFields
-
includeFields
-
configurationKey
-
showArchivedFields
-
useServerSideInspectionCache
-
-
Constructor Details
-
PersistencePerspective
public PersistencePerspective() -
PersistencePerspective
public PersistencePerspective(OperationTypes operationTypes, String[] additionalNonPersistentProperties, ForeignKey[] additionalForeignKeys)
-
-
Method Details
-
getAdditionalNonPersistentProperties
-
setAdditionalNonPersistentProperties
-
getAdditionalForeignKeys
-
setAdditionalForeignKeys
-
getOperationTypes
-
setOperationTypes
-
addPersistencePerspectiveItem
public void addPersistencePerspectiveItem(PersistencePerspectiveItemType type, PersistencePerspectiveItem item) -
getPersistencePerspectiveItems
public Map<PersistencePerspectiveItemType,PersistencePerspectiveItem> getPersistencePerspectiveItems() -
setPersistencePerspectiveItems
public void setPersistencePerspectiveItems(Map<PersistencePerspectiveItemType, PersistencePerspectiveItem> persistencePerspectiveItems) -
getPopulateToOneFields
Deprecated.Retrieves whether or not ManyToOne and OneToOne field boundaries will be traversed when retrieving and populating entity fields. Implementation should use the @AdminPresentationClass annotation instead.- Returns:
- Whether or not ManyToOne and OneToOne field boundaries will be crossed.
-
setPopulateToOneFields
Deprecated.Sets whether or not ManyToOne and OneToOne field boundaries will be traversed when retrieving and populating entity fields. Implementation should use the @AdminPresentationClass annotation instead. -
getExcludeFields
Deprecated.Retrieve the list of fields to exclude from the admin presentation. Implementations should use the excluded property of the AdminPresentation annotation instead, or use an AdminPresentationMergeOverride if re-enabling a Broadleaf field is desired. If multiple datasources point to the same entity, but different exclusion behavior is required, a custom persistence handler may be employed with different inspect method implementations to account for the variations.- Returns:
- list of fields to exclude from the admin
-
setExcludeFields
Deprecated.Set the list of fields to exclude from the admin presentation. Implementations should use the excluded property of the AdminPresentation annotation instead, or use an AdminPresentationMergeOverride if re-enabling a Broadleaf field is desired. If multiple datasources point to the same entity, but different exclusion behavior is required, a custom persistence handler may be employed with different inspect method implementations to account for the variations.- Parameters:
excludeManyToOneFields-
-
getIncludeFields
Deprecated.Get the list of fields to include in the admin presentation. Implementations should use excludeFields instead.- Returns:
- list of fields to include in the admin
-
setIncludeFields
Deprecated.Set the list of fields to include in the admin presentation. Implementations should use excludeFields instead.- Parameters:
includeManyToOneFields-
-
getConfigurationKey
-
setConfigurationKey
-
getShowArchivedFields
-
setShowArchivedFields
-
getUseServerSideInspectionCache
-
setUseServerSideInspectionCache
-
clonePersistencePerspective
-
toString
-
equals
-
hashCode
public int hashCode()
-