This commit is contained in:
Luca Frosini 2016-07-06 12:26:26 +00:00
parent 8fe9075ad9
commit 2ced73e42f
3 changed files with 11 additions and 5 deletions

View File

@ -14,16 +14,16 @@ import org.gcube.informationsystem.model.entity.Context;
*/
public class ContextImpl extends EntityImpl implements Context {
protected UUID uuid;
protected String uuid;
protected String name;
@Override
public UUID getUUID() {
public String getUUID() {
return uuid;
}
@Override
public void setUUID(UUID uuid) {
public void setUUID(String uuid) {
this.uuid = uuid;
}

View File

@ -13,6 +13,12 @@ import org.gcube.informationsystem.model.annotations.ISProperty;
*/
public interface Header extends Embedded {
/**
* Used to set Creator when the user is not known
*/
public static final String UNKNOWN_USER = "UNKNOWN_USER";
public static final String UUID_PROPERTY = "uuid";
public static final String CREATOR_PROPERTY = "creator";
public static final String CREATION_TIME_PROPERTY = "creationTime";

View File

@ -18,9 +18,9 @@ public interface Context extends Entity {
public static final String NAME_PROPERTY = "name";
@ISProperty(name=UUID_PROPERTY, readonly=true, mandatory=true, nullable=false)
public UUID getUUID();
public String getUUID();
public void setUUID(UUID uuid);
public void setUUID(String uuid);
@ISProperty(name=NAME_PROPERTY, mandatory=true, nullable=false)