Class DefaultRepositoryVersionManager

  • All Implemented Interfaces:
    org.pentaho.platform.api.repository2.unified.IRepositoryVersionManager

    public class DefaultRepositoryVersionManager
    extends Object
    implements org.pentaho.platform.api.repository2.unified.IRepositoryVersionManager
    • Constructor Detail

      • DefaultRepositoryVersionManager

        public DefaultRepositoryVersionManager()
        This implmementation of IRepositoryVersionManager determines whether a repository element should be versioned based on setting in the MimeType class. These settings are defined in the various importHandlerMimeTypeDefinitions.xml files for the server and plugins. The masterVersioning and masterVersionComments flags default to true These two fields represent master switches. If a switch is false, then that function is disabled for this repository no matter what MimeType is affected. If the switch is true then the effective value of the flag will be dictated by the MimeType definition.
    • Method Detail

      • isVersionCommentEnabled

        public boolean isVersionCommentEnabled​(String fullPath)
        Specified by:
        isVersionCommentEnabled in interface org.pentaho.platform.api.repository2.unified.IRepositoryVersionManager
      • isVersioningEnabled

        public boolean isVersioningEnabled​(String fullPath)
        Specified by:
        isVersioningEnabled in interface org.pentaho.platform.api.repository2.unified.IRepositoryVersionManager
      • setPlatformMimeResolver

        public void setPlatformMimeResolver​(org.pentaho.platform.api.mimetype.IPlatformMimeResolver platformMimeResolver)
      • setMasterVersioning

        public void setMasterVersioning​(boolean masterVersioningEnabled)
      • setMasterVersionComments

        public void setMasterVersionComments​(boolean masterVersionCommentsEnabled)