Class HomeShareMapper

  • All Implemented Interfaces:
    org.alfresco.jlan.server.core.ShareMapper

    public class HomeShareMapper
    extends 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.

    Author:
    GKSpencer, mrogers
    • Constructor Detail

      • HomeShareMapper

        public HomeShareMapper()
        Default constructor
    • Method Detail

      • init

        public void init()
      • setServerConfiguration

        public void setServerConfiguration​(org.alfresco.jlan.server.config.ServerConfiguration config)
      • setHomeShareName

        public void setHomeShareName​(String shareName)
      • 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
      • getHomeFolderName

        public final String getHomeFolderName()
        Return the home folder share name
        Returns:
        String
      • getShareList

        public org.alfresco.jlan.server.core.SharedDeviceList getShareList​(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​(String tohost,
                                                                    String name,
                                                                    int typ,
                                                                    org.alfresco.jlan.server.SrvSession sess,
                                                                    boolean create)
                                                             throws 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:
        tohost - String
        name - String
        typ - int
        sess - SrvSession
        create - boolean
        Returns:
        SharedDevice
        Throws:
        org.alfresco.jlan.server.auth.InvalidUserException
        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
      • getFilesystemsConfigSection

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

        public void setPersonService​(PersonService personService)
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
      • getNodeService

        public org.alfresco.service.cmr.repository.NodeService getNodeService()
      • setRepoDiskInterface

        public void setRepoDiskInterface​(org.alfresco.jlan.server.filesys.DiskInterface repoDiskInterface)
      • getRepoDiskInterface

        public org.alfresco.jlan.server.filesys.DiskInterface getRepoDiskInterface()
      • setQuotaManager

        public void setQuotaManager​(org.alfresco.jlan.server.filesys.quota.QuotaManager quotaManager)
      • getQuotaManager

        public org.alfresco.jlan.server.filesys.quota.QuotaManager getQuotaManager()