Package org.nuxeo.ecm.core.schema
Interface SchemaManager
- All Superinterfaces:
PropertyCharacteristicHandler,TypeProvider
- All Known Implementing Classes:
SchemaManagerImpl
The Schema Manager manages core document types, schemas, facets and field types.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetAllowedSubTypes(String type) Returns the types of the children that can be created inside a giventypetype.booleanWhether we allow to write the dublincore schema on a version.booleanWhether or not to ignore any previous values when setting complex properties.Deprecated.getDocumentTypeNamesExtending(String docType) Return the names of all document types extending the given one, which is included.Returns the names of all document types that have given facet.intReturns the field with given xpath, or null if not found.Returns the field with given parent field and sub name, or null if not found.Deprecated.since 11.1, usePropertyCharacteristicHandlermethods insteadgetSchemaFromPrefix(String schemaPrefix) getSchemaFromURI(String schemaURI) Deprecated.since 11.1, seems unusedgetXPathSchemaName(String xpath, Set<String> schemas) Finds within the schemas the first matching schema having a property with the same name as the first path segment of the xpath.booleanhasSuperType(String docType, String superType) Returns true ifdocTypeis or extendssuperType, false otherwise.static StringnormalizePath(String path) Remove prefix if any and replace the index of complex properties of the given path.Methods inherited from interface org.nuxeo.ecm.core.schema.PropertyCharacteristicHandler
getDeprecatedProperties, getFallback, getIndexedProperties, getRemovedProperties, getRetainableProperties, getRetainableProperties, isDeprecated, isRemoved, isSecuredMethods inherited from interface org.nuxeo.ecm.core.schema.TypeProvider
getDocumentType, getDocumentTypes, getFacet, getFacets, getNoPerDocumentQueryFacets, getProxySchemas, getSchema, getSchemas, getSpecialDocumentTypes, isProxySchema
-
Field Details
-
PATH_INDEX_PATTERN
-
-
Method Details
-
normalizePath
Remove prefix if any and replace the index of complex properties of the given path.i.e. files:files/1/file -> files\/*\/file
- Parameters:
path- the path- Returns:
- a normalize path
- Since:
- 2021.32
-
getField
Returns the field with given xpath, or null if not found. -
getField
Returns the field with given parent field and sub name, or null if not found.- Since:
- 7.2
-
getSchemaFromPrefix
-
getXPathSchemaName
Finds within the schemas the first matching schema having a property with the same name as the first path segment of the xpath. The xpath can be prefixed or unprefixed.- Parameters:
xpath- the prefixed or unprefixed xpathschemas- the schemas to be searched- Returns:
- the first schema containing a property matching the xpath
- Since:
- 2023
-
getSchemaFromURI
Deprecated.since 11.1, seems unused -
getDocumentTypeNamesForFacet
Returns the names of all document types that have given facet.- Returns:
- null or the names as a guaranteed non-empty set.
-
getDocumentTypeNamesExtending
Return the names of all document types extending the given one, which is included.- Returns:
- null or the set of names.
-
getDocumentTypesCount
int getDocumentTypesCount() -
hasSuperType
Returns true ifdocTypeis or extendssuperType, false otherwise.- Since:
- 5.9.4
-
getAllowedSubTypes
Returns the types of the children that can be created inside a giventypetype.- Since:
- 8.4
-
getDeprecatedProperties
Deprecated.since 11.1, usePropertyCharacteristicHandlermethods instead- Returns:
- the deprecated properties handler
- Since:
- 9.2
-
getRemovedProperties
Deprecated.since 11.1, usePropertyCharacteristicHandlermethods instead- Returns:
- the removed properties handler
- Since:
- 9.2
-
getClearComplexPropertyBeforeSet
boolean getClearComplexPropertyBeforeSet()Whether or not to ignore any previous values when setting complex properties.- Returns:
trueif setting a complex property ignores any previous values- Since:
- 9.3
-
getAllowVersionWriteForDublinCore
boolean getAllowVersionWriteForDublinCore()Whether we allow to write the dublincore schema on a version.- Returns:
trueif write to the dublincore schema of a version is allowed- Since:
- 10.3
-
PropertyCharacteristicHandlermethods instead