public class ShareInfo extends Object implements DCEWriteable, DCEReadable
Holds the details of a share from a DCE/RPC request/response.
Modifier and Type | Field and Description |
---|---|
static int |
All |
static int |
Attrib |
static int |
Create |
static int |
Delete |
static int |
Device |
static int |
Disk |
static int |
Execute |
static int |
Hidden |
static int |
InfoLevel0 |
static int |
InfoLevel1 |
static int |
InfoLevel1005 |
static int |
InfoLevel2 |
static int |
InfoLevel502 |
static int |
IPC |
static int |
Perm |
static int |
PrintQueue |
static int |
Read |
static int |
Write |
Constructor and Description |
---|
ShareInfo()
Class constructor
|
ShareInfo(int lev)
Class constructor
|
ShareInfo(int lev,
String name,
int typ,
String comment)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearStrings()
Clear all string values
|
String |
getComment()
Return the comment
|
int |
getCurrentUsers()
Return the current number of users
|
int |
getFlags()
Get the share flags
|
int |
getInformationLevel()
Return the information level
|
int |
getMaximumUsers()
Return the maximum number of users allowed
|
String |
getName()
Return the share name
|
String |
getPassword()
Return the share password
|
String |
getPath()
Return the share local path
|
int |
getPermissions()
Return the share permissions
|
int |
getType()
Return the share type
|
String |
getTypeAsString()
Return the share type as a string
|
boolean |
isDevice()
Check if this is a device share
|
boolean |
isDisk()
Check if this is a disk share
|
boolean |
isHidden()
Check if this share is a hidden/admin share
|
boolean |
isNamedPipe()
Check if this is a named pipe share
|
boolean |
isPrinter()
Check if this is a printer share
|
void |
readObject(DCEBuffer buf)
Read the share information from the DCE/RPC buffer
|
void |
readStrings(DCEBuffer buf)
Read the strings for this share from the DCE/RPC buffer
|
void |
setComment(String str)
Set the share comment
|
void |
setCurrentUsers(int curUsers)
Set the current number of users
|
void |
setFlags(int flags)
Set the share flags
|
void |
setInformationLevel(int lev)
Set the information level
|
void |
setMaximumUsers(int maxUsers)
Set the maximum number of users
|
void |
setName(String name)
Set the share name
|
void |
setPath(String path)
Set the local path
|
void |
setPermissions(int perm)
Set the share permissions
|
void |
setType(int typ)
Set the share type
|
String |
toString()
Return the share information as a string
|
void |
writeObject(DCEBuffer buf,
DCEBuffer strBuf)
Write the share information to the DCE buffer
|
public static final int InfoLevel0
public static final int InfoLevel1
public static final int InfoLevel2
public static final int InfoLevel502
public static final int InfoLevel1005
public static final int Disk
public static final int PrintQueue
public static final int Device
public static final int IPC
public static final int Hidden
public static final int Read
public static final int Write
public static final int Create
public static final int Execute
public static final int Delete
public static final int Attrib
public static final int Perm
public static final int All
public ShareInfo()
public ShareInfo(int lev)
lev
- intpublic final int getInformationLevel()
public final String getName()
public final int getType()
public final int getFlags()
public final boolean isHidden()
public final boolean isDisk()
public final boolean isPrinter()
public final boolean isDevice()
public final boolean isNamedPipe()
public final int getPermissions()
public final int getMaximumUsers()
public final int getCurrentUsers()
public final String getPath()
public final String getPassword()
public final String getTypeAsString()
public final String getComment()
public final void setInformationLevel(int lev)
lev
- intpublic final void setType(int typ)
typ
- intpublic final void setFlags(int flags)
flags
- intpublic final void setName(String name)
name
- Stringpublic final void setComment(String str)
str
- Stringpublic final void setPermissions(int perm)
perm
- intpublic final void setMaximumUsers(int maxUsers)
maxUsers
- intpublic final void setCurrentUsers(int curUsers)
curUsers
- intpublic final void setPath(String path)
path
- Stringprotected final void clearStrings()
public 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
public void writeObject(DCEBuffer buf, DCEBuffer strBuf)
writeObject
in interface DCEWriteable
buf
- DCEBufferstrBuf
- DCEBufferCopyright © 2005–2018 Alfresco Software. All rights reserved.