Class DiscoveryFacetImpl
java.lang.Object
org.gcube.informationsystem.base.impl.ElementImpl
org.gcube.informationsystem.base.impl.entities.EntityElementImpl
org.gcube.informationsystem.model.impl.entities.EntityImpl
org.gcube.informationsystem.model.impl.entities.FacetImpl
org.gcube.resourcemanagement.model.impl.entities.facets.DiscoveryFacetImpl
- All Implemented Interfaces:
Serializable,org.gcube.informationsystem.base.reference.Element,org.gcube.informationsystem.base.reference.entities.EntityElement,org.gcube.informationsystem.base.reference.IdentifiableElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,org.gcube.informationsystem.model.reference.entities.Entity,org.gcube.informationsystem.model.reference.entities.Facet,org.gcube.informationsystem.model.reference.ERElement,org.gcube.informationsystem.model.reference.ModelElement,DiscoveryFacet
public class DiscoveryFacetImpl
extends org.gcube.informationsystem.model.impl.entities.FacetImpl
implements DiscoveryFacet
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe discovery descriptionprotected StringThe discovery groupprotected intThe maximum number of occurrencesprotected intThe minimum number of occurrencesprotected org.gcube.com.fasterxml.jackson.databind.node.ArrayNodeThe queries associated with the discoveryprotected List<org.gcube.informationsystem.queries.templates.reference.properties.QueryTemplateReference>The query templates associated with the discoveryFields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
additionalProperties, allowedAdditionalKeysFields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
contexts, expectedtype, supertypesFields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
metadata, uuidFields inherited from interface org.gcube.resourcemanagement.model.reference.entities.facets.DiscoveryFacet
DESCRIPTION_PROPERTY, GROUP_PROPERTY, MAX_PROPERTY, MIN_PROPERTY, NAME, QUERIES_PROPERTY, QUERY_TEMPLATES_PROPERTYFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.entities.Entity
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
NAMEFields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQuery(org.gcube.com.fasterxml.jackson.databind.node.ObjectNode query) Adds a JSON query object used to discover resources.voidaddQueryTemplates(org.gcube.informationsystem.queries.templates.reference.properties.QueryTemplateReference queryTemplates) Adds a query template reference with parameters.Human-readable description displayed to users explaining what type of resources will be discovered in this groupgetGroup()The name identifier of the resource group to discover.getMax()Maximum number of resources that can be selected from this group.intgetMin()Minimum number of resources that must be selected from this group.org.gcube.com.fasterxml.jackson.databind.node.ArrayNodeArray of JSON query objects used to discover resources.List<org.gcube.informationsystem.queries.templates.reference.properties.QueryTemplateReference>Array of query template references with parameters.voidsetDescription(String description) Sets a human-readable description displayed to users explaining what type of resources will be discovered in this groupvoidSets the name identifier of the resource group to discover.voidSets the maximum number of resources that can be selected from this group.voidsetMin(int min) Sets the minimum number of resources that must be selected from this group.voidsetQueries(org.gcube.com.fasterxml.jackson.databind.node.ArrayNode queries) Sets the array of JSON query objects used to discover resources.voidsetQueryTemplates(List<org.gcube.informationsystem.queries.templates.reference.properties.QueryTemplateReference> queryTemplates) Sets the array of query template references with parameters.Methods inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalPropertyMethods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
getContexts, getExpectedtype, getSupertypes, setContextsMethods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
getID, getMetadata, setID, setMetadataMethods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadataMethods inherited from interface org.gcube.informationsystem.model.reference.ERElement
getContextsMethods inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalPropertyMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
Field Details
-
group
The discovery group -
description
The discovery description -
min
protected int minThe minimum number of occurrences -
max
protected int maxThe maximum number of occurrences -
queries
protected org.gcube.com.fasterxml.jackson.databind.node.ArrayNode queriesThe queries associated with the discovery -
queryTemplates
protected List<org.gcube.informationsystem.queries.templates.reference.properties.QueryTemplateReference> queryTemplatesThe query templates associated with the discovery
-
-
Constructor Details
-
DiscoveryFacetImpl
public DiscoveryFacetImpl()
-
-
Method Details
-
getGroup
Description copied from interface:DiscoveryFacetThe name identifier of the resource group to discover. This serves as a unique identifier for organizing and categorizing discovered resources.- Specified by:
getGroupin interfaceDiscoveryFacet- Returns:
- the group name
-
setGroup
Description copied from interface:DiscoveryFacetSets the name identifier of the resource group to discover. This serves as a unique identifier for organizing and categorizing discovered resources.- Specified by:
setGroupin interfaceDiscoveryFacet- Parameters:
group- the group name
-
getDescription
Description copied from interface:DiscoveryFacetHuman-readable description displayed to users explaining what type of resources will be discovered in this group- Specified by:
getDescriptionin interfaceDiscoveryFacet- Returns:
- the description
-
setDescription
Description copied from interface:DiscoveryFacetSets a human-readable description displayed to users explaining what type of resources will be discovered in this group- Specified by:
setDescriptionin interfaceDiscoveryFacet- Parameters:
description- the description
-
getMin
public int getMin()Description copied from interface:DiscoveryFacetMinimum number of resources that must be selected from this group. Default is 0 (optional selection).- Specified by:
getMinin interfaceDiscoveryFacet- Returns:
- the min
-
setMin
public void setMin(int min) Description copied from interface:DiscoveryFacetSets the minimum number of resources that must be selected from this group. Default is 0 (optional selection).- Specified by:
setMinin interfaceDiscoveryFacet- Parameters:
min- the min
-
getMax
Description copied from interface:DiscoveryFacetMaximum number of resources that can be selected from this group. Null means unlimited selection.- Specified by:
getMaxin interfaceDiscoveryFacet- Returns:
- the max
-
setMax
Description copied from interface:DiscoveryFacetSets the maximum number of resources that can be selected from this group. Null means unlimited selection.- Specified by:
setMaxin interfaceDiscoveryFacet- Parameters:
max- the max
-
getQueries
public org.gcube.com.fasterxml.jackson.databind.node.ArrayNode getQueries()Description copied from interface:DiscoveryFacetArray of JSON query objects used to discover resources. Each query is executed and results are combined (union of all query results).- Specified by:
getQueriesin interfaceDiscoveryFacet- Returns:
- the queries
-
setQueries
public void setQueries(org.gcube.com.fasterxml.jackson.databind.node.ArrayNode queries) Description copied from interface:DiscoveryFacetSets the array of JSON query objects used to discover resources. Each query is executed and results are combined (union of all query results).- Specified by:
setQueriesin interfaceDiscoveryFacet- Parameters:
queries- the queries
-
addQuery
public void addQuery(org.gcube.com.fasterxml.jackson.databind.node.ObjectNode query) Description copied from interface:DiscoveryFacetAdds a JSON query object used to discover resources.- Specified by:
addQueryin interfaceDiscoveryFacet- Parameters:
query- the query
-
getQueryTemplates
public List<org.gcube.informationsystem.queries.templates.reference.properties.QueryTemplateReference> getQueryTemplates()Description copied from interface:DiscoveryFacetArray of query template references with parameters. These are named, reusable query definitions that can accept variables for dynamic resource discovery.- Specified by:
getQueryTemplatesin interfaceDiscoveryFacet- Returns:
- the query templates
-
setQueryTemplates
public void setQueryTemplates(List<org.gcube.informationsystem.queries.templates.reference.properties.QueryTemplateReference> queryTemplates) Description copied from interface:DiscoveryFacetSets the array of query template references with parameters. These are named, reusable query definitions that can accept variables for dynamic resource discovery.- Specified by:
setQueryTemplatesin interfaceDiscoveryFacet- Parameters:
queryTemplates- the query templates
-
addQueryTemplates
public void addQueryTemplates(org.gcube.informationsystem.queries.templates.reference.properties.QueryTemplateReference queryTemplates) Description copied from interface:DiscoveryFacetAdds a query template reference with parameters. These are named, reusable query definitions that can accept variables for dynamic resource discovery.- Specified by:
addQueryTemplatesin interfaceDiscoveryFacet- Parameters:
queryTemplates- the query template to add
-