Reorganizing IS model

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/private/luca.frosini/information-system-model@129940 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-07-05 14:53:38 +00:00
parent 5374ec13e0
commit 8fe9075ad9
8 changed files with 47 additions and 10 deletions

View File

@ -1,7 +1,7 @@
/**
*
*/
package org.gcube.informationsystem.impl;
package org.gcube.informationsystem.impl.embedded;
import org.gcube.informationsystem.model.embedded.AccessPolicy;
import org.gcube.informationsystem.model.embedded.ValueSchema;

View File

@ -1,7 +1,7 @@
/**
*
*/
package org.gcube.informationsystem.impl.relation;
package org.gcube.informationsystem.impl.embedded;
import org.gcube.informationsystem.model.embedded.AccessPolicy;
import org.gcube.informationsystem.model.embedded.RelationProperty;

View File

@ -1,7 +1,7 @@
/**
*
*/
package org.gcube.informationsystem.impl;
package org.gcube.informationsystem.impl.embedded;
import java.net.URI;

View File

@ -3,7 +3,6 @@
*/
package org.gcube.informationsystem.impl.entity;
import org.gcube.informationsystem.impl.HeaderImpl;
import org.gcube.informationsystem.model.embedded.Header;
import org.gcube.informationsystem.model.entity.Entity;

View File

@ -1,7 +1,7 @@
/**
*
*/
package org.gcube.informationsystem.impl;
package org.gcube.informationsystem.impl.entity;
import java.util.UUID;
@ -44,11 +44,17 @@ public class HeaderImpl implements Header {
public Long getCreationTime() {
return creationTime;
}
protected void setCreationTime(Long creationTime){
this.creationTime = creationTime;
}
@Override
public Long getLastUpdateTime() {
return lastUpdateTime;
}
protected void setLastUpdateTime(Long lastUpdateTime){
this.lastUpdateTime = lastUpdateTime;
}
}

View File

@ -0,0 +1,27 @@
/**
*
*/
package org.gcube.informationsystem.impl.relation;
import org.gcube.informationsystem.model.embedded.RelationProperty;
import org.gcube.informationsystem.model.entity.Context;
import org.gcube.informationsystem.model.relation.ParentOf;
/**
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
*
*/
public class ParentOfImpl<Out extends Context, In extends Context> extends
RelationImpl<Out, In> implements ParentOf<Out, In> {
/**
* @param source
* @param target
* @param relationProperty
*/
public ParentOfImpl(Out source, In target,
RelationProperty relationProperty) {
super(source, target, relationProperty);
}
}

View File

@ -14,17 +14,20 @@ import org.gcube.informationsystem.model.annotations.ISProperty;
public interface Header extends Embedded {
public static final String UUID_PROPERTY = "uuid";
public static final String CREATOR_PROPERTY = "creator";
public static final String CREATION_TIME_PROPERTY = "creationTime";
public static final String LAST_UPDATE_TIME_PROPERTY = "lastUpdateTime";
@ISProperty(name=UUID_PROPERTY, readonly=true, mandatory=true, nullable=false)
public UUID getUUID();
@ISProperty(readonly=true, mandatory=true, nullable=false)
@ISProperty(name=CREATOR_PROPERTY, readonly=true, mandatory=true, nullable=false)
public String getCreator();
@ISProperty(readonly=true, mandatory=true, nullable=false)
@ISProperty(name=CREATION_TIME_PROPERTY, readonly=true, mandatory=true, nullable=false)
public Long getCreationTime();
@ISProperty(mandatory=true, nullable=false)
@ISProperty(name=LAST_UPDATE_TIME_PROPERTY, mandatory=true, nullable=false)
public Long getLastUpdateTime();

View File

@ -14,6 +14,8 @@ import org.gcube.informationsystem.model.embedded.Header;
@Abstract
public interface Entity {
public static final String NAME = Entity.class.getSimpleName();
public static final String HEADER_PROPERTY = "header";
@ISProperty(name=HEADER_PROPERTY, mandatory=true, nullable=false)