public class SharedDeviceList extends 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(String name)
Delete the specified shared device from the list.
|
Enumeration<SharedDevice> |
enumerateShares()
Return an enumeration to allow the shared devices to be listed.
|
SharedDevice |
findShare(String name)
Find the shared device with the specified name.
|
SharedDevice |
findShare(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
|
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(String name)
name
- String Name of the shared resource to remove from the list.public final Enumeration<SharedDevice> enumerateShares()
public final SharedDevice findShare(String name)
name
- Name of the shared device to find.public final SharedDevice findShare(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()
Copyright © 2005–2017 Alfresco Software. All rights reserved.