public class AVMNodeConverter extends Object
StoreRef, NodeRef world.| Constructor and Description |
|---|
AVMNodeConverter() |
| Modifier and Type | Method and Description |
|---|---|
static String |
ExtendAVMPath(String path,
String name)
Extend an already valid AVM path by one more component.
|
static String |
NormalizePath(String path)
Deprecated.
see org.alfresco.repo.avm.util.AVMUtil.normalizePath
|
static String[] |
SplitBase(String path)
Split a path into its parent path and its base name.
|
static org.alfresco.util.Pair<Integer,String> |
ToAVMVersionPath(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Convert a NodeRef into a version, AVMPath pair.
|
static org.alfresco.service.cmr.repository.NodeRef |
ToNodeRef(int version,
String avmPath)
Get a NodeRef corresponding to the given path and version.
|
static org.alfresco.service.cmr.repository.StoreRef |
ToStoreRef(String avmStore)
Get a StoreRef that corresponds to a given AVMStore name.
|
public static org.alfresco.service.cmr.repository.NodeRef ToNodeRef(int version,
String avmPath)
version - The version id.avmPath - The AVM path.public static org.alfresco.service.cmr.repository.StoreRef ToStoreRef(String avmStore)
avmStore - The name of the AVMStore.public static org.alfresco.util.Pair<Integer,String> ToAVMVersionPath(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - The NodeRef to convert.public static String ExtendAVMPath(String path, String name)
path - The starting AVM path.name - The name to add to it.public static String[] SplitBase(String path)
path - The initial AVM path.Copyright © 2005–2014 Alfresco Software. All rights reserved.