public class AVMPath extends 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 String |
AVM_SEPERATOR_STR |
static String |
DataFolder |
static String |
MetaDataFolder |
static String |
VersionFolderPrefix |
static String |
VersionNameHead |
static String |
VersionsFolder |
| Constructor and Description |
|---|
AVMPath()
Default constructor
|
AVMPath(String shrPath)
Class constructor
|
AVMPath(String storeName,
int version,
String path)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
generateFileId()
Generate a file id for the path
|
String |
getAVMPath()
Return the AVM style path, in
|
String |
getRelativePath()
Return the share relative path
|
String |
getStoreName()
Return the store name
|
int |
getVersion()
Return the version id
|
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(String path)
Parse the path, for the virtualization view onto all stores/versions
|
void |
parsePath(String storeName,
int version,
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
|
String |
toString()
Return the AVM path details as a string
|
public static final String VersionNameHead
public static final String VersionsFolder
public static final String DataFolder
public static final String MetaDataFolder
public static final String VersionFolderPrefix
public static final char AVM_SEPERATOR
public static final String AVM_SEPERATOR_STR
public AVMPath()
public AVMPath(String shrPath)
Construct an AVM path for the virtualization view, with store and version folders
shrPath - Stringpublic AVMPath.LevelId isLevel()
public final boolean isReadOnlyAccess()
public final String getStoreName()
public final boolean hasVersion()
public final int getVersion()
public final String getVersionString()
public final boolean hasRelativePath()
public final String getRelativePath()
public final String getAVMPath()
public final boolean isValid()
public final boolean isPseudoPath()
public final boolean isReadOnlyPseudoPath()
public final boolean isRootPath()
public final void parsePath(String path)
path - Stringpublic final void parsePath(String storeName, int version, String path)
storeName - Stringversion - intpath - Stringpublic final int generateFileId()
public final void setReadOnlyAccess(boolean readOnly)
access - booleanCopyright © 2005–2014 Alfresco Software. All rights reserved.