org.alfresco.filesys.avm
Class StorePseudoFile

java.lang.Object
  extended by org.alfresco.jlan.server.filesys.pseudo.PseudoFile
      extended by org.alfresco.filesys.avm.StorePseudoFile
Direct Known Subclasses:
WebProjectStorePseudoFile

public class StorePseudoFile
extends org.alfresco.jlan.server.filesys.pseudo.PseudoFile

Store Pseudo File Class

Represents an AVM store as a folder.


Field Summary
 
Fields inherited from class org.alfresco.jlan.server.filesys.pseudo.PseudoFile
_creationDateTime
 
Constructor Summary
StorePseudoFile(AVMStoreDescriptor storeDesc, java.lang.String relPath, int storeType)
          Class constructor
StorePseudoFile(java.lang.String storeName, java.lang.String relPath)
          Class constructor
 
Method Summary
 org.alfresco.jlan.server.filesys.NetworkFile getFile(java.lang.String netPath)
          Return a network file for reading/writing the pseudo file
 org.alfresco.jlan.server.filesys.FileInfo getFileInfo()
          Return the file information for the pseudo file
 java.lang.String getUserName()
          Get the owner of this sandbox
 java.lang.String getWebProject()
          Get the web project that this store links to, or null if not linked
 boolean hasUserName()
          Check if this store is an author sandbox
 boolean hasWebProject()
          Check if this store is linked to a web project
 int isStoreType()
          Return the store type
 void setStoreType(int storeType)
          Set the store type
 void setUserName(java.lang.String userName)
          Set the owner of this sandbox
 void setWebProject(java.lang.String webProject)
          Set the web project that this store is linked to
 
Methods inherited from class org.alfresco.jlan.server.filesys.pseudo.PseudoFile
getAttributes, getFileName, getInfo, isDirectory, isFile, isHidden, isReadOnly, setFileInfo, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StorePseudoFile

public StorePseudoFile(AVMStoreDescriptor storeDesc,
                       java.lang.String relPath,
                       int storeType)
Class constructor

Parameters:
storeDesc - AVMStoreDescriptor
relPath - String
storeType - int

StorePseudoFile

public StorePseudoFile(java.lang.String storeName,
                       java.lang.String relPath)
Class constructor

Parameters:
storeName - String
relPath - String
Method Detail

getFile

public org.alfresco.jlan.server.filesys.NetworkFile getFile(java.lang.String netPath)
Return a network file for reading/writing the pseudo file

Specified by:
getFile in class org.alfresco.jlan.server.filesys.pseudo.PseudoFile
Parameters:
netPath - String
Returns:
NetworkFile

getFileInfo

public org.alfresco.jlan.server.filesys.FileInfo getFileInfo()
Return the file information for the pseudo file

Specified by:
getFileInfo in class org.alfresco.jlan.server.filesys.pseudo.PseudoFile
Returns:
FileInfo

isStoreType

public final int isStoreType()
Return the store type

Returns:
int

hasWebProject

public final boolean hasWebProject()
Check if this store is linked to a web project

Returns:
boolean

getWebProject

public final java.lang.String getWebProject()
Get the web project that this store links to, or null if not linked

Returns:
String

setWebProject

public final void setWebProject(java.lang.String webProject)
Set the web project that this store is linked to

Parameters:
webProject - String

hasUserName

public final boolean hasUserName()
Check if this store is an author sandbox

Returns:
boolean

getUserName

public final java.lang.String getUserName()
Get the owner of this sandbox

Returns:
String

setUserName

public final void setUserName(java.lang.String userName)
Set the owner of this sandbox

Parameters:
userName - String

setStoreType

public final void setStoreType(int storeType)
Set the store type

Parameters:
storeType - int


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