Class CmsNewResourceBuilder


  • public class CmsNewResourceBuilder
    extends java.lang.Object
    Helper class for creating a new resource using the New dialog.

    • Method Detail

      • getCreatedResource

        public CmsResource getCreatedResource()
        Gets the created resource.

        This will null before the resource creation process.

        Returns:
        the created resource
      • getPropertyData

        public CmsPropertiesBean getPropertyData()
        Loads the property data with which the property dialog for the new resource should be initialized.

        Returns:
        the properties bean
      • safeCreateResource

        public CmsResource safeCreateResource()
        Creates a resource, but doesn't throw any exceptions.

        Exceptions will be passed to the onError method of registered callbacks.

        Returns:
        the created resource
      • setExplorerNameGeneration

        public void setExplorerNameGeneration​(boolean explorerNameGenerationMode)
        Sets the Explorer name generation mode.

        Parameters:
        explorerNameGenerationMode - the explorer name generation mode
      • setLocale

        public void setLocale​(java.util.Locale locale)
        Sets the locale.

        Parameters:
        locale - the locale
      • setModel

        public void setModel​(CmsResource modelResource)
        Sets the model resource.

        Parameters:
        modelResource - the model resource
      • setPatternPath

        public void setPatternPath​(java.lang.String destination)
        Sets the creation path containing a number pattern.

        Parameters:
        destination - the creation path
      • setSiteRoot

        public void setSiteRoot​(java.lang.String siteRoot)
        Sets the site root of the CMS context.

        Parameters:
        siteRoot - the site root
      • setType

        public void setType​(java.lang.String type)
        Sets the resource type name.

        Parameters:
        type - the resource type name