001: package com.sun.portal.netfile.shared;
002:
003: /**
004: * Constants for use in NetFile Java2
005: * Includes Operational constants (Request and Response constants),
006: * system type constants, port number constants.
007: *
008: * @author Suresh Yellamaraju
009: */
010:
011: public interface NetFileConstants {
012: /*
013: * System Type Constants
014: */
015: public static final int NF_NFS = 1;
016: public static final int NF_SMB = 2;
017: public static final int NF_NETWARE = 3;
018: public static final int NF_FTP = 4;
019:
020: /*
021: * Port Number Constants
022: */
023: public static final int NF_NFS_PORT = 2049;
024: public static final int NF_FTP_PORT = 21;
025: public static final int NF_SMB_PORT = 139;
026:
027: /*
028: * Mail Operations request constants
029: */
030: public static final int NF_REQ_MAIL = 501;
031:
032: /*
033: * Compress Operations request constants
034: */
035: public static final int NF_REQ_COMPRESS = 551;
036: public static final int NF_REQ_COMPRESS_DOWNLOAD = 552;
037:
038: /*
039: * File Operations Request constants
040: */
041: public static final int NF_REQ_LIST = 601;
042: public static final int NF_REQ_REFRESH = 602;
043: public static final int NF_REQ_MOVE = 603;
044: public static final int NF_REQ_OPEN = 604;
045: public static final int NF_REQ_DOWNLOAD = 605;
046: public static final int NF_REQ_UPLOAD = 606;
047: public static final int NF_REQ_DOWNLOADFOLDER = 607;
048: public static final int NF_REQ_RENAME = 608;
049: public static final int NF_REQ_CREATEFOLDER = 609;
050: public static final int NF_REQ_DELETEFILE = 610;
051: public static final int NF_REQ_FILEEXISTS = 611;
052: public static final int NF_REQ_DEL_TEMP_UPLOADFILE = 612;
053: public static final int NF_REQ_DELETEFOLDER = 613;
054:
055: /*
056: * System and Share operations request constants
057: */
058: public static final int NF_REQ_ADDSYSTEM = 651;
059: public static final int NF_REQ_REMOVESYSTEM = 652;
060: public static final int NF_REQ_ADDSHARE = 653;
061: public static final int NF_REQ_REMOVESHARE = 654;
062: public static final int NF_REQ_SAVESESSION = 655;
063:
064: /*
065: * Search operations request constants
066: */
067: public static final int NF_REQ_SEARCH_BYNAME = 701;
068:
069: /*
070: * Online Help request constants
071: */
072: public static final int NF_REQ_HELP = 801;
073: public static final int NF_REQ_HELP_PAGE = 802;
074:
075: /*
076: * i18n Constants
077: */
078: public static final int NF_REQ_GET_I18NBUCKET = 901;
079:
080: /*
081: * Other constants
082: */
083: public static final String NF_NOVALUE = "No Value Set";
084: public static final String NF_LOG_FILE_NAME = "srapNetFile";
085: public static final int NF_POOL_CONST = 30;
086: public static final int NF_POOLINCR_CONST = 30;
087:
088: /*
089: * Session Validity constants
090: */
091: public static final int NF_SESSION_VALID = 951;
092: public static final int NF_SESSION_INVALID = 952;
093:
094: /*
095: * Response Constants
096: */
097: public static final int NF_RESP_SUCCESS = 2001;
098: public static final int NF_RESP_FILEEXISTS = 2002;
099: public static final int NF_RESP_FILENOTEXISTS = 2003;
100: public static final int NF_RESP_NOWRITEPERMISSION = 2004;
101:
102: public static final int NF_RESP_FAILURE = 2100;
103: }
|