2020-10-12 13:04:01 +02:00
|
|
|
package org.gcube.portlets.user.geoportaldataentry.client;
|
|
|
|
|
2020-12-01 18:15:13 +01:00
|
|
|
/**
|
2022-03-04 16:44:51 +01:00
|
|
|
* The Class ProjectFormCard.
|
2020-12-01 18:15:13 +01:00
|
|
|
*
|
2022-03-04 16:44:51 +01:00
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
2020-12-01 18:15:13 +01:00
|
|
|
*
|
2022-03-04 16:44:51 +01:00
|
|
|
* Mar 4, 2022
|
2020-12-01 18:15:13 +01:00
|
|
|
*/
|
2022-03-04 16:44:51 +01:00
|
|
|
public class ProjectFormCard {
|
2022-03-03 18:44:21 +01:00
|
|
|
|
2020-10-12 13:04:01 +02:00
|
|
|
private String key;
|
2022-03-04 16:44:51 +01:00
|
|
|
private String title; //is the profile title (read from geoportal config)
|
2020-10-12 13:04:01 +02:00
|
|
|
private Integer order;
|
|
|
|
private boolean internalRepeatibleForm;
|
2020-12-01 18:15:13 +01:00
|
|
|
private Integer maxFormRepeatability;
|
2022-03-03 18:44:21 +01:00
|
|
|
private Integer minFormRepeatability;
|
|
|
|
|
2020-12-01 18:15:13 +01:00
|
|
|
/**
|
2022-03-04 16:44:51 +01:00
|
|
|
* Instantiates a new project form card.
|
2020-12-01 18:15:13 +01:00
|
|
|
*
|
2022-03-03 18:44:21 +01:00
|
|
|
* @param key the key
|
|
|
|
* @param title the title
|
|
|
|
* @param order the order
|
2020-12-01 18:15:13 +01:00
|
|
|
* @param internalRepeatibleForm the internal repeatible form
|
2022-03-04 16:44:51 +01:00
|
|
|
* @param minFormRepeatability the min form repeatability
|
2022-03-03 18:44:21 +01:00
|
|
|
* @param maxFormRepeatability the max form repeatability
|
2020-12-01 18:15:13 +01:00
|
|
|
*/
|
2022-03-04 16:44:51 +01:00
|
|
|
public ProjectFormCard(String key, String title, int order, boolean internalRepeatibleForm,
|
2022-03-03 18:44:21 +01:00
|
|
|
Integer minFormRepeatability, Integer maxFormRepeatability) {
|
2020-10-12 13:04:01 +02:00
|
|
|
this.key = key;
|
|
|
|
this.title = title;
|
|
|
|
this.order = order;
|
|
|
|
this.internalRepeatibleForm = internalRepeatibleForm;
|
2022-03-04 16:44:51 +01:00
|
|
|
this.minFormRepeatability = minFormRepeatability;
|
2020-12-01 18:15:13 +01:00
|
|
|
this.maxFormRepeatability = maxFormRepeatability;
|
2020-10-12 13:04:01 +02:00
|
|
|
}
|
|
|
|
|
2020-12-01 18:15:13 +01:00
|
|
|
/**
|
|
|
|
* Gets the key.
|
|
|
|
*
|
|
|
|
* @return the key
|
|
|
|
*/
|
2020-10-12 13:04:01 +02:00
|
|
|
public String getKey() {
|
|
|
|
return key;
|
|
|
|
}
|
|
|
|
|
2020-12-01 18:15:13 +01:00
|
|
|
/**
|
|
|
|
* Gets the title.
|
|
|
|
*
|
|
|
|
* @return the title
|
|
|
|
*/
|
2020-10-12 13:04:01 +02:00
|
|
|
public String getTitle() {
|
|
|
|
return title;
|
|
|
|
}
|
|
|
|
|
2020-12-01 18:15:13 +01:00
|
|
|
/**
|
|
|
|
* Gets the order.
|
|
|
|
*
|
|
|
|
* @return the order
|
|
|
|
*/
|
2020-10-12 13:04:01 +02:00
|
|
|
public Integer getOrder() {
|
|
|
|
return order;
|
|
|
|
}
|
2022-03-03 18:44:21 +01:00
|
|
|
|
2020-12-01 18:15:13 +01:00
|
|
|
/**
|
|
|
|
* Checks if is internal repeatible form.
|
|
|
|
*
|
|
|
|
* @return true, if is internal repeatible form
|
|
|
|
*/
|
2020-10-12 13:04:01 +02:00
|
|
|
public boolean isInternalRepeatibleForm() {
|
|
|
|
return internalRepeatibleForm;
|
|
|
|
}
|
2022-03-03 18:44:21 +01:00
|
|
|
|
2020-12-01 18:15:13 +01:00
|
|
|
/**
|
|
|
|
* Gets the max form repeatability.
|
|
|
|
*
|
|
|
|
* @return the max form repeatability
|
|
|
|
*/
|
|
|
|
public Integer getMaxFormRepeatability() {
|
|
|
|
return maxFormRepeatability;
|
|
|
|
}
|
2020-10-12 13:04:01 +02:00
|
|
|
|
2022-03-04 16:44:51 +01:00
|
|
|
/**
|
|
|
|
* Gets the min form repeatability.
|
|
|
|
*
|
|
|
|
* @return the min form repeatability
|
|
|
|
*/
|
2022-03-03 18:44:21 +01:00
|
|
|
public Integer getMinFormRepeatability() {
|
|
|
|
return minFormRepeatability;
|
|
|
|
}
|
|
|
|
|
2022-03-04 16:44:51 +01:00
|
|
|
/**
|
|
|
|
* Sets the min form repeatability.
|
|
|
|
*
|
|
|
|
* @param minFormRepeatability the new min form repeatability
|
|
|
|
*/
|
2022-03-03 18:44:21 +01:00
|
|
|
public void setMinFormRepeatability(Integer minFormRepeatability) {
|
|
|
|
this.minFormRepeatability = minFormRepeatability;
|
|
|
|
}
|
2020-10-12 13:04:01 +02:00
|
|
|
|
|
|
|
}
|