Class JobDefinition.UploadSourceWithPermission

java.lang.Object
net.sf.basedb.opengrid.JobDefinition.UploadSourceWithPermission
Enclosing class:
JobDefinition

public static class JobDefinition.UploadSourceWithPermission extends Object
Class for storing a file and a permission as one entity. If no permission is specified, the default is to use FilePermission.USER_RW. If the uploaded file name ends with '.sh' the default is FilePermission.USER_RWX.
  • Field Details

    • EXECUTABLE_FILES

      public static Set<String> EXECUTABLE_FILES
      File endings that should automatially be executable when uploaded.
    • upload

      private final UploadSource upload
    • permission

      private final FilePermission permission
  • Constructor Details

  • Method Details

    • isExecutable

      public static boolean isExecutable(String fileName)
    • getUploadSource

      public UploadSource getUploadSource()
    • getFilePermission

      public FilePermission getFilePermission()