updated the beans
This commit is contained in:
parent
06b8f1d8d3
commit
16c2e98f90
|
@ -5,72 +5,142 @@ import java.io.Serializable;
|
||||||
import com.google.gwt.user.client.rpc.IsSerializable;
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A ckan organization/group (you can check its nature by looking at getIsOrganization();) like bean with name and title
|
* The Class OrganizationBeanProfile.
|
||||||
* @author Costantino Perciante (costantino.perciante@isti.cnr.it)
|
*
|
||||||
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
||||||
|
*
|
||||||
|
* Feb 15, 2024
|
||||||
*/
|
*/
|
||||||
public class OrganizationBeanProfile implements Serializable, IsSerializable {
|
public class OrganizationBeanProfile implements Serializable, IsSerializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = -6566519399945530602L;
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = -2078766102599662775L;
|
||||||
private String title;
|
private String title;
|
||||||
private String name;
|
private String name;
|
||||||
private boolean isOrganization;
|
private boolean isOrganization;
|
||||||
private boolean propagateUp; // an item linked to this group has to be added on the whole hierarchy chain
|
private boolean propagateUp; // an item linked to this group has to be added on the whole hierarchy chain
|
||||||
|
|
||||||
public OrganizationBeanProfile(){
|
/**
|
||||||
|
* Instantiates a new organization bean profile.
|
||||||
|
*/
|
||||||
|
public OrganizationBeanProfile() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Instantiates a new organization bean profile.
|
||||||
|
*
|
||||||
|
* @param title the title
|
||||||
|
* @param name the name
|
||||||
|
* @param isOrganization the is organization
|
||||||
|
*/
|
||||||
public OrganizationBeanProfile(String title, String name, boolean isOrganization) {
|
public OrganizationBeanProfile(String title, String name, boolean isOrganization) {
|
||||||
super();
|
|
||||||
this.title = title;
|
this.title = title;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.isOrganization = isOrganization;
|
this.isOrganization = isOrganization;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Instantiates a new organization bean profile.
|
||||||
|
*
|
||||||
|
* @param title the title
|
||||||
|
* @param name the name
|
||||||
|
* @param isOrganization the is organization
|
||||||
|
* @param propagateUp the propagate up
|
||||||
|
*/
|
||||||
public OrganizationBeanProfile(String title, String name, boolean isOrganization, boolean propagateUp) {
|
public OrganizationBeanProfile(String title, String name, boolean isOrganization, boolean propagateUp) {
|
||||||
super();
|
|
||||||
this.title = title;
|
this.title = title;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.isOrganization = isOrganization;
|
this.isOrganization = isOrganization;
|
||||||
this.propagateUp = propagateUp;
|
this.propagateUp = propagateUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the title.
|
||||||
|
*
|
||||||
|
* @return the title
|
||||||
|
*/
|
||||||
public String getTitle() {
|
public String getTitle() {
|
||||||
return title;
|
return title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the title.
|
||||||
|
*
|
||||||
|
* @param title the new title
|
||||||
|
*/
|
||||||
public void setTitle(String title) {
|
public void setTitle(String title) {
|
||||||
this.title = title;
|
this.title = title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the name.
|
||||||
|
*
|
||||||
|
* @return the name
|
||||||
|
*/
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the name.
|
||||||
|
*
|
||||||
|
* @param name the new name
|
||||||
|
*/
|
||||||
public void setName(String name) {
|
public void setName(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if is organization.
|
||||||
|
*
|
||||||
|
* @return true, if is organization
|
||||||
|
*/
|
||||||
public boolean isOrganization() {
|
public boolean isOrganization() {
|
||||||
return isOrganization;
|
return isOrganization;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the organization.
|
||||||
|
*
|
||||||
|
* @param isOrganization the new organization
|
||||||
|
*/
|
||||||
public void setOrganization(boolean isOrganization) {
|
public void setOrganization(boolean isOrganization) {
|
||||||
this.isOrganization = isOrganization;
|
this.isOrganization = isOrganization;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if is propagate up.
|
||||||
|
*
|
||||||
|
* @return true, if is propagate up
|
||||||
|
*/
|
||||||
public boolean isPropagateUp() {
|
public boolean isPropagateUp() {
|
||||||
return propagateUp;
|
return propagateUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the propagate up.
|
||||||
|
*
|
||||||
|
* @param propagateUp the new propagate up
|
||||||
|
*/
|
||||||
public void setPropagateUp(boolean propagateUp) {
|
public void setPropagateUp(boolean propagateUp) {
|
||||||
this.propagateUp = propagateUp;
|
this.propagateUp = propagateUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "OrganizationBeanProfile [title=" + title + ", name=" + name
|
StringBuilder builder = new StringBuilder();
|
||||||
+ ", isOrganization=" + isOrganization + ", propagateUp="
|
builder.append("OrganizationBeanProfile [title=");
|
||||||
+ propagateUp + "]";
|
builder.append(title);
|
||||||
|
builder.append(", name=");
|
||||||
|
builder.append(name);
|
||||||
|
builder.append(", isOrganization=");
|
||||||
|
builder.append(isOrganization);
|
||||||
|
builder.append(", propagateUp=");
|
||||||
|
builder.append(propagateUp);
|
||||||
|
builder.append("]");
|
||||||
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,6 +27,12 @@ public class ResourceElementBeanProfile implements Serializable, IsSerializable
|
||||||
private ResourceElementBeanProfile parent;
|
private ResourceElementBeanProfile parent;
|
||||||
private List<ResourceElementBeanProfile> children;
|
private List<ResourceElementBeanProfile> children;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Default constructor
|
||||||
|
*/
|
||||||
|
public ResourceElementBeanProfile() {
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copy constructor
|
* Copy constructor
|
||||||
*
|
*
|
||||||
|
@ -44,12 +50,6 @@ public class ResourceElementBeanProfile implements Serializable, IsSerializable
|
||||||
this.organizationNameDatasetParent = another.organizationNameDatasetParent;
|
this.organizationNameDatasetParent = another.organizationNameDatasetParent;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor
|
|
||||||
*/
|
|
||||||
public ResourceElementBeanProfile() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param identifier
|
* @param identifier
|
||||||
* @param parentFolder
|
* @param parentFolder
|
||||||
|
|
Loading…
Reference in New Issue