110 lines
2.1 KiB
Java
110 lines
2.1 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.datatransfer.resolver;
|
|
|
|
|
|
/**
|
|
* The Class GeonetworkRequestCriteria.
|
|
*
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
* Jun 15, 2016
|
|
*/
|
|
public class GeonetworkRequestCriteria {
|
|
|
|
private String scope;
|
|
private boolean valueOfFilterPublicIds;
|
|
private boolean authOnGeonetwork;
|
|
private boolean noAuthOnGeonetwork;
|
|
|
|
/**
|
|
* Instantiates a new geonetwork request criteria.
|
|
*
|
|
* @param scope the scope
|
|
* @param valueOfFilterPublicIds the value of filter public ids
|
|
* @param noAuthOnGeonetowrk the no auth on geonetowrk
|
|
*/
|
|
public GeonetworkRequestCriteria(String scope, boolean valueOfFilterPublicIds, boolean noAuthOnGeonetowrk){
|
|
this.scope = scope;
|
|
this.valueOfFilterPublicIds = valueOfFilterPublicIds;
|
|
this.noAuthOnGeonetwork = noAuthOnGeonetowrk;
|
|
}
|
|
|
|
|
|
/**
|
|
* Checks if is no auth on geonetwork.
|
|
*
|
|
* @return the noAuthOnGeonetwork
|
|
*/
|
|
public boolean isNoAuthOnGeonetwork() {
|
|
|
|
return noAuthOnGeonetwork;
|
|
}
|
|
|
|
|
|
/**
|
|
* Gets the scope.
|
|
*
|
|
* @return the scope
|
|
*/
|
|
public String getScope() {
|
|
|
|
return scope;
|
|
}
|
|
|
|
|
|
/**
|
|
* Checks if is value of filter public ids.
|
|
*
|
|
* @return the valueOfFilterPublicIds
|
|
*/
|
|
public boolean isValueOfFilterPublicIds() {
|
|
|
|
return valueOfFilterPublicIds;
|
|
}
|
|
|
|
|
|
/**
|
|
* Sets the scope.
|
|
*
|
|
* @param scope the scope to set
|
|
*/
|
|
public void setScope(String scope) {
|
|
|
|
this.scope = scope;
|
|
}
|
|
|
|
|
|
/**
|
|
* Sets the value of filter public ids.
|
|
*
|
|
* @param valueOfFilterPublicIds the valueOfFilterPublicIds to set
|
|
*/
|
|
public void setValueOfFilterPublicIds(boolean valueOfFilterPublicIds) {
|
|
|
|
this.valueOfFilterPublicIds = valueOfFilterPublicIds;
|
|
}
|
|
|
|
|
|
|
|
/* (non-Javadoc)
|
|
* @see java.lang.Object#toString()
|
|
*/
|
|
@Override
|
|
public String toString() {
|
|
|
|
StringBuilder builder = new StringBuilder();
|
|
builder.append("GeonetworkRequestCriteria [scope=");
|
|
builder.append(scope);
|
|
builder.append(", valueOfFilterPublicIds=");
|
|
builder.append(valueOfFilterPublicIds);
|
|
builder.append(", authOnGeonetwork=");
|
|
builder.append(authOnGeonetwork);
|
|
builder.append(", noAuthOnGeonetwork=");
|
|
builder.append(noAuthOnGeonetwork);
|
|
builder.append("]");
|
|
return builder.toString();
|
|
}
|
|
|
|
}
|