2013-05-09 18:00:47 +02:00
|
|
|
package org.gcube.portlets.user.socialprofile.shared;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
import org.gcube.portal.databook.shared.UserInfo;
|
|
|
|
|
|
|
|
@SuppressWarnings("serial")
|
|
|
|
public class UserContext implements Serializable {
|
|
|
|
private UserInfo userInfo;
|
|
|
|
private String headline;
|
|
|
|
private String institution;
|
2014-07-23 16:39:04 +02:00
|
|
|
private String summary;
|
2013-05-09 18:00:47 +02:00
|
|
|
private String currentScope;
|
2014-09-09 14:48:47 +02:00
|
|
|
private boolean isInfrastructure;
|
|
|
|
private boolean isOwner;
|
2014-07-23 16:39:04 +02:00
|
|
|
|
2013-05-09 18:00:47 +02:00
|
|
|
public UserContext() {
|
|
|
|
super();
|
|
|
|
}
|
2014-07-23 16:39:04 +02:00
|
|
|
|
2013-05-09 18:00:47 +02:00
|
|
|
public UserContext(UserInfo userInfo, String headline, String institution,
|
2014-09-09 14:48:47 +02:00
|
|
|
String summary, String currentScope, boolean isOwner, boolean isInfrastructure) {
|
2013-05-09 18:00:47 +02:00
|
|
|
super();
|
|
|
|
this.userInfo = userInfo;
|
|
|
|
this.headline = headline;
|
|
|
|
this.institution = institution;
|
2014-07-23 16:39:04 +02:00
|
|
|
this.summary = summary;
|
2013-05-09 18:00:47 +02:00
|
|
|
this.currentScope = currentScope;
|
|
|
|
this.isOwner = isOwner;
|
2014-09-09 14:48:47 +02:00
|
|
|
this.isInfrastructure = isInfrastructure;
|
2013-05-09 18:00:47 +02:00
|
|
|
}
|
|
|
|
|
2014-07-23 16:39:04 +02:00
|
|
|
|
2013-05-09 18:00:47 +02:00
|
|
|
public UserInfo getUserInfo() {
|
|
|
|
return userInfo;
|
|
|
|
}
|
|
|
|
public void setUserInfo(UserInfo userInfo) {
|
|
|
|
this.userInfo = userInfo;
|
|
|
|
}
|
|
|
|
public String getHeadline() {
|
|
|
|
return headline;
|
|
|
|
}
|
|
|
|
public void setHeadline(String headline) {
|
|
|
|
this.headline = headline;
|
|
|
|
}
|
|
|
|
public String getInstitution() {
|
|
|
|
return institution;
|
|
|
|
}
|
|
|
|
public void setInstitution(String institution) {
|
|
|
|
this.institution = institution;
|
|
|
|
}
|
|
|
|
public String getCurrentScope() {
|
|
|
|
return currentScope;
|
|
|
|
}
|
|
|
|
public void setCurrentScope(String currentScope) {
|
|
|
|
this.currentScope = currentScope;
|
|
|
|
}
|
|
|
|
public boolean isOwner() {
|
|
|
|
return isOwner;
|
|
|
|
}
|
|
|
|
public void setOwner(boolean isOwner) {
|
|
|
|
this.isOwner = isOwner;
|
|
|
|
}
|
2014-07-23 16:39:04 +02:00
|
|
|
|
|
|
|
public String getSummary() {
|
|
|
|
return summary;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setSummary(String summary) {
|
|
|
|
this.summary = summary;
|
|
|
|
}
|
2014-09-09 14:48:47 +02:00
|
|
|
|
|
|
|
public boolean isInfrastructure() {
|
|
|
|
return isInfrastructure;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setInfrastructure(boolean isInfrastructure) {
|
|
|
|
this.isInfrastructure = isInfrastructure;
|
|
|
|
}
|
2013-05-09 18:00:47 +02:00
|
|
|
}
|