public class AVMPath
extends java.lang.Object
Parses a share relative path into store, version and remaining path values.
| Modifier and Type | Class and Description |
|---|---|
static class |
AVMPath.LevelId |
| Modifier and Type | Field and Description |
|---|---|
static char |
AVM_SEPERATOR |
static java.lang.String |
AVM_SEPERATOR_STR |
static java.lang.String |
DataFolder |
static java.lang.String |
MetaDataFolder |
static java.lang.String |
VersionFolderPrefix |
static java.lang.String |
VersionNameHead |
static java.lang.String |
VersionsFolder |
| Constructor and Description |
|---|
AVMPath()
Default constructor
|
AVMPath(java.lang.String shrPath)
Class constructor
|
AVMPath(java.lang.String storeName,
int version,
java.lang.String path)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
generateFileId()
Generate a file id for the path
|
java.lang.String |
getAVMPath()
Return the AVM style path, in
|
java.lang.String |
getRelativePath()
Return the share relative path
|
java.lang.String |
getStoreName()
Return the store name
|
int |
getVersion()
Return the version id
|
java.lang.String |
getVersionString()
Return the version as a string
|
boolean |
hasRelativePath()
Check if there is a share relative path
|
boolean |
hasVersion()
Check if the version id was specified in the path
|
AVMPath.LevelId |
isLevel()
Return the level id for the path
|
boolean |
isPseudoPath()
Check if the path is to a pseudo folder in the virtualization view
|
boolean |
isReadOnlyAccess()
Check if the path is read-only
|
boolean |
isReadOnlyPseudoPath()
Check if hte path is a read-only part of the pseudo folder tree
|
boolean |
isRootPath()
Check if the path is the root path
|
boolean |
isValid()
Check if the path is valid
|
void |
parsePath(java.lang.String path)
Parse the path, for the virtualization view onto all stores/versions
|
void |
parsePath(java.lang.String storeName,
int version,
java.lang.String path)
Parse the path, to generate a path for a single store/version
|
void |
setReadOnlyAccess(boolean readOnly)
Set the path access, true for read-only access
|
java.lang.String |
toString()
Return the AVM path details as a string
|
public static final java.lang.String VersionNameHead
public static final java.lang.String VersionsFolder
public static final java.lang.String DataFolder
public static final java.lang.String MetaDataFolder
public static final java.lang.String VersionFolderPrefix
public static final char AVM_SEPERATOR
public static final java.lang.String AVM_SEPERATOR_STR
public AVMPath()
public AVMPath(java.lang.String shrPath)
Construct an AVM path for the virtualization view, with store and version folders
shrPath - Stringpublic AVMPath(java.lang.String storeName,
int version,
java.lang.String path)
Construct an AVM path for a standard view onto a store/version
storeName - Stringversion - intpath - Stringpublic AVMPath.LevelId isLevel()
public final boolean isReadOnlyAccess()
public final java.lang.String getStoreName()
public final boolean hasVersion()
public final int getVersion()
public final java.lang.String getVersionString()
public final boolean hasRelativePath()
public final java.lang.String getRelativePath()
public final java.lang.String getAVMPath()
public final boolean isValid()
public final boolean isPseudoPath()
public final boolean isReadOnlyPseudoPath()
public final boolean isRootPath()
public final void parsePath(java.lang.String path)
path - Stringpublic final void parsePath(java.lang.String storeName,
int version,
java.lang.String path)
storeName - Stringversion - intpath - Stringpublic final int generateFileId()
public final void setReadOnlyAccess(boolean readOnly)
access - booleanpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.