2018-02-19 14:26:59 +01:00
|
|
|
package org.gcube.portal.socialnetworking.model.beans;
|
2017-10-21 22:34:40 +02:00
|
|
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import javax.validation.constraints.Size;
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Application id object
|
|
|
|
* @author Costantino Perciante at ISTI-CNR
|
|
|
|
*/
|
|
|
|
public class ApplicationId {
|
|
|
|
|
|
|
|
@JsonProperty("app_id")
|
|
|
|
@NotNull(message="app_id cannot be null")
|
|
|
|
@Size(message="app_id cannot be empty", min=1)
|
|
|
|
private String appId;
|
2018-02-16 18:41:59 +01:00
|
|
|
|
|
|
|
public ApplicationId() {
|
|
|
|
super();
|
|
|
|
}
|
2017-10-21 22:34:40 +02:00
|
|
|
|
|
|
|
public ApplicationId(String appId) {
|
|
|
|
super();
|
|
|
|
this.appId = appId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getAppId() {
|
|
|
|
return appId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAppId(String appId) {
|
|
|
|
this.appId = appId;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return "ApplicationId [appId=" + appId + "]";
|
|
|
|
}
|
|
|
|
}
|