geoportal-data-entry-app/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/ProjectFormCard.java

124 lines
2.8 KiB
Java
Raw Normal View History

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 {
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;
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
*
* @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
* @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,
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;
}
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;
}
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
*/
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
*/
public void setMinFormRepeatability(Integer minFormRepeatability) {
this.minFormRepeatability = minFormRepeatability;
}
2020-10-12 13:04:01 +02:00
2022-07-05 15:51:43 +02:00
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("ProjectFormCard [key=");
builder.append(key);
builder.append(", title=");
builder.append(title);
builder.append(", order=");
builder.append(order);
builder.append(", internalRepeatibleForm=");
builder.append(internalRepeatibleForm);
builder.append(", maxFormRepeatability=");
builder.append(maxFormRepeatability);
builder.append(", minFormRepeatability=");
builder.append(minFormRepeatability);
builder.append("]");
return builder.toString();
}
2020-10-12 13:04:01 +02:00
}