org.alfresco.filesys.alfresco
Class HomeShareMapper

java.lang.Object
  extended by org.alfresco.filesys.alfresco.HomeShareMapper
All Implemented Interfaces:
org.alfresco.jlan.server.core.ShareMapper

public class HomeShareMapper
extends java.lang.Object
implements org.alfresco.jlan.server.core.ShareMapper

Home Share Mapper Class

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.


Field Summary
static java.lang.String HOME_FOLDER_SHARE
           
 
Constructor Summary
HomeShareMapper()
          Default constructor
 
Method Summary
 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(java.lang.String tohost, java.lang.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()
           
 java.lang.String getHomeFolderName()
          Return the home folder share name
protected  org.alfresco.jlan.server.filesys.DiskInterface getRepoDiskInterface()
           
 org.alfresco.jlan.server.core.SharedDeviceList getShareList(java.lang.String host, org.alfresco.jlan.server.SrvSession sess, boolean allShares)
          Return the list of available shares.
 boolean hasDebug()
          Check if debug output is enabled
 void initializeMapper(org.alfresco.jlan.server.config.ServerConfiguration config, org.springframework.extensions.config.ConfigElement params)
          Initialize the share mapper
 void setConfig(org.alfresco.jlan.server.config.ServerConfiguration config)
           
 void setDebug(boolean m_debug)
           
 void setHomeShareName(java.lang.String shareName)
           
 void setRepoDiskInterface(org.alfresco.jlan.server.filesys.DiskInterface diskInterface)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOME_FOLDER_SHARE

public static final java.lang.String HOME_FOLDER_SHARE
See Also:
Constant Field Values
Constructor Detail

HomeShareMapper

public HomeShareMapper()
Default constructor

Method Detail

setConfig

public void setConfig(org.alfresco.jlan.server.config.ServerConfiguration config)

setRepoDiskInterface

public void setRepoDiskInterface(org.alfresco.jlan.server.filesys.DiskInterface diskInterface)

setHomeShareName

public void setHomeShareName(java.lang.String shareName)

setDebug

public void setDebug(boolean m_debug)

initializeMapper

public void initializeMapper(org.alfresco.jlan.server.config.ServerConfiguration config,
                             org.springframework.extensions.config.ConfigElement params)
                      throws org.alfresco.jlan.server.config.InvalidConfigurationException
Initialize the share mapper

Specified by:
initializeMapper in interface org.alfresco.jlan.server.core.ShareMapper
Parameters:
config - ServerConfiguration
params - ConfigElement
Throws:
org.alfresco.jlan.server.config.InvalidConfigurationException

hasDebug

public final boolean hasDebug()
Check if debug output is enabled

Returns:
boolean

getHomeFolderName

public final java.lang.String getHomeFolderName()
Return the home folder share name

Returns:
String

getShareList

public org.alfresco.jlan.server.core.SharedDeviceList getShareList(java.lang.String host,
                                                                   org.alfresco.jlan.server.SrvSession sess,
                                                                   boolean allShares)
Return the list of available shares.

Specified by:
getShareList in interface org.alfresco.jlan.server.core.ShareMapper
Parameters:
host - String
sess - SrvSession
allShares - boolean
Returns:
SharedDeviceList

findShare

public org.alfresco.jlan.server.core.SharedDevice findShare(java.lang.String tohost,
                                                            java.lang.String name,
                                                            int typ,
                                                            org.alfresco.jlan.server.SrvSession sess,
                                                            boolean create)
                                                     throws java.lang.Exception
Find a share using the name and type for the specified client.

Specified by:
findShare in interface org.alfresco.jlan.server.core.ShareMapper
Parameters:
host - String
name - String
typ - int
sess - SrvSession
create - boolean
Returns:
SharedDevice
Throws:
org.alfresco.jlan.server.auth.InvalidUserException
java.lang.Exception

deleteShares

public void deleteShares(org.alfresco.jlan.server.SrvSession sess)
Delete temporary shares for the specified session

Specified by:
deleteShares in interface org.alfresco.jlan.server.core.ShareMapper
Parameters:
sess - SrvSession

closeMapper

public void closeMapper()
Close the share mapper, release any resources.

Specified by:
closeMapper in interface org.alfresco.jlan.server.core.ShareMapper

getRepoDiskInterface

protected org.alfresco.jlan.server.filesys.DiskInterface getRepoDiskInterface()

getFilesystemsConfigSection

protected org.alfresco.jlan.server.filesys.FilesystemsConfigSection getFilesystemsConfigSection()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.