Class TemplateCreateRequest

java.lang.Object
com.gentics.contentnode.rest.model.request.TemplateCreateRequest
All Implemented Interfaces:
Serializable

public class TemplateCreateRequest extends Object implements Serializable
Request to create a new template
See Also:
  • Field Details

    • folderIds

      protected Set<String> folderIds
      Set of folder IDs (may be globalIds)
  • Constructor Details

    • TemplateCreateRequest

      public TemplateCreateRequest()
  • Method Details

    • getNodeId

      public Integer getNodeId()
      Optional node ID to create template in a channel
      Returns:
      node ID
    • setNodeId

      public TemplateCreateRequest setNodeId(Integer nodeId)
      Set the node ID
      Parameters:
      nodeId - node ID
      Returns:
      fluent API
    • getFolderIds

      public Set<String> getFolderIds()
      IDs of folders, where the template shall be created (at least one folder has to be set)
      Returns:
      folder IDs
    • setFolderIds

      public TemplateCreateRequest setFolderIds(Set<String> folderIds)
      Set folder IDs
      Parameters:
      folderIds - folder IDs
      Returns:
      fluent API
    • getTemplate

      public Template getTemplate()
      Template to create
      Returns:
      template
    • setTemplate

      public TemplateCreateRequest setTemplate(Template template)
      Set the template
      Parameters:
      template - template
      Returns:
      fluent API