Interface IDfLocation

All Superinterfaces:
IDfPersistentObject, IDfSysObject, IDfTypedObject

public interface IDfLocation extends IDfSysObject
This interface provides access to location properties. This class validates that the required properties name and link location are set before saving. Otherwise, an exception is thrown.
  • Method Details

    • setValidate

      void setValidate(boolean validate) throws DfException
      Sets whether this location should validate
      Parameters:
      validate - Inidicates this location should validate. If it is true, then no_validation attribute is false, and vice versa.
      Throws:
      DfException
    • isValidate

      boolean isValidate() throws DfException
      Determines whether this location validates.
      Returns:
      true if this location validates, false otherwise.
      Throws:
      DfException
    • setPathType

      void setPathType(int pathType) throws DfException
      Sets the path type of this location.
      Parameters:
      pathType - The path type of this location. The only allowed values are constants defined in DfLocation, DIRECTORY or FILE.
      Throws:
      DfException
    • getPathType

      int getPathType() throws DfException
      Gets the path type of this location. If the path type is not set or empty, this method returns NOT_DEFINE.
      Returns:
      The path type of this location. It is either DIRECTORY or FILE defined in DfLocation.
      Throws:
      DfException
    • setFileSystemPath

      void setFileSystemPath(String fileSystemPath) throws DfException
      Sets the file system path of this location.
      Parameters:
      fileSystemPath - The file system path of this location.
      Throws:
      DfException
    • getFileSystemPath

      String getFileSystemPath() throws DfException
      Gets the file system path of this location.
      Returns:
      The file system path of this location.
      Throws:
      DfException
    • setMountPointName

      void setMountPointName(String mountPointName) throws DfException
      Sets the mount point name of this location.
      Parameters:
      mountPointName - The mount point name of this location.
      Throws:
      DfException
    • setNewMountPoint

      void setNewMountPoint(String path) throws DfException
      Sets the mount point of this location by passing the file system path of the mount point. A new mount point object with a unique name is created when saved. The mount point name is _mountPoint.
      Throws:
      DfException
    • getMountPointName

      String getMountPointName() throws DfException
      Gets the mount point name of this location.
      Returns:
      The mount point name of this location.
      Throws:
      DfException
    • setSecurityType

      void setSecurityType(int securityType) throws DfException
      Sets the security type of this location.
      Parameters:
      securityType - The security type of this location. The valid values are PUBLIC_OPEN, PUBLIC, and PRIVATE defined in DfLocation.
      Throws:
      DfException
    • getSecurityType

      int getSecurityType() throws DfException
      Gets the security type of this location. If the security type is not set or empty, this method returns NOT_DEFINE.
      Returns:
      The security type of this location.
      Throws:
      DfException