Interface FileInfo


public interface FileInfo

File Information Interface

Category: Baseline

Inherits from:

Client:


Field Summary
static int FileId
          the indentification ID of a given file
static java.util.Vector ListOfFiles
          the List of files under the given directory
static java.util.Vector ListOfPermissions
          the List of permissions of files under the given directory
static int ParentDirId
          the indentification ID of the parent directory of the given file
 
Method Summary
 java.util.Vector getListOfFiles()
          Get the list of files under the given subdirectory.
 java.util.Vector getListOfPermissions()
          Get the list of permissions under the given subdirectory.
 int getParentDirId()
          Get the indentification of the parent directory of the given file and directory.
 boolean Set(int FileId)
          Set the file ID for the given file.
 boolean Set(java.util.Vector ListOfFiles, int ParentDirId, java.util.Vector ListOfPermissions)
          Set the names of fils, parent directory ID, and a list of permissions assoicated with given file name.
 

Field Detail

FileId

public static final int FileId
the indentification ID of a given file

See Also:
Constant Field Values

ListOfFiles

public static final java.util.Vector ListOfFiles
the List of files under the given directory


ParentDirId

public static final int ParentDirId
the indentification ID of the parent directory of the given file

See Also:
Constant Field Values

ListOfPermissions

public static final java.util.Vector ListOfPermissions
the List of permissions of files under the given directory

Method Detail

Set

public boolean Set(int FileId)
Set the file ID for the given file. [Category: Baseline] [Clients: ]

Parameters:
FileId - the identification of a given file
Returns:
true if the operation was successful
Throws:
InvalidFileId - if FileId is not valid

Set

public boolean Set(java.util.Vector ListOfFiles,
                   int ParentDirId,
                   java.util.Vector ListOfPermissions)
Set the names of fils, parent directory ID, and a list of permissions assoicated with given file name. [Category: Baseline] [Clients: ]

Parameters:
ListOfFiles - the list of files under the given sub-directory
ParentDirId - the identification of a parent directory
ListOfPermissions - the list of permissions of files under the given sub-directory
Returns:
true if the operation was successful
Throws:
InvalidFileName - if there is any invalid file name in the list of files
InvalidParentDirId - if ParentDirId is not valid
InvalidPermission - if there is any invalid permission in the list of permissions

getListOfFiles

public java.util.Vector getListOfFiles()
Get the list of files under the given subdirectory. [Category: Baseline] [Clients: ]

Returns:
the list of files under the given subdirectory
Throws:
NoInstanceOfObject - if there is no object

getParentDirId

public int getParentDirId()
Get the indentification of the parent directory of the given file and directory. [Category: Baseline] [Clients: ]

Returns:
the indentification of the parent directory of the given file and directory
Throws:
NoInstanceOfObject - if there is no object

getListOfPermissions

public java.util.Vector getListOfPermissions()
Get the list of permissions under the given subdirectory. [Category: Baseline] [Clients: ]

Returns:
the list of permissions for the existing files and directory
Throws:
NoInstanceOfObject - if there is no object