public class WorkstationInfo extends Object implements DCEWriteable, DCEReadable
Modifier and Type | Field and Description |
---|---|
static int |
InfoLevel100 |
Constructor and Description |
---|
WorkstationInfo()
Default constructor
|
WorkstationInfo(int lev)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearStrings()
Clear the string values
|
String |
getDomain()
Get the domain/workgroup
|
int |
getInformationLevel()
Get the information level
|
String |
getLogonDomain()
Return the workstations logon domain.
|
int |
getMajorVersion()
Get the workstation major version
|
int |
getMinorVersion()
Get the workstation minor version
|
String |
getOtherDomains()
Return the list of domains that the workstation is enlisted in.
|
int |
getPlatformId()
Get the workstation platform id
|
String |
getUserName()
Reutrn the user name
|
String |
getWorkstationName()
Get the workstation name
|
void |
readObject(DCEBuffer buf)
Read the workstation information from the DCE/RPC buffer
|
void |
readStrings(DCEBuffer buf)
Read the strings for this workstation from the DCE/RPC buffer
|
void |
setDomain(String domain)
Set the domain/workgroup
|
void |
setInformationLevel(int lev)
Set the information level
|
void |
setLogonDomain(String logdom)
Set the logon domain name.
|
void |
setOtherDomains(String othdom)
Set the other domains that this workstation is enlisted in.
|
void |
setPlatformId(int id)
Set the platform id
|
void |
setUserName(String user)
Set the logged in user name
|
void |
setVersion(int verMajor,
int verMinor)
Set the version
|
void |
setWorkstationName(String name)
Set the workstation name
|
String |
toString()
Return the workstation information as a string
|
void |
writeObject(DCEBuffer buf,
DCEBuffer strBuf)
Write a workstation information structure
|
public static final int InfoLevel100
public WorkstationInfo()
public WorkstationInfo(int lev)
lev
- intpublic final int getInformationLevel()
public final String getWorkstationName()
public final String getDomain()
public final int getPlatformId()
public final int getMajorVersion()
public final int getMinorVersion()
public final String getUserName()
public String getLogonDomain()
public String getOtherDomains()
public void setLogonDomain(String logdom)
logdom
- java.lang.Stringpublic void setOtherDomains(String othdom)
othdom
- java.lang.Stringpublic final void setWorkstationName(String name)
name
- Stringpublic final void setDomain(String domain)
domain
- Stringpublic final void setInformationLevel(int lev)
lev
- intpublic final void setPlatformId(int id)
id
- intpublic final void setVersion(int verMajor, int verMinor)
verMajor
- intverMinor
- intpublic final void setUserName(String user)
user
- Stringprotected final void clearStrings()
public void writeObject(DCEBuffer buf, DCEBuffer strBuf)
writeObject
in interface DCEWriteable
buf
- DCEBufferstrBuf
- DCEBufferpublic void readObject(DCEBuffer buf) throws DCEBufferException
readObject
in interface DCEReadable
buf
- DCEBufferDCEBufferException
public void readStrings(DCEBuffer buf) throws DCEBufferException
readStrings
in interface DCEReadable
buf
- DCEBufferDCEBufferException
Copyright © 2005–2018 Alfresco Software. All rights reserved.