public interface ShareMapper
The share mapper interface is used to allocate a share of the specified name and type. It is called by the SMB server to allocate disk and print type shares.
Modifier and Type | Method and Description |
---|---|
void |
closeMapper()
Close the share mapper, release any resources.
|
void |
deleteShares(SrvSession sess)
Delete any temporary shares created for the specified session
|
SharedDevice |
findShare(java.lang.String tohost,
java.lang.String name,
int typ,
SrvSession sess,
boolean create)
Find the share of the specified name/type
|
SharedDeviceList |
getShareList(java.lang.String host,
SrvSession sess,
boolean allShares)
Return the share list for the specified host.
|
void |
initializeMapper(ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params)
Initialize the share mapper
|
void initializeMapper(ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws InvalidConfigurationException
config
- ServerConfigurationparams
- ConfigElementInvalidConfigurationException
SharedDeviceList getShareList(java.lang.String host, SrvSession sess, boolean allShares)
host
- sess
- SrvSessionallShares
- booleanSharedDevice findShare(java.lang.String tohost, java.lang.String name, int typ, SrvSession sess, boolean create) throws java.lang.Exception
tohost
- Stringname
- Stringtyp
- intsess
- SrvSessioncreate
- booleanjava.lang.Exception
void deleteShares(SrvSession sess)
sess
- SrvSessionvoid closeMapper()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.