org.alfresco.filesys.avm
Class AVMShareMapper

java.lang.Object
  extended by org.alfresco.filesys.avm.AVMShareMapper
All Implemented Interfaces:
org.alfresco.jlan.server.core.ShareMapper, org.springframework.beans.factory.InitializingBean

public class AVMShareMapper
extends java.lang.Object
implements org.alfresco.jlan.server.core.ShareMapper, org.springframework.beans.factory.InitializingBean

AVM Filesystem Share Mapper Class

Provides access to store versions using the share name '_'.


Constructor Summary
AVMShareMapper()
          Default constructor
 
Method Summary
 void afterPropertiesSet()
           
 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.
 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 setDebug(boolean debug)
           
 void setServerConfiguration(org.alfresco.jlan.server.config.ServerConfiguration config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AVMShareMapper

public AVMShareMapper()
Default constructor

Method Detail

setServerConfiguration

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

setDebug

public void setDebug(boolean 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

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

hasDebug

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

Returns:
boolean

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:
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


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