Interface ContentTemplateService.Validator

    • Method Detail

      • validateCreate

        ValidationResult validateCreate​(ContentTemplate newContentTemplate)
                                 throws ServiceException
        Validate that the specified contentTemplate can be created by the current user.
        Parameters:
        newContentTemplate - the content to be created
        Returns:
        an immutable Validation result.
        Throws:
        ServiceException
      • validateGet

        ValidationResult validateGet​(ContentTemplateId contentTemplateId)
        Validate that current user has permission to view a particular template.
        Parameters:
        contentTemplateId -
        Returns:
      • validateCreateInstance

        default ValidationResult validateCreateInstance​(ContentBlueprintInstance instance)
        Validate instance is legit to create draft/page instance. instance must have a templateId of ContentTemplateIdWithId type. content of Instance must have title, space set, Current user must have Edit permission on the space.

        TODO CRA-1266 change default method to interface after Blueprint service in CC plugin implemented this interface.

        Parameters:
        instance -
        Returns: