*** This interface provides Binary Compatibility only, not Source Compatibility ***

Interface FileInterface

All Superinterfaces:
com.sas.services.information.metadata.DeployedDataPackageInterface, MetadataInterface, PublicObjectInterface, Remote

@SASScope("ALL") @BinaryCompatibilityOnly public interface FileInterface extends DeployedDataPackageInterface
  • Method Details

    • isARelativeName

      boolean isARelativeName() throws ServiceException, RemoteException
      Get the boolean flag indicating if the file name is relative.
      Returns:
      true if the file name is a relative path, false otherwise.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • setIsARelativeName

      void setIsARelativeName(boolean isRelative) throws ServiceException, RemoteException
      Set the flag indicating the file name is relative to the directory path.
      Parameters:
      isRelative - true if the file name is relative, false otherwise.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • getFileName

      String getFileName() throws ServiceException, RemoteException
      Get the file name string.
      Returns:
      The file name string.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • setFileName

      void setFileName(String name) throws ServiceException, RemoteException
      Set the file name string.
      Parameters:
      name - The new file name.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • getFileExtension

      String getFileExtension() throws ServiceException, RemoteException
      Get the file extension.
      Returns:
      The file extension string.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • setFileExtension

      void setFileExtension(String extension) throws ServiceException, RemoteException
      Set the file extension.
      Parameters:
      extension - The new extension string.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • getTextRole

      String getTextRole() throws ServiceException, RemoteException
      Set the text role for the file.
      Returns:
      The String with the file's text role.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • setTextRole

      void setTextRole(String textRole) throws ServiceException, RemoteException
      Set the text role for the file.
      Parameters:
      textRole - The text role string.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • getTextType

      String getTextType() throws ServiceException, RemoteException
      Get the file's text type.
      Returns:
      The file's text type string.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • setTextType

      void setTextType(String textType) throws ServiceException, RemoteException
      Set the file's text type.
      Parameters:
      textType - The file's text type string.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • getDirectories

      List getDirectories() throws ServiceException, RemoteException
      Get the list of Directories associated with this File.
      Returns:
      A List of DirectoryInterface objects associated with this File.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • addDirectory

      void addDirectory(DirectoryInterface directory) throws ServiceException, RemoteException
      Add a directory to this file's list of associated directories.
      Parameters:
      directory - A DirectoryInterface object this file is in.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • removeDirectory

      void removeDirectory(DirectoryInterface directory) throws ServiceException, RemoteException
      Remove this file from a Directory.
      Parameters:
      directory - A DirectoryInterface object that this File is being removed from.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • setDirectories

      void setDirectories(List directories) throws ServiceException, RemoteException
      Set the list of directories that this file is in.
      Parameters:
      directories - A List of DirectoryInterface objects that this file is in.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • getScriptedConnections

      List getScriptedConnections() throws ServiceException, RemoteException
      If this is a connection script, get the list of connections it runs for.
      Returns:
      A List of SASClientConnectionInterface objects that this script executes for.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • addScriptedConnection

      void addScriptedConnection(SASClientConnectionInterface connection) throws ServiceException, RemoteException
      Add a SASClientConnection to the list of connections that this script executes for.
      Parameters:
      connection - A new connection to add to the scripted connections list.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • removeScriptedConnection

      void removeScriptedConnection(SASClientConnectionInterface connection) throws ServiceException, RemoteException
      Remove a SASClientConnection from the list of connections that this script executes for.
      Parameters:
      connection - The connection to remove from the scripted connections list.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.
    • setScriptedConnections

      void setScriptedConnections(List connections) throws ServiceException, RemoteException
      Set the list of scripted connection this script executes for.
      Parameters:
      connections - The list of SASClientConnectionInterface objects that this file acts as a script for.
      Throws:
      ServiceException - If a server error occurs.
      RemoteException - In the event of remote object failure.