public class ImportUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ADDED |
static String |
DELETED |
static String |
DELETED_LIFECYCLE_STATE |
static String |
MODIFIED |
static String |
RESTORED |
Constructor and Description |
---|
ImportUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getContextDataInfo(List<ContextDataInfo> contextDatas,
String dataName)
Utility method used to return a context data information.Usually this
context data information is used in the process of import.
|
static List<String> |
getLifeCycleTransitions(LifeCycle lifeCycle,
String origState,
String destState)
Returns the list of transition names to follow to go from one particular
state to another.
|
static String |
getName(String path)
Returns the name of a document given its path.
|
static String |
getParentPath(String path)
Returns the parent path from the path of a document.
|
public static final String DELETED
public static final String MODIFIED
public static final String ADDED
public static final String RESTORED
public static final String DELETED_LIFECYCLE_STATE
public static String getContextDataInfo(List<ContextDataInfo> contextDatas, String dataName)
contextDatas
- - the list with all the context data information that
a document hasdataName
- - the name of the data context information that needs to
be retrievedpublic static String getParentPath(String path)
path
- - the path of a documentpublic static String getName(String path)
path
- - the path of a documentpublic static List<String> getLifeCycleTransitions(LifeCycle lifeCycle, String origState, String destState) throws LifeCycleException
lifeCycle
- - the lifecycleorigState
- - the origin statedestState
- - the destination stateLifeCycleException
Copyright © 2012 Nuxeo SA. All Rights Reserved.