#23784 List, Reload, Searching and Ordering facilities migrated
This commit is contained in:
parent
70723f9878
commit
68b5548718
|
@ -11,9 +11,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||
|
||||
- [#22684] Migrated to geoportal-data-entry-app configuration for UCD
|
||||
- [#23587] GUI model viewer passed to tree data structure
|
||||
- Moved to maven-portal-bom v3.7.0[-SNAPSHOT]
|
||||
- [#22883] Integrated with (the new) geoportal-client (>= 1.1.0-SNAPSHOT)
|
||||
- [#22685] Migrated to geoportal-data-list configuration for UCD
|
||||
- [#23784] Migrated list and reload, searching and ordering functionalities
|
||||
- Moved to maven-portal-bom v3.7.0[-SNAPSHOT]
|
||||
|
||||
## [v2.2.1] - 2022-06-29
|
||||
|
||||
|
|
|
@ -26,6 +26,8 @@ public class ConstantsGeoPortalDataEntryApp {
|
|||
public static final String HOURS_MINUTES_SEPARATOR = ConstantsMPFormBuilder.HOURS_MINUTES_SEPARATOR;
|
||||
|
||||
public static final int MAX_COLUMN_DISPLAYED_IN_THE_TABLE = 5;
|
||||
|
||||
public static final int PAGINATION_SIZE = 20;
|
||||
|
||||
/**
|
||||
* The Enum RECORD_TYPE.
|
||||
|
|
|
@ -117,7 +117,7 @@ public class GeoPortalDataEntryApp implements EntryPoint {
|
|||
|
||||
private UserRights myRights = null;
|
||||
|
||||
private LoaderIcon loaderApplication = new LoaderIcon("Loading Application... please wait");
|
||||
private LoaderIcon loaderApplication = new LoaderIcon("Loading Application facilities... please wait");
|
||||
|
||||
private LoaderIcon loaderConfigurations = new LoaderIcon("Loading Configurations... please wait");
|
||||
|
||||
|
@ -824,7 +824,7 @@ public class GeoPortalDataEntryApp implements EntryPoint {
|
|||
CacheSearchingFilterParametersFromConfig seachingFilterParameters = geoportalCaches
|
||||
.getFilterParametersForProfileId(getListOfRecordsEvent.getProfileID());
|
||||
|
||||
if (searchingFilter == null || getListOfRecordsEvent.isOnApplicationInit()) {
|
||||
if (searchingFilter == null || getListOfRecordsEvent.isOnApplicationInit() || getListOfRecordsEvent.isReloadFilteringParameters()) {
|
||||
mainTabPanel.setFilteringParameters(seachingFilterParameters);
|
||||
searchingFilter = mainTabPanel.getCurrentSearchingFilter();
|
||||
}
|
||||
|
|
|
@ -311,11 +311,12 @@ public class GeonaMainTabPanel extends Composite {
|
|||
|
||||
@Override
|
||||
public void onClick(ClickEvent event) {
|
||||
Window.alert("buttonReloadConcessioni MUST BE REVISITED");
|
||||
/*
|
||||
* appManagerBus.fireEvent(new GetListOfRecordsEvent(RECORD_TYPE.CONCESSIONE,
|
||||
* getCurrentSortFilter()));
|
||||
*/
|
||||
|
||||
UseCaseDescriptorDV singleUCD = getSelectProjectType();
|
||||
if (singleUCD != null) {
|
||||
appManagerBus.fireEvent(new GetListOfRecordsEvent(false, singleUCD.getName(),
|
||||
singleUCD.getProfileID(), getCurrentSearchingFilter(), true));
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
|
|
@ -8,6 +8,7 @@ import org.gcube.application.geoportalcommon.shared.SearchingFilter;
|
|||
import org.gcube.application.geoportalcommon.shared.geoportal.DocumentDV;
|
||||
import org.gcube.application.geoportalcommon.shared.geoportal.config.ItemFieldDV;
|
||||
import org.gcube.application.geoportalcommon.shared.geoportal.project.ProjectDV;
|
||||
import org.gcube.portlets.user.geoportaldataentry.client.ConstantsGeoPortalDataEntryApp;
|
||||
import org.gcube.portlets.user.geoportaldataentry.client.GeoPortalDataEntryApp;
|
||||
import org.gcube.portlets.user.geoportaldataentry.client.ui.table.ItemsTable;
|
||||
import org.gcube.portlets.user.geoportaldataentry.client.ui.table.SortedCellTable;
|
||||
|
@ -40,7 +41,7 @@ import com.google.gwt.view.client.SingleSelectionModel;
|
|||
public class GeonaRecordsPaginatedView {
|
||||
|
||||
private static final int ITEM_START_INDEX = 0;
|
||||
private static final int ITEMS_PER_PAGE = 10;
|
||||
private static final int ITEMS_PER_PAGE = ConstantsGeoPortalDataEntryApp.PAGINATION_SIZE;
|
||||
private VerticalPanel vPanel = new VerticalPanel();
|
||||
private FlowPanel pagerPanel = new FlowPanel();
|
||||
private Boolean initClassFirstRangeChanged = false;
|
||||
|
|
|
@ -400,6 +400,15 @@ public class GeoportalDataEntryServiceImpl extends RemoteServiceServlet implemen
|
|||
List<ResultDocumentDV> toReturnList = ConvertToDataValueObjectModel.toListResultDocument(projects);
|
||||
|
||||
searchedData.setData(toReturnList);
|
||||
|
||||
|
||||
// TODO BUGGY WORKAROUND. BLOCKED BY #22487 IT MUST BE REMOVE AFTER THE QUERY COUNT
|
||||
// AND LIST.SIZE BY QUERY WILL BE AVAILABLE IN THE SERVICE
|
||||
if (filter.getConditions() != null) {
|
||||
searchedData.setTotalItems(toReturnList.size());
|
||||
int totalItems = toReturnList.size();
|
||||
searchedData.setTotalItems(totalItems);
|
||||
}
|
||||
|
||||
if (totalProjectForProfile == limit || totalProjectForProfile == 0) {
|
||||
LOG.debug("Page completed returning " + totalProjectForProfile + " projects");
|
||||
|
|
Loading…
Reference in New Issue