org.alfresco.filesys.avm
Class AVMContext

java.lang.Object
  extended by org.alfresco.jlan.server.core.DeviceContext
      extended by org.alfresco.jlan.server.filesys.DiskDeviceContext
          extended by org.alfresco.filesys.alfresco.AlfrescoContext
              extended by org.alfresco.filesys.avm.AVMContext
All Implemented Interfaces:
CreateStoreCallback, CreateVersionCallback, PurgeStoreCallback, PurgeVersionCallback

public class AVMContext
extends AlfrescoContext
implements CreateStoreCallback, PurgeStoreCallback, CreateVersionCallback, PurgeVersionCallback

AVM Filesystem Context Class

Contains per filesystem context.


Field Summary
static int ShowAuthorStores
           
static int ShowNormalStores
           
static int ShowPreviewStores
           
static int ShowSiteStores
           
static int ShowStagingStores
           
static int VERSION_HEAD
           
 
Fields inherited from class org.alfresco.filesys.alfresco.AlfrescoContext
DBG_FILE, DBG_FILEIO, DBG_INFO, DBG_LOCK, DBG_PSEUDO, DBG_RENAME, DBG_SEARCH, m_debug
 
Constructor Summary
AVMContext()
          Default constructor allowing initialization by container.
AVMContext(java.lang.String filesysName, int showOptions, AVMDiskDriver avmDriver)
          Class constructor
AVMContext(java.lang.String filesysName, java.lang.String storePath, int version)
          Class constructor
 
Method Summary
 boolean allowAdminStagingWrites()
          Check if the admin user is allowed to write to web project staging stores
 void CloseContext()
          Close the filesystem context
protected  IOControlHandler createIOHandler(org.alfresco.jlan.server.filesys.DiskInterface filesysDriver)
          Create the I/O control handler for this filesystem type
 boolean getCreateStore()
           
 java.lang.String getFilesystemType()
          Return the filesystem type, either FileSystem.TypeFAT or FileSystem.TypeNTFS.
protected  org.alfresco.jlan.util.StringList getNewStoresQueue()
          Return the new stores queue, and reset the current queue
 java.lang.String getStorePath()
          Return the store path
protected  boolean hasNewStoresQueued()
          Check if there are any new stores queued for adding to the virtualization view
 void initialize(AlfrescoDiskDriver filesysDriver)
          Complete initialization by registering with a disk driver
 int isVersion()
          Return the version
 boolean isVirtualizationView()
          Check if the virtualization view is enabled
 void setAllowAdminStagingWrites(boolean writeable)
          Set the admin web project staging store writeable status
 void setCreateStore(boolean createStore)
           
 void setShowOptions(int showOptions)
           
 void setStorePath(java.lang.String path)
           
 void setStores(java.lang.String showAttr)
           
 void setVersion(int version)
           
 void setVirtualView(boolean isVirtualView)
           
 boolean showAuthorStores()
          Check if author stores should be shown in the virtualization view
 boolean showNormalStores()
          Check if normal stores should be shown in the virtualization view
 boolean showPreviewStores()
          Check if preview stores should be shown in the virtualization view
 boolean showSiteStores()
          Check if site data stores should be shown in the virtualization view
 boolean showStagingStores()
          Check if staging stores should be shown in the virtualization view
 boolean showStoreType(int storeType)
          Check if the specified store type should be visible
 void storeCreated(java.lang.String storeName)
          Create store call back handler
 void storePurged(java.lang.String storeName)
          Purge store call back handler
 void versionCreated(java.lang.String storeName, int versionID)
          Create version call back handler
 void versionPurged(java.lang.String storeName, int versionID)
          Purge version call back handler
 
Methods inherited from class org.alfresco.filesys.alfresco.AlfrescoContext
addDesktopAction, getDesktopActions, getGlobalDesktopActionConfig, getLockManager, getOpLockManager, getPseudoFileInterface, getSysAdminParams, getURLFileName, getURLPrefix, hasDebug, hasDesktopActions, hasPseudoFileInterface, hasURLFile, numberOfDesktopActions, setDebug, setDesktopActionList, setDesktopActions, setDisableChangeNotification, setGlobalDesktopActionConfig, setLockManager, setOpLockManager, setSysAdminParams, setURLFileName, startFilesystem
 
Methods inherited from class org.alfresco.jlan.server.filesys.DiskDeviceContext
addNotifyRequest, enableChangeHandler, getChangeHandler, getDeviceAttributes, getDiskInformation, getFilesystemAttributes, getQuotaManager, getStateCache, getVolumeInformation, hasChangeHandler, hasDiskInformation, hasFileServerNotifications, hasQuotaManager, hasStateCache, hasVolumeInformation, isCaseless, removeNotifyRequest, requiresStateCache, setDeviceAttributes, setDiskInformation, setFileServerNotifications, setFilesystemAttributes, setQuotaManager, setRequiresStateCache, setStateCache, setVolumeInformation
 
