Class ReferencedSyncableObjectsListResponse

java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.ReferencedSyncableObjectsListResponse
All Implemented Interfaces:
Serializable

public class ReferencedSyncableObjectsListResponse extends com.gentics.contentnode.rest.model.response.GenericResponse
Response containing directly linked objects and indirect dependencies for an object that should be synchronised to a master channel.
See Also:
  • Constructor Details

    • ReferencedSyncableObjectsListResponse

      public ReferencedSyncableObjectsListResponse(com.gentics.contentnode.rest.model.response.Message message, com.gentics.contentnode.rest.model.response.ResponseInfo responseInfo)
      Constructor from GenericResponse.
      Parameters:
      message - The message that should be displayed to the user
      responseInfo - ResponseInfo with the status of the response
    • ReferencedSyncableObjectsListResponse

      public ReferencedSyncableObjectsListResponse(Map<com.gentics.contentnode.rest.model.ContentNodeItem.ItemType,ReferencedSyncableObjectsListResponse.SyncDependencies> dependencies, List<com.gentics.contentnode.rest.model.Page> pages, int pagesWithoutPermission, List<com.gentics.contentnode.rest.model.File> files, int filesWithoutPermission, List<com.gentics.contentnode.rest.model.Image> images, int imagesWithoutPermission)
      Default constructor with no message and a response info containing just the response code OK.
      Parameters:
      dependencies - The map of indirect dependencies
      pages - The directly linked pages
      pagesWithoutPermission - The number of pages not visible to the current user
      files - The directly linked files
      filesWithoutPermission - The number of files not visible to the current user
      images - The directly linked images
      imagesWithoutPermission - The number of images not visible to the current user
  • Method Details

    • isHaveDependencies

      public boolean isHaveDependencies()
      Flag indicating if there are any dependencies at all.
      Returns:
      true if there are any direct or indirect dependencies, and false otherwise.
    • getDependencies

      public Map<com.gentics.contentnode.rest.model.ContentNodeItem.ItemType,ReferencedSyncableObjectsListResponse.SyncDependencies> getDependencies()
      Get the indirect dependencies.
      Returns:
      The indirect dependencies
    • setDependencies

      public void setDependencies(Map<com.gentics.contentnode.rest.model.ContentNodeItem.ItemType,ReferencedSyncableObjectsListResponse.SyncDependencies> dependencies)
      Set the indirect dependencies.
      Parameters:
      dependencies - The indirect dependencies
    • getPages

      public List<com.gentics.contentnode.rest.model.Page> getPages()
      Get the directly linked pages.
      Returns:
      The directly linked pages
    • setPages

      public void setPages(List<com.gentics.contentnode.rest.model.Page> pages)
      Set the directly linked pages.
      Parameters:
      pages - The directly linked pages
    • getPagesTotal

      public int getPagesTotal()
      Get the number of directly linked pages.
      Returns:
      The number of directly linked pages.
    • setPagesTotal

      public void setPagesTotal(int pagesTotal)
      Set the number of directly linked pages.
      Parameters:
      pagesTotal - The number of directly linked pages
    • getPagesWithoutPermission

      public int getPagesWithoutPermission()
      Get the number of pages not visible to the current user.
      Returns:
      The number of pages not visible to the current user
    • setPagesWithoutPermission

      public void setPagesWithoutPermission(int pagesWithoutPermission)
      Set the number of pages not visible to the current user.
      Parameters:
      pagesWithoutPermission - The number of pages not visible to the current user
    • getFiles

      public List<com.gentics.contentnode.rest.model.File> getFiles()
      Get the directly linked files.
      Returns:
      The directly linked files
    • setFiles

      public void setFiles(List<com.gentics.contentnode.rest.model.File> files)
      Set the directly linked files.
      Parameters:
      files - The directly linked files
    • getFilesTotal

      public int getFilesTotal()
      Get the number of directly linked files.
      Returns:
      The number of directly linked files
    • setFilesTotal

      public void setFilesTotal(int filesTotal)
      Set the number of directly linked files.
      Parameters:
      filesTotal - The number of directly linked files
    • getFilesWithoutPermission

      public int getFilesWithoutPermission()
      Get the number of files not visible to the current user.
      Returns:
      The number of files not visible to the current user
    • setFilesWithoutPermission

      public void setFilesWithoutPermission(int filesWithoutPermission)
      Set the number of files not visible to the current user.
      Parameters:
      filesWithoutPermission - The number of files not visible to the current user
    • getImages

      public List<com.gentics.contentnode.rest.model.Image> getImages()
      Get the directly linked images.
      Returns:
      The directly linked images
    • setImages

      public void setImages(List<com.gentics.contentnode.rest.model.Image> images)
      Set the directly linked images
      Parameters:
      images - The directly linked images
    • getImagesTotal

      public int getImagesTotal()
      Get the number of directly linked images.
      Returns:
      The number of directly linked images
    • setImagesTotal

      public void setImagesTotal(int imagesTotal)
      Set the number of directly linked images
      Parameters:
      imagesTotal - The number of directly linked images
    • getImagesWithoutPermission

      public int getImagesWithoutPermission()
      Get the number of images not visible to the current user.
      Returns:
      The number of images not visible to the current user
    • setImagesWithoutPermission

      public void setImagesWithoutPermission(int imagesWithoutPermission)
      Set the number of images not visible to the current user
      Parameters:
      imagesWithoutPermission - The number of images not visible to the current user