public class HomeShareMapper extends Object implements ShareMapper
Maps disk share lookup requests to the list of shares defined in the server configuration and provides a dynamic home share mapped to the users home node.
| Modifier and Type | Field and Description |
|---|---|
static String |
HOME_FOLDER_SHARE |
| Constructor and Description |
|---|
HomeShareMapper()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeMapper()
Close the share mapper, release any resources.
|
void |
deleteShares(SrvSession sess)
Delete temporary shares for the specified session
|
SharedDevice |
findShare(String tohost,
String name,
int typ,
SrvSession sess,
boolean create)
Find a share using the name and type for the specified client.
|
protected FilesystemsConfigSection |
getFilesystemsConfigSection() |
String |
getHomeFolderName()
Return the home folder share name
|
org.alfresco.service.cmr.repository.NodeService |
getNodeService() |
PersonService |
getPersonService() |
QuotaManager |
getQuotaManager() |
DiskInterface |
getRepoDiskInterface() |
SharedDeviceList |
getShareList(String host,
SrvSession sess,
boolean allShares)
Return the list of available shares.
|
void |
init() |
void |
initializeMapper(ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params)
Initialize the share mapper
|
void |
setHomeShareName(String shareName) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPersonService(PersonService personService) |
void |
setQuotaManager(QuotaManager quotaManager) |
void |
setRepoDiskInterface(DiskInterface repoDiskInterface) |
void |
setServerConfiguration(ServerConfiguration config) |
public static final String HOME_FOLDER_SHARE
public void init()
public void setServerConfiguration(ServerConfiguration config)
public void setHomeShareName(String shareName)
public void initializeMapper(ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws InvalidConfigurationException
initializeMapper in interface ShareMapperconfig - ServerConfigurationparams - ConfigElementInvalidConfigurationExceptionpublic final String getHomeFolderName()
public SharedDeviceList getShareList(String host, SrvSession sess, boolean allShares)
getShareList in interface ShareMapperhost - Stringsess - SrvSessionallShares - booleanpublic SharedDevice findShare(String tohost, String name, int typ, SrvSession sess, boolean create) throws Exception
findShare in interface ShareMapperhost - Stringname - Stringtyp - intsess - SrvSessioncreate - booleanInvalidUserExceptionExceptionpublic void deleteShares(SrvSession sess)
deleteShares in interface ShareMappersess - SrvSessionpublic void closeMapper()
closeMapper in interface ShareMapperprotected FilesystemsConfigSection getFilesystemsConfigSection()
public void setPersonService(PersonService personService)
public PersonService getPersonService()
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public org.alfresco.service.cmr.repository.NodeService getNodeService()
public void setRepoDiskInterface(DiskInterface repoDiskInterface)
public DiskInterface getRepoDiskInterface()
public void setQuotaManager(QuotaManager quotaManager)
public QuotaManager getQuotaManager()
Copyright © 2005–2014 Alfresco Software. All rights reserved.