common-authorization/src/main/java/org/gcube/common/authorization/library/policies/Policy.java

32 lines
619 B
Java

package org.gcube.common.authorization.library.policies;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public abstract class Policy {
private long id;
protected Policy() {}
public abstract PolicyType getPolicyType();
public abstract String getPolicyAsString();
public abstract ServiceAccess getServiceAccess();
public abstract String getContext();
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
}