Search in sources :

Example 1 with UUIDListPropertyEditor

use of eu.etaxonomy.cdm.remote.editor.UUIDListPropertyEditor in project cdmlib by cybertaxonomy.

the class KmlController method initBinder.

@InitBinder
@Override
public void initBinder(WebDataBinder binder) {
    super.initBinder(binder);
    binder.registerCustomEditor(UuidList.class, new UUIDListPropertyEditor());
    binder.registerCustomEditor(DefinedTermBaseList.class, new TermBaseListPropertyEditor<MarkerType>(termService));
}
Also used : MarkerType(eu.etaxonomy.cdm.model.common.MarkerType) UUIDListPropertyEditor(eu.etaxonomy.cdm.remote.editor.UUIDListPropertyEditor) InitBinder(org.springframework.web.bind.annotation.InitBinder)

Example 2 with UUIDListPropertyEditor

use of eu.etaxonomy.cdm.remote.editor.UUIDListPropertyEditor in project cdmlib by cybertaxonomy.

the class ChecklistDemoController method initBinder.

/**
 * Helper method, which allows to convert strings directly into uuids.
 *
 * @param binder Special DataBinder for data binding from web request parameters to JavaBean objects.
 */
@InitBinder
public void initBinder(WebDataBinder binder) {
    binder.registerCustomEditor(UuidList.class, new UUIDListPropertyEditor());
    binder.registerCustomEditor(NamedArea.class, new TermBaseListPropertyEditor<>(termService));
    binder.registerCustomEditor(UUID.class, new UUIDEditor());
}
Also used : UUIDEditor(org.springframework.beans.propertyeditors.UUIDEditor) UUIDListPropertyEditor(eu.etaxonomy.cdm.remote.editor.UUIDListPropertyEditor) InitBinder(org.springframework.web.bind.annotation.InitBinder)

Example 3 with UUIDListPropertyEditor

use of eu.etaxonomy.cdm.remote.editor.UUIDListPropertyEditor in project cdmlib by cybertaxonomy.

the class CsvExportController method initBinder.

/**
 * Helper method, which allows to convert strings directly into uuids.
 *
 * @param binder Special DataBinder for data binding from web request parameters to JavaBean objects.
 */
@InitBinder
public void initBinder(WebDataBinder binder) {
    binder.registerCustomEditor(UuidList.class, new UUIDListPropertyEditor());
    // binder.registerCustomEditor(NamedArea.class, new NamedAreaPropertyEditor());
    binder.registerCustomEditor(UUID.class, new UUIDEditor());
}
Also used : UUIDEditor(org.springframework.beans.propertyeditors.UUIDEditor) UUIDListPropertyEditor(eu.etaxonomy.cdm.remote.editor.UUIDListPropertyEditor) InitBinder(org.springframework.web.bind.annotation.InitBinder)

Example 4 with UUIDListPropertyEditor

use of eu.etaxonomy.cdm.remote.editor.UUIDListPropertyEditor in project cdmlib by cybertaxonomy.

the class DescriptionListController method initBinder.

@InitBinder
@Override
public void initBinder(WebDataBinder binder) {
    super.initBinder(binder);
    binder.registerCustomEditor(DefinedTermBaseList.class, new TermBaseListPropertyEditor<>(termService));
    binder.registerCustomEditor(NamedAreaLevel.class, new TermBasePropertyEditor<>(termService));
    binder.registerCustomEditor(Rank.class, new TermBasePropertyEditor<>(termService));
    binder.registerCustomEditor(UuidList.class, new UUIDListPropertyEditor());
}
Also used : UUIDListPropertyEditor(eu.etaxonomy.cdm.remote.editor.UUIDListPropertyEditor) InitBinder(org.springframework.web.bind.annotation.InitBinder)

Example 5 with UUIDListPropertyEditor

use of eu.etaxonomy.cdm.remote.editor.UUIDListPropertyEditor in project cdmlib by cybertaxonomy.

the class DescriptionController method initBinder.

@InitBinder
@Override
public void initBinder(WebDataBinder binder) {
    super.initBinder(binder);
    binder.registerCustomEditor(UuidList.class, new UUIDListPropertyEditor());
    binder.registerCustomEditor(NamedAreaLevel.class, new NamedAreaLevelPropertyEditor());
    binder.registerCustomEditor(DefinedTermBaseList.class, new TermBaseListPropertyEditor<MarkerType>(termService));
}
Also used : NamedAreaLevelPropertyEditor(eu.etaxonomy.cdm.remote.editor.NamedAreaLevelPropertyEditor) MarkerType(eu.etaxonomy.cdm.model.common.MarkerType) UUIDListPropertyEditor(eu.etaxonomy.cdm.remote.editor.UUIDListPropertyEditor) InitBinder(org.springframework.web.bind.annotation.InitBinder)

Aggregations

UUIDListPropertyEditor (eu.etaxonomy.cdm.remote.editor.UUIDListPropertyEditor)13 InitBinder (org.springframework.web.bind.annotation.InitBinder)13 MarkerType (eu.etaxonomy.cdm.model.common.MarkerType)4 NamedAreaLevelPropertyEditor (eu.etaxonomy.cdm.remote.editor.NamedAreaLevelPropertyEditor)3 CdmTypePropertyEditor (eu.etaxonomy.cdm.remote.editor.CdmTypePropertyEditor)2 UUIDPropertyEditor (eu.etaxonomy.cdm.remote.editor.UUIDPropertyEditor)2 UUIDEditor (org.springframework.beans.propertyeditors.UUIDEditor)2 Feature (eu.etaxonomy.cdm.model.description.Feature)1 NamedAreaLevel (eu.etaxonomy.cdm.model.location.NamedAreaLevel)1 Rank (eu.etaxonomy.cdm.model.name.Rank)1 MatchModePropertyEditor (eu.etaxonomy.cdm.remote.editor.MatchModePropertyEditor)1 NamedAreaPropertyEditor (eu.etaxonomy.cdm.remote.editor.NamedAreaPropertyEditor)1 RankPropertyEditor (eu.etaxonomy.cdm.remote.editor.RankPropertyEditor)1 RectanglePropertyEditor (eu.etaxonomy.cdm.remote.editor.RectanglePropertyEditor)1 RegistrationStatusList (eu.etaxonomy.cdm.remote.editor.term.RegistrationStatusList)1