public class HomeShareMapper extends Object implements ShareMapper, ConfigurationListener
Maps disk and print share lookup requests to the list of shares defined in the server configuration.
Modifier and Type | Field and Description |
---|---|
static String |
HOME_DIRECTORY_SHARE |
StsAccepted, StsIgnored, StsNewSessionsOnly, StsRestartRequired
Constructor and Description |
---|
HomeShareMapper()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
closeMapper()
Close the share mapper, release any resources.
|
int |
configurationChanged(int id,
ServerConfiguration config,
Object newVal)
configuration changed
|
void |
deleteShares(SrvSession sess)
Delete temporary shares for the specified session
|
SharedDevice |
findShare(String host,
String name,
int typ,
SrvSession sess,
boolean create)
Find a share using the name and type for the specified client.
|
SharedDeviceList |
getShareList(String host,
SrvSession sess,
boolean allShares)
Return the list of available shares.
|
boolean |
hasDebug()
Check if debug output is enabled
|
void |
initializeMapper(ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params)
Initialize the share mapper
|
public static final String HOME_DIRECTORY_SHARE
public void initializeMapper(ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws InvalidConfigurationException
initializeMapper
in interface ShareMapper
config
- ServerConfigurationparams
- ConfigElementInvalidConfigurationException
public final boolean hasDebug()
public SharedDevice findShare(String host, String name, int typ, SrvSession sess, boolean create) throws InvalidUserException
findShare
in interface ShareMapper
host
- Stringname
- Stringtyp
- intsess
- SrvSessioncreate
- booleanInvalidUserException
public void deleteShares(SrvSession sess)
deleteShares
in interface ShareMapper
sess
- SrvSessionpublic SharedDeviceList getShareList(String host, SrvSession sess, boolean allShares)
getShareList
in interface ShareMapper
host
- Stringsess
- SrvSessionallShares
- booleanpublic void closeMapper()
closeMapper
in interface ShareMapper
public int configurationChanged(int id, ServerConfiguration config, Object newVal) throws InvalidConfigurationException
configurationChanged
in interface ConfigurationListener
id
- intconfig
- ServerconfigurationnewVal
- ObjectInvalidConfigurationException
Copyright © 2005–2018 Alfresco Software. All rights reserved.