Class PersistencePackageRequest
java.lang.Object
org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest
A DTO class used to seed a persistence package.
- Author:
- Andre Azzolini (apazzolini)
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ForeignKey>protected AdornedTargetListprotected Stringprotected Stringprotected Entityprotected List<FilterAndSortCriteria>protected Longprotected Longprotected ForeignKeyprotected booleanprotected booleanprotected booleanprotected booleanprotected Longprotected Integerprotected MapStructureprotected Integerprotected Integerprotected Stringprotected OperationTypesprotected Integerprotected Booleanprotected Stringprotected SectionCrumb[]protected Stringprotected Stringprotected Integerprotected Map<String,PersistencePackageRequest> protected PersistencePackageRequest.Typeprotected Integerprotected boolean -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalForeignKey(ForeignKey foreignKey) addCustomCriteria(String customCriteria) addCustomCriteria(String[] customCriteriaList) addFilterAndSortCriteria(List<FilterAndSortCriteria> filterAndSortCriteria) addFilterAndSortCriteria(FilterAndSortCriteria filterAndSortCriteria) addFilterAndSortCriteria(FilterAndSortCriteria[] filterAndSortCriteria) addSubRequest(String infoPropertyName, PersistencePackageRequest subRequest) static PersistencePackageRequestadorned()static PersistencePackageRequestfromMetadata(FieldMetadata md, List<SectionCrumb> sectionCrumbs) Creates a semi-populate PersistencePacakageRequest based on the specified Metadata.String[]Intended for usage with other thanFetchType.DEFAULT.Intended for usage with other thanFetchType.DEFAULT.Intended for usage with other thanFetchType.DEFAULT.getMsg()The number of records to retrieve in a single page.Whether or not this represents a fetch request from the presentation layer.Returns the entity that should be checked for security purposes.getType()Intended for usage with other thanFetchType.DEFAULT.booleanbooleanbooleanTells if thisPersistentPackageRequestis a lookup that will end up folderedbooleanbooleanbooleanstatic PersistencePackageRequestmap()voidsetAdditionalForeignKeys(ForeignKey[] additionalForeignKeys) voidsetAddOperationInspect(boolean addOperationInspect) voidsetAdornedList(AdornedTargetList adornedList) voidsetCeilingEntityClassname(String ceilingEntityClassname) voidsetConfigKey(String configKey) voidsetCustomCriteria(String[] customCriteria) voidvoidsetFilterAndSortCriteria(FilterAndSortCriteria[] filterAndSortCriteria) voidsetFirstId(Long firstId) voidsetFolderedLookup(boolean isFolderedLookup) voidsetFolderId(Long folderId) voidsetForeignKey(ForeignKey foreignKey) voidsetIsTreeCollection(boolean isTreeCollection) voidvoidsetLowerCount(Integer lowerCount) voidsetMapStructure(MapStructure mapStructure) voidsetMaxIndex(Integer maxIndex) voidsetMaxResults(Integer maxResults) voidvoidsetOperationTypesOverride(OperationTypes operationTypesOverride) voidsetPageSize(Integer pageSize) voidsetPresentationFetch(Boolean presentationFetch) voidsetRequestingEntityName(String requestingEntityName) voidsetSectionCrumbs(SectionCrumb[] sectionCrumbs) voidsetSectionEntityField(String sectionEntityField) voidsetSecurityCeilingEntityClassname(String securityCeilingEntityClassname) voidsetStartIndex(Integer startIndex) voidsetSubRequests(Map<String, PersistencePackageRequest> subRequests) voidvoidsetUpdateLookupType(boolean isUpdateLookupType) voidsetUpperCount(Integer upperCount) voidsetValidateUnsubmittedProperties(boolean validateUnsubmittedProperties) static PersistencePackageRequeststandard()withAdornedList(AdornedTargetList adornedList) withCeilingEntityClassname(String className) withConfigKey(String configKey) withCustomCriteria(String[] customCriteria) withEntity(Entity entity) withFilterAndSortCriteria(FilterAndSortCriteria[] filterAndSortCriteria) withFirstId(Long firstId) withFolderId(Long folderId) withForeignKey(ForeignKey foreignKey) withIsFolderedLookup(boolean isFolderedLookup) withIsUpdateLookupType(boolean isUpdateLookupType) withLastId(Long lastId) withLowerCount(Integer lowerCount) withMapStructure(MapStructure mapStructure) withMaxIndex(Integer maxIndex) withMaxResults(Integer maxResults) withPageSize(Integer pageSize) withPresentationFetch(Boolean presentationFetch) withRequestingEntityName(String requestingEntityName) withSectionCrumbs(List<SectionCrumb> sectionCrumbs) withSectionEntityField(String sectionEntityField) withSecurityCeilingEntityClassname(String className) withStartIndex(Integer startIndex) withUpperCount(Integer upperCount)
-
Field Details
-
type
-
ceilingEntityClassname
-
securityCeilingEntityClassname
-
configKey
-
adornedList
-
mapStructure
-
entity
-
foreignKey
-
startIndex
-
maxIndex
-
maxResults
-
lastId
-
firstId
-
upperCount
-
lowerCount
-
pageSize
-
presentationFetch
-
sectionCrumbs
-
sectionEntityField
-
requestingEntityName
-
msg
-
subRequests
-
validateUnsubmittedProperties
protected boolean validateUnsubmittedProperties -
isUpdateLookupType
protected boolean isUpdateLookupType -
isTreeCollection
protected boolean isTreeCollection -
isAddOperationInspect
protected boolean isAddOperationInspect -
isFolderedLookup
protected boolean isFolderedLookup -
folderId
-
operationTypesOverride
-
additionalForeignKeys
-
customCriteria
-
filterAndSortCriteria
-
-
Constructor Details
-
PersistencePackageRequest
public PersistencePackageRequest() -
PersistencePackageRequest
-
-
Method Details
-
standard
-
adorned
-
map
-
fromMetadata
public static PersistencePackageRequest fromMetadata(FieldMetadata md, List<SectionCrumb> sectionCrumbs) Creates a semi-populate PersistencePacakageRequest based on the specified Metadata. This initializer will copy over persistence perspective items from the metadata as well as set the appropriate OperationTypes as specified in the annotation/xml configuration for the field.- Parameters:
md-- Returns:
- the newly created PersistencePackageRequest
-
withType
-
withCeilingEntityClassname
-
withSecurityCeilingEntityClassname
-
withForeignKey
-
withConfigKey
-
withFilterAndSortCriteria
public PersistencePackageRequest withFilterAndSortCriteria(FilterAndSortCriteria[] filterAndSortCriteria) -
withAdornedList
-
withMapStructure
-
withCustomCriteria
-
withEntity
-
withStartIndex
-
withMaxIndex
-
withMaxResults
-
withLastId
-
withFirstId
-
withUpperCount
-
withLowerCount
-
withPageSize
-
withPresentationFetch
-
withSectionCrumbs
-
withSectionEntityField
-
withRequestingEntityName
-
withMsg
-
withIsUpdateLookupType
-
withIsFolderedLookup
-
withFolderId
-
addAdditionalForeignKey
-
addSubRequest
public PersistencePackageRequest addSubRequest(String infoPropertyName, PersistencePackageRequest subRequest) -
addCustomCriteria
-
addCustomCriteria
-
addFilterAndSortCriteria
public PersistencePackageRequest addFilterAndSortCriteria(FilterAndSortCriteria filterAndSortCriteria) -
addFilterAndSortCriteria
public PersistencePackageRequest addFilterAndSortCriteria(FilterAndSortCriteria[] filterAndSortCriteria) -
addFilterAndSortCriteria
public PersistencePackageRequest addFilterAndSortCriteria(List<FilterAndSortCriteria> filterAndSortCriteria) -
removeFilterAndSortCriteria
-
clearFilterAndSortCriteria
-
hasSortCriteria
public boolean hasSortCriteria() -
getCustomCriteria
-
setCustomCriteria
-
getAdditionalForeignKeys
-
setAdditionalForeignKeys
-
getFilterAndSortCriteria
-
setFilterAndSortCriteria
-
getForeignKey
-
setForeignKey
-
getType
-
setType
-
getSecurityCeilingEntityClassname
Returns the entity that should be checked for security purposes. If no value is defined explicitly, returns the value forgetCeilingEntityClassname().- Returns:
-
setSecurityCeilingEntityClassname
-
getCeilingEntityClassname
-
setCeilingEntityClassname
-
getConfigKey
-
setConfigKey
-
getAdornedList
-
setAdornedList
-
getMapStructure
-
setMapStructure
-
getEntity
-
setEntity
-
getOperationTypesOverride
-
setOperationTypesOverride
-
getStartIndex
-
setStartIndex
-
getMaxIndex
-
setMaxIndex
-
getMaxResults
-
setMaxResults
-
getSectionCrumbs
-
setSectionCrumbs
-
getSectionEntityField
-
setSectionEntityField
-
getRequestingEntityName
-
setRequestingEntityName
-
getMsg
-
setMsg
-
getSubRequests
-
setSubRequests
-
isValidateUnsubmittedProperties
public boolean isValidateUnsubmittedProperties() -
setValidateUnsubmittedProperties
public void setValidateUnsubmittedProperties(boolean validateUnsubmittedProperties) -
isUpdateLookupType
public boolean isUpdateLookupType() -
setUpdateLookupType
public void setUpdateLookupType(boolean isUpdateLookupType) -
isTreeCollection
public boolean isTreeCollection() -
setIsTreeCollection
public void setIsTreeCollection(boolean isTreeCollection) -
isAddOperationInspect
public boolean isAddOperationInspect() -
setAddOperationInspect
public void setAddOperationInspect(boolean addOperationInspect) -
getLastId
Intended for usage with other thanFetchType.DEFAULT. Denotes the last primary key value of the previous page of records.- Returns:
-
setLastId
-
getFirstId
Intended for usage with other thanFetchType.DEFAULT. Denotes the first primary key value of the previous page or records. -
setFirstId
-
getUpperCount
Intended for usage with other thanFetchType.DEFAULT. Denotes the cumulative total count of the previous page of records. For example, if this was the second page of records and each page contained 5 records, the upperCount would be 10.- Returns:
-
setUpperCount
-
getLowerCount
Intended for usage with other thanFetchType.DEFAULT. Denotes the cumulative starting count of the previous page of records. For example, if this was the second page of records and each page contained 5 records, the lowerCount would be 5. -
setLowerCount
-
getPageSize
The number of records to retrieve in a single page. If null, defaults to the "admin.default.max.results" property value.- Returns:
-
setPageSize
-
getPresentationFetch
Whether or not this represents a fetch request from the presentation layer.- Returns:
-
setPresentationFetch
-
isFolderedLookup
public boolean isFolderedLookup()Tells if thisPersistentPackageRequestis a lookup that will end up foldered- Returns:
- true if this is a foldered lookup, false otherwise
-
setFolderedLookup
public void setFolderedLookup(boolean isFolderedLookup) -
getFolderId
-
setFolderId
-