|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Remote Administration Protocol (RAP) provides operations
- to get list of share names;
- to get user informations;
- to get workstation informations;
- to get informations about print jobs;
- to manage print jobs.
Method Summary | |
void |
changePassword(java.lang.String user,
java.lang.String oldpwd,
java.lang.String newpwd)
|
void |
continuePrintJob(int jobId)
Resumes a paused print job |
void |
deletePrintJob(int jobId)
Deletes a print job |
CifsPrintJobInfo |
getPrintJobInfo(int jobId)
Lists print jobs in the specified printer queue |
CifsServerInfo |
getServerInfo()
Returns information about the current server |
CifsUserInfo |
getUserInfo(java.lang.String user)
Returns detailed information about a particular user |
CifsWorkstationInfo |
getWorkstationInfo()
Returns detailed information about a workstation. |
CifsPrinterQueueInfo[] |
listPrinterQueues()
|
CifsPrintJobInfo[] |
listPrintJobs(java.lang.String queuename)
Lists print jobs in the specified printer queue |
CifsServerInfo[] |
listServersInfo(java.lang.String domain,
int types)
Lists all computers of the specified type or types that are visible in the specified domain. |
java.lang.String[] |
listServersNames(java.lang.String domain,
int types)
Lists all computers of the specified type or types that are visible in the specified domain. |
CifsShareInfo[] |
listSharesInfo(boolean sort)
Returns the list of shares on the computer |
void |
pausePrintJob(int jobId)
Pauses a print job in a printer queue |
Methods inherited from interface org.gnu.jcifs.CifsSession |
disconnect, echo, getConnectTime, getNetBIOSName, getProperty, getServerAddress, getServerLanMan, getServerOS, getServerPrimaryDomain, getServerTime, getServerTimeZone, getSessionName, getShareName, isConnected, isUserLevelSecurity, reconnect, setAllowAutoReconnection, setProperty |
Method Detail |
public CifsShareInfo[] listSharesInfo(boolean sort) throws java.io.IOException
sort
- if true the names are sortedCifsShareInfo
objectsjava.io.IOException
- if an I/O error occurs.public CifsWorkstationInfo getWorkstationInfo() throws java.io.IOException
java.io.IOException
- if an I/O error occurs.public CifsUserInfo getUserInfo(java.lang.String user) throws java.io.IOException
user
- user namejava.io.IOException
- if an I/O error occurs.public CifsPrinterQueueInfo[] listPrinterQueues() throws java.io.IOException
java.io.IOException
- if an I/O error occurs.public CifsPrintJobInfo getPrintJobInfo(int jobId) throws java.io.IOException
queuename
- printer queue namejava.io.IOException
- if an I/O error occurs.public CifsPrintJobInfo[] listPrintJobs(java.lang.String queuename) throws java.io.IOException
queuename
- printer queue namejava.io.IOException
- if an I/O error occurs.public void pausePrintJob(int jobId) throws java.io.IOException
jobId
- print job idjava.io.IOException
- if an I/O error occurs.public void continuePrintJob(int jobId) throws java.io.IOException
jobId
- print job idjava.io.IOException
- if an I/O error occurs.public void deletePrintJob(int jobId) throws java.io.IOException
jobId
- print job idjava.io.IOException
- if an I/O error occurs.public CifsServerInfo[] listServersInfo(java.lang.String domain, int types) throws java.io.IOException
domain
- the name of the workgroup in which to enumerate computers
of the specified type or types. If domain is null, servers
are enumerated for the current domain of the computertypes
- the type or types of computer to enumerate. Computer that
match at least one of the specified types are returned (SV_*)java.io.IOException
- if an I/O error occurs.public java.lang.String[] listServersNames(java.lang.String domain, int types) throws java.io.IOException
domain
- the name of the workgroup in which to enumerate computers
of the specified type or types. If domain is null, servers
are enumerated for the current domain of the computertypes
- the type or types of computer to enumerate. Computer that
match at least one of the specified types are returned (SV_*)java.lang.String
(sorted)java.io.IOException
- if an I/O error occurs.public CifsServerInfo getServerInfo() throws java.io.IOException
java.io.IOException
- if an I/O error occurs.public void changePassword(java.lang.String user, java.lang.String oldpwd, java.lang.String newpwd) throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |