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;
|
||||
|
||||
/**
|
||||
* A ckan organization/group (you can check its nature by looking at getIsOrganization();) like bean with name and title
|
||||
* @author Costantino Perciante (costantino.perciante@isti.cnr.it)
|
||||
* The Class OrganizationBeanProfile.
|
||||
*
|
||||
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
||||
*
|
||||
* Feb 15, 2024
|
||||
*/
|
||||
public class OrganizationBeanProfile implements Serializable, IsSerializable {
|
||||
|
||||
private static final long serialVersionUID = -6566519399945530602L;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -2078766102599662775L;
|
||||
private String title;
|
||||
private String name;
|
||||
private boolean isOrganization;
|
||||
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) {
|
||||
super();
|
||||
this.title = title;
|
||||
this.name = name;
|
||||
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) {
|
||||
super();
|
||||
this.title = title;
|
||||
this.name = name;
|
||||
this.isOrganization = isOrganization;
|
||||
this.propagateUp = propagateUp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the title.
|
||||
*
|
||||
* @return the title
|
||||
*/
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the title.
|
||||
*
|
||||
* @param title the new title
|
||||
*/
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name.
|
||||
*
|
||||
* @return the name
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the name.
|
||||
*
|
||||
* @param name the new name
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if is organization.
|
||||
*
|
||||
* @return true, if is organization
|
||||
*/
|
||||
public boolean isOrganization() {
|
||||
return isOrganization;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the organization.
|
||||
*
|
||||
* @param isOrganization the new organization
|
||||
*/
|
||||
public void setOrganization(boolean isOrganization) {
|
||||
this.isOrganization = isOrganization;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if is propagate up.
|
||||
*
|
||||
* @return true, if is propagate up
|
||||
*/
|
||||
public boolean isPropagateUp() {
|
||||
return propagateUp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the propagate up.
|
||||
*
|
||||
* @param propagateUp the new propagate up
|
||||
*/
|
||||
public void setPropagateUp(boolean propagateUp) {
|
||||
this.propagateUp = propagateUp;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "OrganizationBeanProfile [title=" + title + ", name=" + name
|
||||
+ ", isOrganization=" + isOrganization + ", propagateUp="
|
||||
+ propagateUp + "]";
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append("OrganizationBeanProfile [title=");
|
||||
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 List<ResourceElementBeanProfile> children;
|
||||
|
||||
/**
|
||||
* Default constructor
|
||||
*/
|
||||
public ResourceElementBeanProfile() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Copy constructor
|
||||
*
|
||||
|
@ -44,12 +50,6 @@ public class ResourceElementBeanProfile implements Serializable, IsSerializable
|
|||
this.organizationNameDatasetParent = another.organizationNameDatasetParent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Default constructor
|
||||
*/
|
||||
public ResourceElementBeanProfile() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param identifier
|
||||
* @param parentFolder
|
||||
|
|
Loading…
Reference in New Issue