public class SharedDeviceList
extends java.lang.Object
List of shared devices.
| Constructor and Description |
|---|
SharedDeviceList()
SharedDeviceList constructor.
|
SharedDeviceList(SharedDeviceList shrList)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addShare(SharedDevice shr)
Add a shared device to the list.
|
void |
addShares(SharedDeviceList shrList)
Add shares from the specified list to this list, using a shallow copy
|
SharedDevice |
deleteShare(java.lang.String name)
Delete the specified shared device from the list.
|
java.util.Enumeration |
enumerateShares()
Return an enumeration to allow the shared devices to be listed.
|
SharedDevice |
findShare(java.lang.String name)
Find the shared device with the specified name.
|
SharedDevice |
findShare(java.lang.String name,
int typ,
boolean nocase)
Find the shared device with the specified name and type
|
int |
numberOfShares()
Return the number of shared devices in the list.
|
void |
removeAllShares()
Remove all shares from the list
|
int |
removeUnavailableShares()
Remove shares that have an unavailable status from the list
|
java.lang.String |
toString()
Return the share list as a string
|
public SharedDeviceList()
public SharedDeviceList(SharedDeviceList shrList)
shrList - SharedDeviceListpublic final boolean addShare(SharedDevice shr)
shr - Shared device to be added to the list.public final void addShares(SharedDeviceList shrList)
shrList - SharedDeviceListpublic final SharedDevice deleteShare(java.lang.String name)
name - String Name of the shared resource to remove from the list.public final java.util.Enumeration enumerateShares()
public final SharedDevice findShare(java.lang.String name)
name - Name of the shared device to find.public final SharedDevice findShare(java.lang.String name, int typ, boolean nocase)
name - Name of shared device to findtyp - Type of shared device (see ShareType)nocase - Case sensitive search if false, else case insensitive searchpublic final int numberOfShares()
public final int removeUnavailableShares()
public final void removeAllShares()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.