Class DenormalisedPermissionsDdlExecutor


  • public class DenormalisedPermissionsDdlExecutor
    extends Object
    Executes DDL operations on supported databases for creating/dropping triggers and functions
    Since:
    7.11.0
    • Field Detail

      • CONTENT_SID_INDEX_NAME

        public static final String CONTENT_SID_INDEX_NAME
      • DENORMALISED_SID_NAME_TYPE_INDEX_NAME

        public static final String DENORMALISED_SID_NAME_TYPE_INDEX_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • DenormalisedPermissionsDdlExecutor

        public DenormalisedPermissionsDdlExecutor​(org.hibernate.SessionFactory sessionFactory,
                                                  org.springframework.transaction.PlatformTransactionManager txManager,
                                                  SchemaInformationService schemaInformationService)
    • Method Detail

      • createSpaceDatabaseObjects

        public void createSpaceDatabaseObjects​(boolean enableService)
        Creates all required space database objects except tables (they are managed by Hibernate)
      • createContentDatabaseObjects

        public void createContentDatabaseObjects​(boolean enableService)
        Creates all required content database objects except tables (they are managed by Hibernate)
      • deactivateSpaceTriggers

        public void deactivateSpaceTriggers()
      • deactivateContentTriggers

        public void deactivateContentTriggers()
      • activateSpaceTriggers

        public void activateSpaceTriggers()
      • activateContentTriggers

        public void activateContentTriggers()
      • dropSpaceDatabaseObjects

        public void dropSpaceDatabaseObjects()
      • dropContentDatabaseObjects

        public void dropContentDatabaseObjects()
      • getAdditionalIndexes

        public List<CreateIndexCommand> getAdditionalIndexes​(DdlExecutor ddlExecutor)
        Return all indexes. It's used when Confluence is being installed.
        Parameters:
        ddlExecutor - ddl executor
        Returns:
        list of indexes
      • getAdditionalSpaceIndexes

        public List<CreateIndexCommand> getAdditionalSpaceIndexes​(DdlExecutor ddlExecutor)
        Returns only space indexes. It's used either in the denormalised space upgrade task or in tests.
        Parameters:
        ddlExecutor - ddl executor
        Returns:
        list of indexes for denormalised space permissions
      • getDenormalisedSpacePermissionsIndexName

        public String getDenormalisedSpacePermissionsIndexName​(SpacePermissionType spacePermissionType)
      • getAdditionalContentIndexes

        public List<CreateIndexCommand> getAdditionalContentIndexes​(DdlExecutor ddlExecutor)
        Returns only content indexes. It's used either in the denormalised content upgrade task or in tests.
        Parameters:
        ddlExecutor - ddl executor
        Returns:
        list of indexes for denormalised content permissions
      • dropAdditionalContentIndexes

        public void dropAdditionalContentIndexes()
      • dropAdditionalSpaceIndexes

        public void dropAdditionalSpaceIndexes()