edit_facility_26115 #3
|
@ -1091,6 +1091,8 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
|
||||||
logger.warn("Dev mode detected");
|
logger.warn("Dev mode detected");
|
||||||
toReturn = Arrays.asList();
|
toReturn = Arrays.asList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.info("Returning user's groups: " + toReturn);
|
||||||
return toReturn;
|
return toReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,25 +10,25 @@ import com.google.gwt.user.client.rpc.IsSerializable;
|
||||||
*/
|
*/
|
||||||
public class OrganizationBean implements Serializable, IsSerializable{
|
public class OrganizationBean implements Serializable, IsSerializable{
|
||||||
|
|
||||||
private static final long serialVersionUID = -6566519399945530602L;
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 8014712837346722595L;
|
||||||
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 OrganizationBean(){
|
public OrganizationBean(){
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public OrganizationBean(String title, String name, boolean isOrganization) {
|
public OrganizationBean(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;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OrganizationBean(String title, String name, boolean isOrganization, boolean propagateUp) {
|
public OrganizationBean(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;
|
||||||
|
@ -69,9 +69,17 @@ public class OrganizationBean implements Serializable, IsSerializable{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "OrganizationBean [title=" + title + ", name=" + name
|
StringBuilder builder = new StringBuilder();
|
||||||
+ ", isOrganization=" + isOrganization + ", propagateUp="
|
builder.append("OrganizationBean [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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue