public class InMemorySchemaRepository extends SchemaRepositoryBase
SchemaRepository.ElementTypeFilterauthorizations, MAX_DISPLAY_NAME, TOP_OBJECT_PROPERTY_NAMECONFIG_INTENT_CONCEPT_PREFIX, CONFIG_INTENT_PROPERTY_PREFIX, CONFIG_INTENT_RELATIONSHIP_PREFIX, PUBLIC, ROOT_CONCEPT_NAME, THING_CONCEPT_NAME, TYPE_CONCEPT, TYPE_PROPERTY, TYPE_RELATIONSHIP, VISIBILITY, VISIBILITY_STRING| Constructor and Description |
|---|
InMemorySchemaRepository(Graph graph,
Configuration configuration,
CacheService cacheService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDomainConceptsToRelationshipType(String relationshipName,
List<String> conceptNames,
User user,
String namespace) |
SchemaProperty |
addPropertyTo(List<Concept> concepts,
List<Relationship> relationships,
List<String> extendedDataTableNames,
String propertyName,
String displayName,
PropertyType dataType,
Map<String,String> possibleValues,
Collection<TextIndexHint> textIndexHints,
boolean userVisible,
boolean searchFacet,
boolean systemProperty,
String aggType,
int aggPrecision,
String aggInterval,
long aggMinDocumentCount,
String aggTimeZone,
String aggCalendarField,
boolean searchable,
boolean addable,
boolean sortable,
Integer sortPriority,
String displayType,
String propertyGroup,
Double boost,
String validationFormula,
String displayFormula,
com.google.common.collect.ImmutableList<String> dependentPropertyNames,
String[] intents,
boolean deleteable,
boolean updateable,
User user,
String namespace) |
void |
addRangeConceptsToRelationshipType(String relationshipName,
List<String> conceptNames,
User user,
String namespace) |
protected void |
deleteChangeableProperties(SchemaElement element,
Authorizations authorizations) |
protected void |
deleteChangeableProperties(SchemaProperty property,
Authorizations authorizations) |
protected Authorizations |
getAuthorizations(String namespace,
String... otherAuthorizations) |
List<Concept> |
getChildConcepts(Concept concept,
String namespace) |
protected List<Relationship> |
getChildRelationships(Relationship relationship,
String namespace) |
InMemoryConcept |
getConceptByName(String conceptName,
String namespace) |
Iterable<Concept> |
getConcepts(Iterable<String> ids,
String namespace) |
Iterable<Concept> |
getConceptsWithProperties(String namespace) |
String |
getDisplayNameForLabel(String relationshipName,
String namespace) |
protected Graph |
getGraph() |
void |
getOrCreateInverseOfRelationship(Relationship fromRelationship,
Relationship inverseOfRelationship) |
Concept |
getParentConcept(Concept concept,
String namespace) |
Relationship |
getParentRelationship(Relationship relationship,
String namespace) |
Iterable<SchemaProperty> |
getProperties(Iterable<String> ids,
String namespace) |
Iterable<SchemaProperty> |
getProperties(String namespace) |
InMemorySchemaProperty |
getPropertyByName(String propertyName,
String namespace) |
InMemoryRelationship |
getRelationshipByName(String relationshipName,
String namespace) |
Iterable<Relationship> |
getRelationships(Iterable<String> ids,
String namespace) |
Iterable<Relationship> |
getRelationships(String namespace) |
Concept |
getRootConcept(String namespace) |
Concept |
getThingConcept(String namespace) |
boolean |
hasRelationshipByName(String relationshipName,
String namespace) |
protected void |
internalDeleteConcept(Concept concept,
String namespace) |
protected void |
internalDeleteProperty(SchemaProperty property,
String namespace) |
protected void |
internalDeleteRelationship(Relationship relationship,
String namespace) |
protected Concept |
internalGetOrCreateConcept(Concept parent,
String conceptName,
String displayName,
String glyphIconHref,
String color,
boolean deleteChangeableProperties,
boolean isCoreConcept,
User user,
String namespace) |
protected Relationship |
internalGetOrCreateRelationshipType(Relationship parent,
Iterable<Concept> domainConcepts,
Iterable<Concept> rangeConcepts,
String relationshipName,
String displayName,
boolean deleteChangeableProperties,
boolean coreConcept,
User user,
String namespace) |
void |
internalPublishConcept(Concept concept,
User user,
String namespace) |
void |
internalPublishProperty(SchemaProperty property,
User user,
String namespace) |
void |
internalPublishRelationship(Relationship relationship,
User user,
String namespace) |
void |
removeInverseOfRelationship(Relationship fromRelationship,
Relationship inverseOfRelationship) |
void |
updatePropertyDependentNames(SchemaProperty property,
Collection<String> dependentPropertyNames,
User user,
String namespace) |
void |
updatePropertyDomainNames(SchemaProperty property,
Set<String> domainNames,
User user,
String namespace) |
addConceptTypeFilterToQuery, addConceptTypeFilterToQuery, addEdgeLabelFilterToQuery, addEdgeLabelFilterToQuery, addEntityGlyphIconToEntityConcept, checkDeletePrivileges, checkPrivileges, clearCache, clearCache, definePropertyOnGraph, definePropertyOnGraph, defineRequiredProperties, deleteConcept, deleteProperty, deleteRelationship, determineSearchable, generateDynamicName, generatePropertyDynamicName, getAncestorConcepts, getAncestorRelationships, getAuthorizations, getClientApiObject, getConceptAndAllChildren, getConceptAndAllChildrenByName, getConceptAndAncestors, getConceptByIntent, getConceptNameByIntent, getConceptsByName, getConfiguration, getDependentPropertyParent, getOntology, getOrCreateConcept, getOrCreateConcept, getOrCreateConcept, getOrCreateConcept, getOrCreateConcept, getOrCreateProperty, getOrCreateRelationshipType, getOrCreateRelationshipType, getOrCreateRootRelationship, getPrivilegeRepository, getPropertiesByIntent, getPropertiesByName, getPropertyByIntent, getPropertyByIntent, getPropertyNameByIntent, getRelationshipAndAllChildren, getRelationshipAndAllChildrenByName, getRelationshipAndAncestors, getRelationshipByIntent, getRelationshipNameByIntent, getRelationshipsByName, getRequiredConceptByIntent, getRequiredConceptByName, getRequiredConceptNameByIntent, getRequiredPropertyByIntent, getRequiredPropertyByIntent, getRequiredPropertyByName, getRequiredPropertyNameByIntent, getRequiredRelationshipByIntent, getRequiredRelationshipNameByIntent, getSystemUser, getTopObjectPropertyRelationship, getVisibleProperties, getWorkspaceRepository, hasConceptByName, isPublic, loadOntologies, publishConcept, publishProperty, publishRelationship, resolvePropertyIds, setAuthorizations, setIconProperty, validateRelationshipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConceptTypeFilterToQuery, addConceptTypeFilterToQuery, addEdgeLabelFilterToQuery, addEdgeLabelFilterToQuery, getChildConcepts, getClientApiObject, getConceptAndAllChildren, getConceptAndAllChildrenByName, getConceptByIntent, getConceptByName, getConceptNameByIntent, getConceptsWithProperties, getDependentPropertyParent, getDisplayNameForLabel, getOrCreateConcept, getOrCreateProperty, getOrCreateRelationshipType, getParentConcept, getProperties, getPropertiesByIntent, getPropertyByIntent, getPropertyByIntent, getPropertyByName, getPropertyNameByIntent, getRelationshipAndAllChildren, getRelationshipByIntent, getRelationshipByName, getRelationshipNameByIntent, getRelationships, getRequiredConceptByIntent, getRequiredConceptByName, getRequiredConceptNameByIntent, getRequiredPropertyByIntent, getRequiredPropertyByIntent, getRequiredPropertyByName, getRequiredPropertyNameByIntent, getRequiredRelationshipByIntent, getRequiredRelationshipNameByIntent, getThingConcept, hasRelationshipByName, resolvePropertyIds, updatePropertyDependentNames, updatePropertyDomainNames@Inject public InMemorySchemaRepository(Graph graph, Configuration configuration, CacheService cacheService) throws Exception
Exceptionpublic void updatePropertyDependentNames(SchemaProperty property, Collection<String> dependentPropertyNames, User user, String namespace)
public void addDomainConceptsToRelationshipType(String relationshipName, List<String> conceptNames, User user, String namespace)
public void addRangeConceptsToRelationshipType(String relationshipName, List<String> conceptNames, User user, String namespace)
public SchemaProperty addPropertyTo(List<Concept> concepts, List<Relationship> relationships, List<String> extendedDataTableNames, String propertyName, String displayName, PropertyType dataType, Map<String,String> possibleValues, Collection<TextIndexHint> textIndexHints, boolean userVisible, boolean searchFacet, boolean systemProperty, String aggType, int aggPrecision, String aggInterval, long aggMinDocumentCount, String aggTimeZone, String aggCalendarField, boolean searchable, boolean addable, boolean sortable, Integer sortPriority, String displayType, String propertyGroup, Double boost, String validationFormula, String displayFormula, com.google.common.collect.ImmutableList<String> dependentPropertyNames, String[] intents, boolean deleteable, boolean updateable, User user, String namespace)
addPropertyTo in class SchemaRepositoryBasepublic void updatePropertyDomainNames(SchemaProperty property, Set<String> domainNames, User user, String namespace)
public void internalPublishConcept(Concept concept, User user, String namespace)
internalPublishConcept in class SchemaRepositoryBasepublic void internalPublishRelationship(Relationship relationship, User user, String namespace)
internalPublishRelationship in class SchemaRepositoryBasepublic void internalPublishProperty(SchemaProperty property, User user, String namespace)
internalPublishProperty in class SchemaRepositoryBasepublic void getOrCreateInverseOfRelationship(Relationship fromRelationship, Relationship inverseOfRelationship)
public void removeInverseOfRelationship(Relationship fromRelationship, Relationship inverseOfRelationship)
public Iterable<Relationship> getRelationships(String namespace)
public Iterable<Relationship> getRelationships(Iterable<String> ids, String namespace)
public Iterable<SchemaProperty> getProperties(Iterable<String> ids, String namespace)
public Iterable<SchemaProperty> getProperties(String namespace)
public String getDisplayNameForLabel(String relationshipName, String namespace)
public InMemorySchemaProperty getPropertyByName(String propertyName, String namespace)
getPropertyByName in interface SchemaRepositorygetPropertyByName in class SchemaRepositoryBasepublic InMemoryRelationship getRelationshipByName(String relationshipName, String namespace)
getRelationshipByName in interface SchemaRepositorygetRelationshipByName in class SchemaRepositoryBasepublic InMemoryConcept getConceptByName(String conceptName, String namespace)
getConceptByName in interface SchemaRepositorygetConceptByName in class SchemaRepositoryBasepublic boolean hasRelationshipByName(String relationshipName, String namespace)
hasRelationshipByName in interface SchemaRepositoryhasRelationshipByName in class SchemaRepositoryBasepublic Relationship getParentRelationship(Relationship relationship, String namespace)
protected void internalDeleteConcept(Concept concept, String namespace)
internalDeleteConcept in class SchemaRepositoryBaseprotected void internalDeleteProperty(SchemaProperty property, String namespace)
internalDeleteProperty in class SchemaRepositoryBaseprotected void internalDeleteRelationship(Relationship relationship, String namespace)
internalDeleteRelationship in class SchemaRepositoryBasepublic List<Concept> getChildConcepts(Concept concept, String namespace)
getChildConcepts in interface SchemaRepositorygetChildConcepts in class SchemaRepositoryBaseprotected List<Relationship> getChildRelationships(Relationship relationship, String namespace)
getChildRelationships in class SchemaRepositoryBaseprotected Concept internalGetOrCreateConcept(Concept parent, String conceptName, String displayName, String glyphIconHref, String color, boolean deleteChangeableProperties, boolean isCoreConcept, User user, String namespace)
internalGetOrCreateConcept in class SchemaRepositoryBaseprotected Relationship internalGetOrCreateRelationshipType(Relationship parent, Iterable<Concept> domainConcepts, Iterable<Concept> rangeConcepts, String relationshipName, String displayName, boolean deleteChangeableProperties, boolean coreConcept, User user, String namespace)
internalGetOrCreateRelationshipType in class SchemaRepositoryBaseprotected Authorizations getAuthorizations(String namespace, String... otherAuthorizations)
protected Graph getGraph()
getGraph in class SchemaRepositoryBaseprotected void deleteChangeableProperties(SchemaProperty property, Authorizations authorizations)
deleteChangeableProperties in class SchemaRepositoryBaseprotected void deleteChangeableProperties(SchemaElement element, Authorizations authorizations)
deleteChangeableProperties in class SchemaRepositoryBaseCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.