org.broadleafcommerce.common.presentation
Annotation Type AdminPresentationToOneLookup


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface AdminPresentationToOneLookup

Author:
Jeff Fischer

Optional Element Summary
 String[] customCriteria
          Optional - only required if you need to specially handle crud operations for this specific collection on the server
 String lookupDisplayProperty
          Optional - only required if the display property is other than "name"
 String lookupParentDataSourceName
          Optional - only required if the parent datasource from the admin tool used to bind this lookup is other than the default top-level datasource.
 String targetDynamicFormDisplayId
          Optional - only required if the dynamic form used to display the lookup in the admin tool is other than the default top-level form.
 boolean useServerSideInspectionCache
          Optional - only required if you want to make the field ignore caching
 

lookupDisplayProperty

public abstract String lookupDisplayProperty

Optional - only required if the display property is other than "name"

Specify the property on a lookup class that should be used as the value to display to the user in a form in the admin tool UI

Returns:
the property on the lookup class containing the displayable value
Default:
"name"

lookupParentDataSourceName

public abstract String lookupParentDataSourceName

Optional - only required if the parent datasource from the admin tool used to bind this lookup is other than the default top-level datasource. Can only be used in conjunction with SupportedFieldType.ADDITIONAL_FOREIGN_KEY.

Specify an alternate datasource to bind the lookup to. This is an advanced setting.

Returns:
alternate datasource for lookup binding
Default:
""

targetDynamicFormDisplayId

public abstract String targetDynamicFormDisplayId

Optional - only required if the dynamic form used to display the lookup in the admin tool is other than the default top-level form. Can only be used in conjunction with SupportedFieldType.ADDITIONAL_FOREIGN_KEY.

Specify an alternate DynamicFormDisplay instance in which to show the lookup form item. This is an advanced setting.

Returns:
alternate DynamicFormDisplay for lookup display
Default:
""

customCriteria

public abstract String[] customCriteria

Optional - only required if you need to specially handle crud operations for this specific collection on the server

Custom string values that will be passed to the server during Read and Inspect operations on the entity lookup. This allows for the creation of a custom persistence handler to handle both inspect and fetch phase operations. Presumably, one could use this to somehow filter the list of records shown when the user interacts with the lookup widget in the admin UI.

Returns:
the custom string array to pass to the server during CRUD operations
Default:
{}

useServerSideInspectionCache

public abstract boolean useServerSideInspectionCache

Optional - only required if you want to make the field ignore caching

Explicitly specify whether or not this field will use server-side caching during inspection

Returns:
whether or not this field uses caching
Default:
true


Copyright © 2013. All Rights Reserved.