|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object examples.distcontrol.SearchResult
Represents a critical file. This class is simply an aggregation of
Field Summary | |
private Date |
date_
Holds the date when the file was taken or obtained. |
private static int |
DEFAULT_LEVEL
Default value for unclassified documents. |
private File |
file_
Holds the filedescription. |
private String |
location_
Holds the location where the file was taken or obtained. |
private int |
securityLevel_
Security level of this file. |
private int |
serverLevel_
Security level of the storage of this file. |
private String |
url_
Holds the server's URL where the file was taken or obtained. |
Constructor Summary | |
SearchResult(File file,
String location,
String url)
Creates a new SearchResult object. |
|
SearchResult(File file,
String location,
String url,
int serverLevel)
Creates an information of a critical file. |
Method Summary | |
private void |
debug(Object debugInfo)
DOCUMENT ME! |
Date |
getDate()
DOCUMENT ME! |
File |
getFile()
DOCUMENT ME! |
String |
getLocation()
DOCUMENT ME! |
int |
getSecurityLevel()
DOCUMENT ME! |
int |
getServerLevel()
DOCUMENT ME! |
String |
getURL()
DOCUMENT ME! |
void |
setSecurityLevel(int level)
DOCUMENT ME! |
String |
toString()
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final int DEFAULT_LEVEL
private File file_
private int securityLevel_
private int serverLevel_
private String location_
private String url_
private Date date_
Constructor Detail |
public SearchResult(File file, String location, String url)
file
- DOCUMENT ME!location
- DOCUMENT ME!url
- DOCUMENT ME!public SearchResult(File file, String location, String url, int serverLevel)
file
- DOCUMENT ME!location
- DOCUMENT ME!url
- DOCUMENT ME!serverLevel
- DOCUMENT ME!
IllegalArgumentException
- DOCUMENT ME!Method Detail |
public void setSecurityLevel(int level)
level
- DOCUMENT ME!public Date getDate()
public File getFile()
public int getSecurityLevel()
public int getServerLevel()
public String getLocation()
public String getURL()
public String toString()
private void debug(Object debugInfo)
debugInfo
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |