Class DBSRepositoryBase

    • Field Detail

      • DISABLE_ECM_BLOB_KEYS

        protected static final String DISABLE_ECM_BLOB_KEYS
        Property to disable ecm:blobKeys computation FOR TEST PURPOSE ONLY. Keep it private, we really don't want it to be used externally.
        Since:
        2023
        See Also:
        Constant Field Values
      • repositoryName

        protected final String repositoryName
      • changeTokenEnabled

        protected final boolean changeTokenEnabled
      • capabilities

        protected final Map<String,​Object> capabilities
        Since:
        11.5
      • selfRegisteredLockManager

        protected boolean selfRegisteredLockManager
        Since:
        7.4 : used to know if the LockManager was provided by this repository or externally
    • Method Detail

      • getAllowedIdTypes

        public abstract List<DBSRepositoryBase.IdType> getAllowedIdTypes()
        Gets the allowed id types for this DBS repository. The first one is the default.
      • getLockManagerName

        protected String getLockManagerName()
      • initLockManager

        protected void initLockManager()
      • getLock

        public Lock getLock​(String id)
        Description copied from interface: LockManager
        Gets the lock on a document.

        If the document does not exist, null is returned.

        Specified by:
        getLock in interface LockManager
        Parameters:
        id - the document id
        Returns:
        the existing lock, or null when there is no lock
      • removeLock

        public Lock removeLock​(String id,
                               String owner)
        Description copied from interface: LockManager
        Removes the lock from a document.

        The previous lock is returned.

        If owner is null then the lock is unconditionally removed.

        If owner is not null, it must match the existing lock owner for the lock to be removed. If it doesn't match, the returned lock will return true for Lock.getFailed().

        Specified by:
        removeLock in interface LockManager
        Parameters:
        id - the document id
        owner - the owner to check, or null for no check
        Returns:
        the previous lock (may be null), with a failed flag if locking failed
      • getBlobKeysPaths

        public List<List<String>> getBlobKeysPaths()
        Description copied from interface: DBSRepository
        Gets the list of blob keys paths of all possible blobs in all schemas.

        Each "path" is a list of path components. Example: [[content, data], [files, file, data], ...]

        Specified by:
        getBlobKeysPaths in interface DBSRepository
      • initBlobsPaths

        protected void initBlobsPaths()
      • isFulltextDisabled

        public boolean isFulltextDisabled()
        Description copied from interface: DBSRepository
        Checks if fulltext indexing (and search) is disabled.
        Specified by:
        isFulltextDisabled in interface DBSRepository
        Returns:
        true if fulltext indexing is disabled, false if it is enabled
      • isFulltextStoredInBlob

        public boolean isFulltextStoredInBlob()
        Description copied from interface: DBSRepository
        Checks if fulltext is stored in a blob.
        Specified by:
        isFulltextStoredInBlob in interface DBSRepository
        Returns:
        true if fulltext is stored in a blob, false if it is stored as a regular string
      • isFulltextSearchDisabled

        public boolean isFulltextSearchDisabled()
        Description copied from interface: DBSRepository
        Checks if fulltext search is disabled.
        Specified by:
        isFulltextSearchDisabled in interface DBSRepository
        Returns:
        true if fulltext search is disabled, false if it is enabled
      • isChangeTokenEnabled

        public boolean isChangeTokenEnabled()
        Description copied from interface: DBSRepository
        Checks if database-managed document change tokens are enabled.
        Specified by:
        isChangeTokenEnabled in interface DBSRepository
        Returns:
        true if the database maintains document change tokens