|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.openadmin.web.service.FormBuilderServiceImpl
@Service(value="blFormBuilderService") public class FormBuilderServiceImpl
| Field Summary | |
|---|---|
protected AdminEntityService |
adminEntityService
|
protected AdminNavigationService |
navigationService
|
| Constructor Summary | |
|---|---|
FormBuilderServiceImpl()
|
|
| Method Summary | |
|---|---|
EntityForm |
buildAdornedListForm(AdornedTargetCollectionMetadata adornedMd,
AdornedTargetList adornedList,
String parentId)
Builds the EntityForm used in modal dialogs when adding items to adorned target collections. |
ListGrid |
buildCollectionListGrid(String containingEntityId,
Entity[] entities,
Property field,
String sectionKey)
Builds a list grid that is used to render a collection inline in an entity form. |
EntityForm |
buildEntityForm(ClassMetadata cmd)
Builds an EntityForm that has all of the appropriate fields set up without any values. |
EntityForm |
buildEntityForm(ClassMetadata cmd,
Entity entity)
Builds an EntityForm that has all of the appropriate fields set up along with the values for those fields from the given Entity. |
EntityForm |
buildEntityForm(ClassMetadata cmd,
Entity entity,
Map<String,Entity[]> collectionRecords)
Builds an EntityForm that has all of the appropriate fields set up along with the values for thsoe fields from the given Entity as well as all sub-collections of the given Entity that appear in the collectionRecords map. |
ListGrid |
buildMainListGrid(Entity[] entities,
ClassMetadata cmd,
String sectionKey)
Builds a list grid that is typically used at the top entity level to select an entity for modification. |
EntityForm |
buildMapForm(MapMetadata mapMd,
MapStructure mapStructure,
ClassMetadata cmd,
String parentId)
Builds the EntityForm used in modal dialogs when adding items to map collections. |
void |
copyEntityFormValues(EntityForm destinationForm,
EntityForm sourceForm)
Copies all values for fields from the destinationForm into the sourceForm. |
protected ListGrid |
createListGrid(String className,
List<Field> headerFields,
ListGrid.Type type,
Entity[] entities,
String sectionKey,
int order)
|
protected EntityForm |
createStandardEntityForm()
|
void |
populateAdornedEntityFormFields(EntityForm ef,
Entity entity,
AdornedTargetList adornedList)
Sets values for the necessary adorned fields on the EntityForm from the specified entity. |
void |
populateEntityFormFields(EntityForm ef,
Entity entity)
Sets values for all fields found on the EntityForm from the specified entity. |
void |
populateMapEntityFormFields(EntityForm ef,
Entity entity)
Sets values for the necessary map fields on the EntityForm from the specified entity. |
void |
removeNonApplicableFields(ClassMetadata cmd,
EntityForm entityForm,
String entityType)
Loops through all of the fields that are specified in given class metadata and removes fields that are not applicable for the given polymorphic entity type from the entity form. |
protected void |
setEntityFormFields(EntityForm ef,
List<Property> properties)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AdminEntityService adminEntityService
protected AdminNavigationService navigationService
| Constructor Detail |
|---|
public FormBuilderServiceImpl()
| Method Detail |
|---|
public ListGrid buildMainListGrid(Entity[] entities,
ClassMetadata cmd,
String sectionKey)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
FormBuilderService
buildMainListGrid in interface FormBuilderServiceServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
public ListGrid buildCollectionListGrid(String containingEntityId,
Entity[] entities,
Property field,
String sectionKey)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
FormBuilderService
buildCollectionListGrid in interface FormBuilderServiceServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
protected ListGrid createListGrid(String className,
List<Field> headerFields,
ListGrid.Type type,
Entity[] entities,
String sectionKey,
int order)
protected void setEntityFormFields(EntityForm ef,
List<Property> properties)
public void removeNonApplicableFields(ClassMetadata cmd,
EntityForm entityForm,
String entityType)
FormBuilderService
removeNonApplicableFields in interface FormBuilderServicepublic EntityForm buildEntityForm(ClassMetadata cmd)
FormBuilderService
buildEntityForm in interface FormBuilderService
public EntityForm buildEntityForm(ClassMetadata cmd,
Entity entity)
FormBuilderService
buildEntityForm in interface FormBuilderService
public EntityForm buildEntityForm(ClassMetadata cmd,
Entity entity,
Map<String,Entity[]> collectionRecords)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
FormBuilderService
buildEntityForm in interface FormBuilderServiceServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
public void populateEntityFormFields(EntityForm ef,
Entity entity)
FormBuilderService
populateEntityFormFields in interface FormBuilderService
public void populateAdornedEntityFormFields(EntityForm ef,
Entity entity,
AdornedTargetList adornedList)
FormBuilderService
populateAdornedEntityFormFields in interface FormBuilderService
public void populateMapEntityFormFields(EntityForm ef,
Entity entity)
FormBuilderService
populateMapEntityFormFields in interface FormBuilderService
public void copyEntityFormValues(EntityForm destinationForm,
EntityForm sourceForm)
FormBuilderService
copyEntityFormValues in interface FormBuilderService
public EntityForm buildAdornedListForm(AdornedTargetCollectionMetadata adornedMd,
AdornedTargetList adornedList,
String parentId)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
FormBuilderService
buildAdornedListForm in interface FormBuilderServiceServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
public EntityForm buildMapForm(MapMetadata mapMd,
MapStructure mapStructure,
ClassMetadata cmd,
String parentId)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
FormBuilderService
buildMapForm in interface FormBuilderServiceServiceException
com.gwtincubator.security.exception.ApplicationSecurityExceptionprotected EntityForm createStandardEntityForm()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||