96 lines
1.9 KiB
Java
96 lines
1.9 KiB
Java
package eu.dnetlib.developers.entities;
|
|
|
|
import javax.persistence.*;
|
|
import java.util.Date;
|
|
|
|
@Entity
|
|
public class RegisteredService {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
Long id;
|
|
String clientId;
|
|
String owner;
|
|
String name;
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
Date creationDate;
|
|
String registrationAccessToken;
|
|
String keyType;
|
|
String url;
|
|
|
|
public RegisteredService() {
|
|
this.creationDate = new Date();
|
|
}
|
|
|
|
public RegisteredService(String owner, String name, String url, String keyType) {
|
|
this.owner = owner;
|
|
this.name = name;
|
|
this.keyType = keyType;
|
|
this.creationDate = new Date();
|
|
}
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getClientId() {
|
|
return clientId;
|
|
}
|
|
|
|
public void setClientId(String clientId) {
|
|
this.clientId = clientId;
|
|
}
|
|
|
|
public String getOwner() {
|
|
return owner;
|
|
}
|
|
|
|
public void setOwner(String owner) {
|
|
this.owner = owner;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public Date getCreationDate() {
|
|
return creationDate;
|
|
}
|
|
|
|
public void setCreationDate(Date creationDate) {
|
|
this.creationDate = creationDate;
|
|
}
|
|
|
|
public String getRegistrationAccessToken() {
|
|
return registrationAccessToken;
|
|
}
|
|
|
|
public void setRegistrationAccessToken(String registrationAccessToken) {
|
|
this.registrationAccessToken = registrationAccessToken;
|
|
}
|
|
|
|
public String getKeyType() {
|
|
return keyType;
|
|
}
|
|
|
|
public void setKeyType(String keyType) {
|
|
this.keyType = keyType;
|
|
}
|
|
|
|
public String getUrl() {
|
|
return url;
|
|
}
|
|
|
|
public void setUrl(String url) {
|
|
this.url = url;
|
|
}
|
|
}
|