Class FolderWrapper

    • Constructor Detail

      • FolderWrapper

        public FolderWrapper​(FolderData folder)
        Constructor of the FolderWrapper class.
        Parameters:
        folder - FolderData to contain.
      • FolderWrapper

        public FolderWrapper​(Folder folder)
        Constructor of the FolderWrapper class.
        Parameters:
        folder - Folder to contain.
    • Method Detail

      • asFolderData

        public FolderData asFolderData()
        Gets the folder contained in the FolderWrapper
        Returns:
        the FolderData.
      • getName

        public String getName()
        Gets the name of the folder
        Returns:
        name.
      • setName

        public void setName​(String name)
        Sets the name of the folder.
        Parameters:
        name - The name of the folder. Mustn't be null.
        Throws:
        IllegalArgumentException - If the name is null.
      • getDescription

        public String getDescription()
        Gets the folder description
        Returns:
        The folder description.
      • setDescription

        public void setDescription​(String description)
        Sets the description of the folder.
        Parameters:
        description - The folder description.
      • setImage

        public void setImage​(Long id)
        Sets the image associated to the folder
        Parameters:
        id - Id of the image to associate.
      • setImage

        public void setImage​(ImageWrapper image)
        Sets the image associated to the folder
        Parameters:
        image - Image to associate.