54 lines
1.2 KiB
Java
54 lines
1.2 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.informationsystem.impl.relation;
|
|
|
|
import org.gcube.informationsystem.impl.AccessPolicyImpl;
|
|
import org.gcube.informationsystem.model.AccessPolicy;
|
|
import org.gcube.informationsystem.model.relation.RelationProperty;
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
|
|
/**
|
|
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
|
*
|
|
*/
|
|
public class RelationPropertyImpl implements RelationProperty {
|
|
|
|
protected String purpose;
|
|
protected ReferentiaIntegrity referentiaIntegrity;
|
|
@JsonDeserialize(as = AccessPolicyImpl.class)
|
|
protected AccessPolicy accessPolicy;
|
|
|
|
@Override
|
|
public String getPurpose() {
|
|
return this.purpose;
|
|
}
|
|
|
|
@Override
|
|
public void setPurpose(String purpose) {
|
|
this.purpose = purpose;
|
|
}
|
|
|
|
@Override
|
|
public ReferentiaIntegrity getReferentialIntegrity() {
|
|
return this.referentiaIntegrity;
|
|
}
|
|
|
|
@Override
|
|
public void setReferentialIntegrity(ReferentiaIntegrity referentialIntegrity) {
|
|
this.referentiaIntegrity = referentialIntegrity;
|
|
}
|
|
|
|
@Override
|
|
public AccessPolicy getPolicy() {
|
|
return this.accessPolicy;
|
|
}
|
|
|
|
@Override
|
|
public void setPolicy(AccessPolicy accessPolicy) {
|
|
this.accessPolicy = accessPolicy;
|
|
}
|
|
|
|
}
|