common-authorization/src/main/java/org/gcube/common/authorization/library/BannedService.java

37 lines
718 B
Java

package org.gcube.common.authorization.library;
import java.util.Calendar;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import org.gcube.common.authorization.library.provider.Service;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class BannedService {
private Service service;
private Calendar banTime;
protected BannedService() {
super();
}
public BannedService(Service service, Calendar banTime) {
super();
this.service = service;
this.banTime = banTime;
}
public Service getService() {
return service;
}
public Calendar getCreationTime() {
return banTime;
}
}