Class FilesInformService

java.lang.Object
com.cloud.serverpak.services.FilesInformService

public class FilesInformService extends Object
The class is intended as a service that returns in its methods: how much space the cloud is busy for a specific user, a list of the user's files.
  • Constructor Details

    • FilesInformService

      public FilesInformService()
  • Method Details

    • getListFiles

      public List<FileInfo> getListFiles(String nameUser) throws IOException
      Returns a list of objects describing files for a specific user.
      Parameters:
      nameUser - username.
      Returns:
      A list of objects describing the files. it can return "Null" if there are no files.
      Throws:
      IOException - when working with files.
    • getFilesSize

      public long getFilesSize(String nameUser) throws IOException
      Returns the size of files in bytes.
      Parameters:
      nameUser - username.
      Returns:
      file size in bytes.
      Throws:
      IOException - when working with files.