public class HomeShareMapper extends Object implements org.alfresco.jlan.server.core.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(org.alfresco.jlan.server.SrvSession sess)
Delete temporary shares for the specified session
|
org.alfresco.jlan.server.core.SharedDevice |
findShare(String tohost,
String name,
int typ,
org.alfresco.jlan.server.SrvSession sess,
boolean create)
Find a share using the name and type for the specified client.
|
protected org.alfresco.jlan.server.filesys.FilesystemsConfigSection |
getFilesystemsConfigSection() |
String |
getHomeFolderName()
Return the home folder share name
|
org.alfresco.service.cmr.repository.NodeService |
getNodeService() |
PersonService |
getPersonService() |
org.alfresco.jlan.server.filesys.quota.QuotaManager |
getQuotaManager() |
org.alfresco.jlan.server.filesys.DiskInterface |
getRepoDiskInterface() |
org.alfresco.jlan.server.core.SharedDeviceList |
getShareList(String host,
org.alfresco.jlan.server.SrvSession sess,
boolean allShares)
Return the list of available shares.
|
void |
init() |
void |
initializeMapper(org.alfresco.jlan.server.config.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(org.alfresco.jlan.server.filesys.quota.QuotaManager quotaManager) |
void |
setRepoDiskInterface(org.alfresco.jlan.server.filesys.DiskInterface repoDiskInterface) |
void |
setServerConfiguration(org.alfresco.jlan.server.config.ServerConfiguration config) |
public static final String HOME_FOLDER_SHARE
public void init()
public void setServerConfiguration(org.alfresco.jlan.server.config.ServerConfiguration config)
public void setHomeShareName(String shareName)
public void initializeMapper(org.alfresco.jlan.server.config.ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws org.alfresco.jlan.server.config.InvalidConfigurationException
initializeMapper
in interface org.alfresco.jlan.server.core.ShareMapper
config
- ServerConfigurationparams
- ConfigElementorg.alfresco.jlan.server.config.InvalidConfigurationException
public final String getHomeFolderName()
public org.alfresco.jlan.server.core.SharedDeviceList getShareList(String host, org.alfresco.jlan.server.SrvSession sess, boolean allShares)
getShareList
in interface org.alfresco.jlan.server.core.ShareMapper
host
- Stringsess
- SrvSessionallShares
- booleanpublic org.alfresco.jlan.server.core.SharedDevice findShare(String tohost, String name, int typ, org.alfresco.jlan.server.SrvSession sess, boolean create) throws Exception
findShare
in interface org.alfresco.jlan.server.core.ShareMapper
tohost
- Stringname
- Stringtyp
- intsess
- SrvSessioncreate
- booleanorg.alfresco.jlan.server.auth.InvalidUserException
Exception
public void deleteShares(org.alfresco.jlan.server.SrvSession sess)
deleteShares
in interface org.alfresco.jlan.server.core.ShareMapper
sess
- SrvSessionpublic void closeMapper()
closeMapper
in interface org.alfresco.jlan.server.core.ShareMapper
protected org.alfresco.jlan.server.filesys.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(org.alfresco.jlan.server.filesys.DiskInterface repoDiskInterface)
public org.alfresco.jlan.server.filesys.DiskInterface getRepoDiskInterface()
public void setQuotaManager(org.alfresco.jlan.server.filesys.quota.QuotaManager quotaManager)
public org.alfresco.jlan.server.filesys.quota.QuotaManager getQuotaManager()
Copyright © 2005–2017 Alfresco Software. All rights reserved.