39 lines
1.6 KiB
Java
39 lines
1.6 KiB
Java
package org.gcube.informationsystem.types.reference.entities;
|
|
|
|
import java.util.List;
|
|
|
|
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
import org.gcube.informationsystem.base.reference.AccessType;
|
|
import org.gcube.informationsystem.types.annotations.ISProperty;
|
|
import org.gcube.informationsystem.types.impl.entities.ResourceTypeImpl;
|
|
import org.gcube.informationsystem.types.reference.Change;
|
|
import org.gcube.informationsystem.types.reference.TypeMetadata;
|
|
import org.gcube.informationsystem.types.reference.properties.LinkedEntity;
|
|
import org.gcube.informationsystem.utils.TypeVersion;
|
|
|
|
/**
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
*/
|
|
@JsonDeserialize(as=ResourceTypeImpl.class)
|
|
@TypeMetadata(name = ResourceType.NAME, description = "This class provides information for the definition of any ResourceType", version = TypeVersion.MINIMAL_VERSION_STRING)
|
|
@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION)
|
|
public interface ResourceType extends EntityType {
|
|
|
|
public static final String NAME = "ResourceType"; //ResourceType.class.getSimpleName();
|
|
|
|
public static final String FACETS_PROPERTY = "facets";
|
|
public static final String RESOURCES_PROPERTY = "resources";
|
|
|
|
@ISProperty(name = FACETS_PROPERTY, readonly = false, mandatory = true, nullable = false)
|
|
public List<LinkedEntity> getFacets();
|
|
|
|
@ISProperty(name = RESOURCES_PROPERTY, readonly = false, mandatory = true, nullable = false)
|
|
public List<LinkedEntity> getResources();
|
|
|
|
@Override
|
|
public default AccessType getAccessType() {
|
|
return AccessType.RESOURCE;
|
|
}
|
|
|
|
}
|