public class MultiTenantShareMapper extends Object implements ShareMapper, ConfigurationListener, org.springframework.beans.factory.InitializingBean
StsAccepted, StsIgnored, StsNewSessionsOnly, StsRestartRequired| Constructor and Description |
|---|
MultiTenantShareMapper()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
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.
|
DiskInterface |
getRepoDiskInterface() |
String |
getRootPath() |
SharedDeviceList |
getShareList(String host,
SrvSession sess,
boolean allShares)
Return the list of available shares.
|
String |
getStoreName() |
void |
init() |
void |
initializeMapper(ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params)
Initialize the share mapper
|
void |
setQuotaManager(QuotaManager quotaManager)
Set the quota manager to be used by multi-tenant shares
|
void |
setRepoDiskInterface(DiskInterface repoDiskInterface) |
void |
setRootPath(String m_rootPath) |
void |
setServerConfiguration(ServerConfiguration config) |
void |
setStoreName(String m_storeName) |
void |
setTenantShareName(String shareName) |
public void init()
public void initializeMapper(ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws InvalidConfigurationException
initializeMapper in interface ShareMapperconfig - ServerConfigurationparams - ConfigElementInvalidConfigurationExceptionpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic SharedDevice findShare(String host, String name, int typ, SrvSession sess, boolean create) throws InvalidUserException
findShare in interface ShareMapperhost - Stringname - Stringtyp - intsess - SrvSessioncreate - booleanInvalidUserExceptionpublic void deleteShares(SrvSession sess)
deleteShares in interface ShareMappersess - SrvSessionpublic SharedDeviceList getShareList(String host, SrvSession sess, boolean allShares)
getShareList in interface ShareMapperhost - Stringsess - SrvSessionallShares - booleanpublic void closeMapper()
closeMapper in interface ShareMapperpublic int configurationChanged(int id,
ServerConfiguration config,
Object newVal)
throws InvalidConfigurationException
configurationChanged in interface ConfigurationListenerid - intconfig - ServerconfigurationnewVal - ObjectInvalidConfigurationExceptionpublic void setServerConfiguration(ServerConfiguration config)
public void setTenantShareName(String shareName)
public void setQuotaManager(QuotaManager quotaManager)
quotaManager - QuotaManagerpublic void setRootPath(String m_rootPath)
public String getRootPath()
public void setStoreName(String m_storeName)
public String getStoreName()
public void setRepoDiskInterface(DiskInterface repoDiskInterface)
public DiskInterface getRepoDiskInterface()
Copyright © 2005–2014 Alfresco Software. All rights reserved.