Class NuxeoRepository
- java.lang.Object
-
- org.nuxeo.ecm.core.opencmis.impl.server.NuxeoRepository
-
public class NuxeoRepository extends Object
Information about a Nuxeo repository.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ELASTICSEARCH_PROP
static String
NUXEO_READ_REMOVE
static String
NUXEO_URL_PROP
static String
NUXEO_VERSION_PROP
Deprecated.Since 7.10.static String
RELAX_CMIS_SPEC
Key of the configuration property"org.nuxeo.cmis.relaxSpec"
, default tofalse
.protected boolean
repositoryFulltextSearchDisabled
protected String
repositoryId
protected String
rootFolderId
static String
SUPPORTS_JOINS_PROP
static String
SUPPORTS_PROXIES_PROP
protected boolean
supportsJoins
protected boolean
supportsProxies
protected Map<org.apache.chemistry.opencmis.commons.enums.CmisVersion,TypeManagerImpl>
typeManagerByCmisVersion
protected boolean
useElasticsearch
-
Constructor Summary
Constructors Constructor Description NuxeoRepository(String repositoryId, String rootFolderId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
addPermissionDefinition(List<org.apache.chemistry.opencmis.commons.definitions.PermissionDefinition> permDefs, String permission, String description)
protected static void
addPermissionDefinitions(List<org.apache.chemistry.opencmis.commons.definitions.PermissionDefinition> permDefs)
protected static void
addPermissionMapping(Map<String,org.apache.chemistry.opencmis.commons.data.PermissionMapping> permMap, String key, String permission)
protected void
addSecondaryTypes(TypeManagerImpl typeManager, SchemaManager schemaManager, org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion)
protected void
addTypesRecursively(TypeManagerImpl typeManager, String name, Map<String,List<String>> typesChildren, Set<String> done, SchemaManager schemaManager, org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion)
String
getId()
org.apache.chemistry.opencmis.commons.data.RepositoryInfo
getRepositoryInfo(String latestChangeLogToken, org.apache.chemistry.opencmis.commons.server.CallContext callContext)
String
getRootFolderId()
TypeManagerImpl
getTypeManager(org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion)
boolean
hasRepositoryFulltextSearchDisabled()
protected TypeManagerImpl
initializeTypes(org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion)
void
setSupportsJoins(boolean supportsJoins)
void
setSupportsProxies(boolean supportsProxies)
void
setUseElasticsearch(boolean useElasticsearch)
boolean
supportsJoins()
boolean
supportsProxies()
boolean
useElasticsearch()
-
-
-
Field Detail
-
NUXEO_VERSION_PROP
@Deprecated public static final String NUXEO_VERSION_PROP
Deprecated.Since 7.10. UseEnvironment.DISTRIBUTION_VERSION
- See Also:
- Constant Field Values
-
NUXEO_URL_PROP
public static final String NUXEO_URL_PROP
- See Also:
- Constant Field Values
-
SUPPORTS_JOINS_PROP
public static final String SUPPORTS_JOINS_PROP
- See Also:
- Constant Field Values
-
SUPPORTS_PROXIES_PROP
public static final String SUPPORTS_PROXIES_PROP
- See Also:
- Constant Field Values
-
ELASTICSEARCH_PROP
public static final String ELASTICSEARCH_PROP
- See Also:
- Constant Field Values
-
RELAX_CMIS_SPEC
public static final String RELAX_CMIS_SPEC
Key of the configuration property"org.nuxeo.cmis.relaxSpec"
, default tofalse
. Setting this property totrue
allows users to relax the CMIS specification 1.1 and use customized CMISQL. Please be aware the risk of doing so. It will potentially cause query parsing error.The relax mode does not follow the CMIS specification 1.1, section 2.1.14.2.4.4, where at most one
CONTAINS()
function MUST be included in a single query statement. Currently, such mode only works for CMIS query having noJOIN
predicate.- See Also:
- NXP-19858, Constant Field Values
-
NUXEO_READ_REMOVE
public static final String NUXEO_READ_REMOVE
- See Also:
- Constant Field Values
-
repositoryId
protected final String repositoryId
-
rootFolderId
protected final String rootFolderId
-
supportsJoins
protected boolean supportsJoins
-
supportsProxies
protected boolean supportsProxies
-
useElasticsearch
protected boolean useElasticsearch
-
repositoryFulltextSearchDisabled
protected boolean repositoryFulltextSearchDisabled
-
typeManagerByCmisVersion
protected Map<org.apache.chemistry.opencmis.commons.enums.CmisVersion,TypeManagerImpl> typeManagerByCmisVersion
-
-
Method Detail
-
setSupportsJoins
public void setSupportsJoins(boolean supportsJoins)
-
supportsJoins
public boolean supportsJoins()
-
setSupportsProxies
public void setSupportsProxies(boolean supportsProxies)
-
supportsProxies
public boolean supportsProxies()
-
setUseElasticsearch
public void setUseElasticsearch(boolean useElasticsearch)
-
useElasticsearch
public boolean useElasticsearch()
-
hasRepositoryFulltextSearchDisabled
public boolean hasRepositoryFulltextSearchDisabled()
-
getId
public String getId()
-
getTypeManager
public TypeManagerImpl getTypeManager(org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion)
-
initializeTypes
protected TypeManagerImpl initializeTypes(org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion)
-
addTypesRecursively
protected void addTypesRecursively(TypeManagerImpl typeManager, String name, Map<String,List<String>> typesChildren, Set<String> done, SchemaManager schemaManager, org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion)
-
addSecondaryTypes
protected void addSecondaryTypes(TypeManagerImpl typeManager, SchemaManager schemaManager, org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion)
-
getRootFolderId
public String getRootFolderId()
-
getRepositoryInfo
public org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo(String latestChangeLogToken, org.apache.chemistry.opencmis.commons.server.CallContext callContext)
-
addPermissionDefinitions
protected static void addPermissionDefinitions(List<org.apache.chemistry.opencmis.commons.definitions.PermissionDefinition> permDefs)
-
addPermissionDefinition
protected static void addPermissionDefinition(List<org.apache.chemistry.opencmis.commons.definitions.PermissionDefinition> permDefs, String permission, String description)
-
-