Methods inherited from class org.alfresco.jlan.server.core.DeviceContext
getConfigurationParameters, getDeviceName, getShareName, hasConfigurationParameters, isAvailable, setAvailable, setConfigurationParameters, setDeviceName, setShareName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION_HEAD

public static final int VERSION_HEAD
See Also:
Constant Field Values

ShowNormalStores

public static final int ShowNormalStores
See Also:
Constant Field Values

ShowSiteStores

public static final int ShowSiteStores
See Also:
Constant Field Values

ShowStagingStores

public static final int ShowStagingStores
See Also:
Constant Field Values

ShowAuthorStores

public static final int ShowAuthorStores
See Also:
Constant Field Values

ShowPreviewStores

public static final int ShowPreviewStores
See Also:
Constant Field Values
Constructor Detail

AVMContext

public AVMContext()
Default constructor allowing initialization by container.


AVMContext

public AVMContext(java.lang.String filesysName,
                  java.lang.String storePath,
                  int version)
Class constructor

Construct a context for a normal view onto a single store/version within AVM.

Parameters:
filesysName - String
storePath - String
version - int

AVMContext

public AVMContext(java.lang.String filesysName,
                  int showOptions,
                  AVMDiskDriver avmDriver)
Class constructor

Construct a context for a virtualization view onto all stores/versions within AVM.

Parameters:
filesysName - String
showOptions - int
avmDriver - AVMDiskDriver
Method Detail

setStorePath

public void setStorePath(java.lang.String path)

setVersion

public void setVersion(int version)

setShowOptions

public void setShowOptions(int showOptions)

setStores

public void setStores(java.lang.String showAttr)

setVirtualView

public void setVirtualView(boolean isVirtualView)

getCreateStore

public boolean getCreateStore()

setCreateStore

public void setCreateStore(boolean createStore)

initialize

public void initialize(AlfrescoDiskDriver filesysDriver)
Description copied from class: AlfrescoContext
Complete initialization by registering with a disk driver

Overrides:
initialize in class AlfrescoContext

getFilesystemType

public java.lang.String getFilesystemType()
Return the filesystem type, either FileSystem.TypeFAT or FileSystem.TypeNTFS.

Overrides:
getFilesystemType in class AlfrescoContext
Returns:
String

getStorePath

public final java.lang.String getStorePath()
Return the store path

Returns:
String

isVersion

public final int isVersion()
Return the version

Returns:
int

isVirtualizationView

public final boolean isVirtualizationView()
Check if the virtualization view is enabled

Returns:
boolean

allowAdminStagingWrites

public final boolean allowAdminStagingWrites()
Check if the admin user is allowed to write to web project staging stores

Returns:
boolean

setAllowAdminStagingWrites

public final void setAllowAdminStagingWrites(boolean writeable)
Set the admin web project staging store writeable status

Parameters:
writeable - boolean

hasNewStoresQueued

protected final boolean hasNewStoresQueued()
Check if there are any new stores queued for adding to the virtualization view

Returns:
boolean

getNewStoresQueue

protected org.alfresco.jlan.util.StringList getNewStoresQueue()
Return the new stores queue, and reset the current queue

Returns:
StringList

showNormalStores

public final boolean showNormalStores()
Check if normal stores should be shown in the virtualization view

Returns:
boolean

showSiteStores

public final boolean showSiteStores()
Check if site data stores should be shown in the virtualization view

Returns:
boolean

showAuthorStores

public final boolean showAuthorStores()
Check if author stores should be shown in the virtualization view

Returns:
boolean

showPreviewStores

public final boolean showPreviewStores()
Check if preview stores should be shown in the virtualization view

Returns:
boolean

showStagingStores

public final boolean showStagingStores()
Check if staging stores should be shown in the virtualization view

Returns:
boolean

showStoreType

public final boolean showStoreType(int storeType)
Check if the specified store type should be visible

Parameters:
storeType - int
Returns:
boolean

CloseContext

public void CloseContext()
Close the filesystem context

Overrides:
CloseContext in class org.alfresco.jlan.server.filesys.DiskDeviceContext

createIOHandler

protected IOControlHandler createIOHandler(org.alfresco.jlan.server.filesys.DiskInterface filesysDriver)
Create the I/O control handler for this filesystem type

Parameters:
filesysDriver - DiskInterface
Returns:
IOControlHandler

storeCreated

public void storeCreated(java.lang.String storeName)
Create store call back handler

Specified by:
storeCreated in interface CreateStoreCallback
Parameters:
storeName - String
versionID - int

storePurged

public void storePurged(java.lang.String storeName)
Purge store call back handler

Specified by:
storePurged in interface PurgeStoreCallback
Parameters:
storeName - String

versionCreated

public void versionCreated(java.lang.String storeName,
                           int versionID)
Create version call back handler

Specified by:
versionCreated in interface CreateVersionCallback
Parameters:
storeName - String
versionID - int

versionPurged

public void versionPurged(java.lang.String storeName,
                          int versionID)
Purge version call back handler

Specified by:
versionPurged in interface PurgeVersionCallback
Parameters:
storeName - String
versionID - The id of the purged version.


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