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 AdornedTargetList
protected String
protected String
protected Entity
protected List<FilterAndSortCriteria>
protected Long
protected Long
protected ForeignKey
protected boolean
protected boolean
protected boolean
protected boolean
protected Long
protected Integer
protected MapStructure
protected Integer
protected Integer
protected String
protected OperationTypes
protected Integer
protected Boolean
protected String
protected SectionCrumb[]
protected String
protected String
protected Integer
protected Map<String,
PersistencePackageRequest> protected PersistencePackageRequest.Type
protected Integer
protected 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 PersistencePackageRequest
adorned()
static PersistencePackageRequest
fromMetadata
(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
.boolean
boolean
boolean
Tells if thisPersistentPackageRequest
is a lookup that will end up folderedboolean
boolean
boolean
static PersistencePackageRequest
map()
void
setAdditionalForeignKeys
(ForeignKey[] additionalForeignKeys) void
setAddOperationInspect
(boolean addOperationInspect) void
setAdornedList
(AdornedTargetList adornedList) void
setCeilingEntityClassname
(String ceilingEntityClassname) void
setConfigKey
(String configKey) void
setCustomCriteria
(String[] customCriteria) void
void
setFilterAndSortCriteria
(FilterAndSortCriteria[] filterAndSortCriteria) void
setFirstId
(Long firstId) void
setFolderedLookup
(boolean isFolderedLookup) void
setFolderId
(Long folderId) void
setForeignKey
(ForeignKey foreignKey) void
setIsTreeCollection
(boolean isTreeCollection) void
void
setLowerCount
(Integer lowerCount) void
setMapStructure
(MapStructure mapStructure) void
setMaxIndex
(Integer maxIndex) void
setMaxResults
(Integer maxResults) void
void
setOperationTypesOverride
(OperationTypes operationTypesOverride) void
setPageSize
(Integer pageSize) void
setPresentationFetch
(Boolean presentationFetch) void
setRequestingEntityName
(String requestingEntityName) void
setSectionCrumbs
(SectionCrumb[] sectionCrumbs) void
setSectionEntityField
(String sectionEntityField) void
setSecurityCeilingEntityClassname
(String securityCeilingEntityClassname) void
setStartIndex
(Integer startIndex) void
setSubRequests
(Map<String, PersistencePackageRequest> subRequests) void
void
setUpdateLookupType
(boolean isUpdateLookupType) void
setUpperCount
(Integer upperCount) void
setValidateUnsubmittedProperties
(boolean validateUnsubmittedProperties) static PersistencePackageRequest
standard()
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 thisPersistentPackageRequest
is 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
-