Added fixed authorship
This commit is contained in:
parent
73e1fee53b
commit
342d89185c
|
@ -6,6 +6,9 @@ import javax.servlet.ServletContextListener;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public class ResourceRegistryContextListener implements ServletContextListener {
|
public class ResourceRegistryContextListener implements ServletContextListener {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(ResourceRegistryContextListener.class);
|
private static Logger logger = LoggerFactory.getLogger(ResourceRegistryContextListener.class);
|
||||||
|
|
|
@ -41,7 +41,6 @@ import com.orientechnologies.orient.core.record.OEdge;
|
||||||
import com.orientechnologies.orient.core.record.OVertex;
|
import com.orientechnologies.orient.core.record.OVertex;
|
||||||
import com.orientechnologies.orient.core.record.impl.ODocument;
|
import com.orientechnologies.orient.core.record.impl.ODocument;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Luca Frosini (ISTI - CNR)
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -10,6 +10,9 @@ import org.gcube.informationsystem.resourceregistry.contexts.ContextUtility;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public class BaseRest {
|
public class BaseRest {
|
||||||
|
|
||||||
protected Logger logger = LoggerFactory.getLogger(this.getClass());
|
protected Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||||
|
|
|
@ -24,6 +24,9 @@ import org.gcube.informationsystem.resourceregistry.instances.base.ElementManage
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
@Path(SharingPath.SHARING_PATH_PART)
|
@Path(SharingPath.SHARING_PATH_PART)
|
||||||
public class SharingManager {
|
public class SharingManager {
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ import com.orientechnologies.orient.core.metadata.schema.OType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Luca Frosini (ISTI - CNR)
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*
|
||||||
* Create a mapping between OrientDB {@link OType}
|
* Create a mapping between OrientDB {@link OType}
|
||||||
* https://orientdb.gitbooks.io/orientdb-manual/content/orientdb.wiki/Types.html
|
* https://orientdb.gitbooks.io/orientdb-manual/content/orientdb.wiki/Types.html
|
||||||
* and {@link BaseType}
|
* and {@link BaseType}
|
||||||
|
|
|
@ -28,6 +28,9 @@ import com.orientechnologies.orient.core.record.OVertex;
|
||||||
import com.orientechnologies.orient.core.sql.executor.OResult;
|
import com.orientechnologies.orient.core.sql.executor.OResult;
|
||||||
import com.orientechnologies.orient.core.sql.executor.OResultSet;
|
import com.orientechnologies.orient.core.sql.executor.OResultSet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public abstract class EntityTypeDefinitionManagement<E extends EntityType> extends EntityElementManagement<E> {
|
public abstract class EntityTypeDefinitionManagement<E extends EntityType> extends EntityElementManagement<E> {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(EntityTypeDefinitionManagement.class);
|
private static Logger logger = LoggerFactory.getLogger(EntityTypeDefinitionManagement.class);
|
||||||
|
|
|
@ -6,6 +6,9 @@ import org.gcube.informationsystem.types.reference.entities.FacetType;
|
||||||
|
|
||||||
import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
|
import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public class FacetTypeDefinitionManagement extends EntityTypeDefinitionManagement<FacetType> {
|
public class FacetTypeDefinitionManagement extends EntityTypeDefinitionManagement<FacetType> {
|
||||||
|
|
||||||
public FacetTypeDefinitionManagement() {
|
public FacetTypeDefinitionManagement() {
|
||||||
|
|
|
@ -6,6 +6,9 @@ import org.gcube.informationsystem.types.reference.entities.ResourceType;
|
||||||
|
|
||||||
import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
|
import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public class ResourceTypeDefinitionManagement extends EntityTypeDefinitionManagement<ResourceType> {
|
public class ResourceTypeDefinitionManagement extends EntityTypeDefinitionManagement<ResourceType> {
|
||||||
|
|
||||||
public ResourceTypeDefinitionManagement() {
|
public ResourceTypeDefinitionManagement() {
|
||||||
|
|
|
@ -27,6 +27,9 @@ import com.orientechnologies.orient.core.record.impl.ODocument;
|
||||||
import com.orientechnologies.orient.core.sql.executor.OResult;
|
import com.orientechnologies.orient.core.sql.executor.OResult;
|
||||||
import com.orientechnologies.orient.core.sql.executor.OResultSet;
|
import com.orientechnologies.orient.core.sql.executor.OResultSet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public class PropertyTypeDefinitionManagement extends ElementManagement<OElement> {
|
public class PropertyTypeDefinitionManagement extends ElementManagement<OElement> {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(PropertyTypeDefinitionManagement.class);
|
private static Logger logger = LoggerFactory.getLogger(PropertyTypeDefinitionManagement.class);
|
||||||
|
|
|
@ -8,6 +8,9 @@ import org.gcube.informationsystem.types.reference.relations.ConsistsOfType;
|
||||||
|
|
||||||
import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
|
import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public class ConsistsOfTypeDefinitionManagement
|
public class ConsistsOfTypeDefinitionManagement
|
||||||
extends RelationTypeDefinitionManagement<FacetTypeDefinitionManagement,FacetType> {
|
extends RelationTypeDefinitionManagement<FacetTypeDefinitionManagement,FacetType> {
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,9 @@ import org.gcube.informationsystem.types.reference.relations.IsRelatedToType;
|
||||||
|
|
||||||
import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
|
import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public class IsRelatedToTypeDefinitionManagement
|
public class IsRelatedToTypeDefinitionManagement
|
||||||
extends RelationTypeDefinitionManagement<ResourceTypeDefinitionManagement,ResourceType> {
|
extends RelationTypeDefinitionManagement<ResourceTypeDefinitionManagement,ResourceType> {
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,9 @@ import com.orientechnologies.orient.core.record.OVertex;
|
||||||
import com.orientechnologies.orient.core.sql.executor.OResult;
|
import com.orientechnologies.orient.core.sql.executor.OResult;
|
||||||
import com.orientechnologies.orient.core.sql.executor.OResultSet;
|
import com.orientechnologies.orient.core.sql.executor.OResultSet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public abstract class RelationTypeDefinitionManagement<T extends EntityTypeDefinitionManagement<TT>, TT extends EntityType>
|
public abstract class RelationTypeDefinitionManagement<T extends EntityTypeDefinitionManagement<TT>, TT extends EntityType>
|
||||||
extends RelationElementManagement<ResourceTypeDefinitionManagement, T> {
|
extends RelationElementManagement<ResourceTypeDefinitionManagement, T> {
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Luca Frosini (ISTI - CNR)
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class ContextTest {
|
public class ContextTest {
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,9 @@ import com.orientechnologies.orient.core.metadata.security.ORole;
|
||||||
import com.orientechnologies.orient.core.metadata.security.OSecurity;
|
import com.orientechnologies.orient.core.metadata.security.OSecurity;
|
||||||
import com.orientechnologies.orient.core.metadata.security.OUser;
|
import com.orientechnologies.orient.core.metadata.security.OUser;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public class ContextManagementTest extends ContextTest {
|
public class ContextManagementTest extends ContextTest {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(ContextManagementTest.class);
|
private static Logger logger = LoggerFactory.getLogger(ContextManagementTest.class);
|
||||||
|
|
|
@ -12,6 +12,9 @@ import org.slf4j.LoggerFactory;
|
||||||
import com.orientechnologies.orient.core.db.ODatabase.ATTRIBUTES;
|
import com.orientechnologies.orient.core.db.ODatabase.ATTRIBUTES;
|
||||||
import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
|
import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public class DatabaseEnvironmentTest {
|
public class DatabaseEnvironmentTest {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(DatabaseEnvironmentTest.class);
|
private static Logger logger = LoggerFactory.getLogger(DatabaseEnvironmentTest.class);
|
||||||
|
|
|
@ -3,6 +3,9 @@ package org.gcube.informationsystem.resourceregistry.instances;
|
||||||
import org.gcube.informationsystem.base.reference.IdentifiableElement;
|
import org.gcube.informationsystem.base.reference.IdentifiableElement;
|
||||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public abstract class AbstractERManagementTest<Er extends IdentifiableElement> {
|
public abstract class AbstractERManagementTest<Er extends IdentifiableElement> {
|
||||||
|
|
||||||
public abstract Er create(Er er) throws ResourceRegistryException;
|
public abstract Er create(Er er) throws ResourceRegistryException;
|
||||||
|
@ -12,4 +15,5 @@ public abstract class AbstractERManagementTest<Er extends IdentifiableElement> {
|
||||||
public abstract Er read(Er er) throws ResourceRegistryException;
|
public abstract Er read(Er er) throws ResourceRegistryException;
|
||||||
|
|
||||||
public abstract boolean delete(Er er) throws ResourceRegistryException;
|
public abstract boolean delete(Er er) throws ResourceRegistryException;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,9 @@ import org.junit.Test;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public class DiscoveryTest {
|
public class DiscoveryTest {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(DiscoveryTest.class);
|
private static Logger logger = LoggerFactory.getLogger(DiscoveryTest.class);
|
||||||
|
|
|
@ -81,7 +81,6 @@ import com.orientechnologies.orient.core.record.ODirection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Luca Frosini (ISTI - CNR)
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class ERManagementTest extends ContextTest {
|
public class ERManagementTest extends ContextTest {
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,9 @@ import org.gcube.informationsystem.resourceregistry.dbinitialization.DatabaseEnv
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public class EncryptionTest extends ContextTest {
|
public class EncryptionTest extends ContextTest {
|
||||||
|
|
||||||
public static final String PLAIN_VALUE = "my-test";
|
public static final String PLAIN_VALUE = "my-test";
|
||||||
|
|
|
@ -74,7 +74,6 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Luca Frosini (ISTI - CNR)
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class SmartgearResourcesTest extends ContextTest {
|
public class SmartgearResourcesTest extends ContextTest {
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,9 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import com.orientechnologies.orient.core.record.ODirection;
|
import com.orientechnologies.orient.core.record.ODirection;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public class ResourceManagementTest extends ContextTest {
|
public class ResourceManagementTest extends ContextTest {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(ResourceManagementTest.class);
|
private static Logger logger = LoggerFactory.getLogger(ResourceManagementTest.class);
|
||||||
|
|
|
@ -78,7 +78,6 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Luca Frosini (ISTI - CNR)
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class BasicTest extends ContextTest {
|
public class BasicTest extends ContextTest {
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,9 @@ import org.junit.Test;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public class RuleTest extends ContextTest {
|
public class RuleTest extends ContextTest {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory
|
private static Logger logger = LoggerFactory
|
||||||
|
|
|
@ -12,7 +12,6 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Luca Frosini (ISTI - CNR)
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class QueryTest extends ContextTest {
|
public class QueryTest extends ContextTest {
|
||||||
|
|
||||||
|
|
|
@ -12,15 +12,6 @@ import org.gcube.informationsystem.utils.TypeVersion;
|
||||||
import org.gcube.resourcemanagement.model.impl.entities.facets.SimpleFacetImpl;
|
import org.gcube.resourcemanagement.model.impl.entities.facets.SimpleFacetImpl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A sort of catch all.
|
|
||||||
* It does not define any property.
|
|
||||||
* It is mainly used to one or more arbitrary properties to the resource.
|
|
||||||
* Before using SimpleFacet a developer should evaluate if it is possible to identify a specific Facet
|
|
||||||
* to capture the particular aspect of the resource.
|
|
||||||
* The usage of SimpleFacet should be reduced to the maximum.
|
|
||||||
*
|
|
||||||
* https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#Simple_Property_Facet
|
|
||||||
*
|
|
||||||
* @author Luca Frosini (ISTI - CNR)
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
*/
|
*/
|
||||||
@JsonDeserialize(as=SimpleFacetImpl.class)
|
@JsonDeserialize(as=SimpleFacetImpl.class)
|
||||||
|
|
|
@ -12,15 +12,6 @@ import org.gcube.informationsystem.utils.TypeVersion;
|
||||||
import org.gcube.resourcemanagement.model.impl.entities.facets.SimpleFacetImpl;
|
import org.gcube.resourcemanagement.model.impl.entities.facets.SimpleFacetImpl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A sort of catch all.
|
|
||||||
* It does not define any property.
|
|
||||||
* It is mainly used to one or more arbitrary properties to the resource.
|
|
||||||
* Before using SimpleFacet a developer should evaluate if it is possible to identify a specific Facet
|
|
||||||
* to capture the particular aspect of the resource.
|
|
||||||
* The usage of SimpleFacet should be reduced to the maximum.
|
|
||||||
*
|
|
||||||
* https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#Simple_Property_Facet
|
|
||||||
*
|
|
||||||
* @author Luca Frosini (ISTI - CNR)
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
*/
|
*/
|
||||||
@JsonDeserialize(as=SimpleFacetImpl.class)
|
@JsonDeserialize(as=SimpleFacetImpl.class)
|
||||||
|
|
|
@ -12,15 +12,6 @@ import org.gcube.informationsystem.utils.TypeVersion;
|
||||||
import org.gcube.resourcemanagement.model.impl.entities.facets.SimpleFacetImpl;
|
import org.gcube.resourcemanagement.model.impl.entities.facets.SimpleFacetImpl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A sort of catch all.
|
|
||||||
* It does not define any property.
|
|
||||||
* It is mainly used to one or more arbitrary properties to the resource.
|
|
||||||
* Before using SimpleFacet a developer should evaluate if it is possible to identify a specific Facet
|
|
||||||
* to capture the particular aspect of the resource.
|
|
||||||
* The usage of SimpleFacet should be reduced to the maximum.
|
|
||||||
*
|
|
||||||
* https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#Simple_Property_Facet
|
|
||||||
*
|
|
||||||
* @author Luca Frosini (ISTI - CNR)
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
*/
|
*/
|
||||||
@JsonDeserialize(as=SimpleFacetImpl.class)
|
@JsonDeserialize(as=SimpleFacetImpl.class)
|
||||||
|
|
Loading…
Reference in New Issue