Interface ImportInfo
-
public interface ImportInfoImportInfo...
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceImportInfo.InfoThe detailed information about an imported pathstatic classImportInfo.TypeThe modification type
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.ExceptiongetError(java.lang.String path)Deprecated.since 3.1.ImportInfo.InfogetInfo(java.lang.String path)Returns the info atpathjava.util.TreeMap<java.lang.String,ImportInfo.Info>getInfos()Returns the import informationjava.util.Map<java.lang.String,java.lang.String[]>getMemberships()Returns a list of memberships that need to be resolvedjava.util.TreeMap<java.lang.String,ImportInfo.Type>getModifications()Returns the modifications of all infosNodeNameListgetNameList()Deprecated.since 3.1java.util.Collection<java.lang.String>getToVersion()Returns a collection of UUIDs of the nodes that need to be versioned.ImportInfomerge(ImportInfo info)Merges an import info into this one.intnumErrors()returns the number of errorsintnumModified()returns the number of non-NOP entries.voidonCreated(java.lang.String path)Marks that the node atpathwas created.voidonDeleted(java.lang.String path)Marks that the node atpathwas deleted.voidonError(java.lang.String path, java.lang.Exception e)Marks that the node atpathcaused an error.voidonMissing(java.lang.String path)Marks that the node atpathis missing.voidonModified(java.lang.String path)Marks that the node atpathwas modified.voidonNop(java.lang.String path)Marks that nothing changed atpathvoidonReplaced(java.lang.String path)Marks that the node atpathwas replaced.
-
-
-
Method Detail
-
getNameList
@Deprecated NodeNameList getNameList()
Deprecated.since 3.1- Returns:
- the name list
-
onModified
void onModified(java.lang.String path)
Marks that the node atpathwas modified.- Parameters:
path- the path
-
onNop
void onNop(java.lang.String path)
Marks that nothing changed atpath- Parameters:
path- the path
-
onCreated
void onCreated(java.lang.String path)
Marks that the node atpathwas created.- Parameters:
path- the path
-
onDeleted
void onDeleted(java.lang.String path)
Marks that the node atpathwas deleted.- Parameters:
path- the path
-
onReplaced
void onReplaced(java.lang.String path)
Marks that the node atpathwas replaced.- Parameters:
path- the path
-
onMissing
void onMissing(java.lang.String path)
Marks that the node atpathis missing.- Parameters:
path- the path
-
onError
void onError(java.lang.String path, java.lang.Exception e)Marks that the node atpathcaused an error.- Parameters:
path- the pathe- exception
-
getInfos
java.util.TreeMap<java.lang.String,ImportInfo.Info> getInfos()
Returns the import information- Returns:
- the import information
- Since:
- 3.1
-
getInfo
ImportInfo.Info getInfo(java.lang.String path)
Returns the info atpath- Parameters:
path- path- Returns:
- the info or
null - Since:
- 3.1
-
getModifications
java.util.TreeMap<java.lang.String,ImportInfo.Type> getModifications()
Returns the modifications of all infos- Returns:
- the modifications
-
getError
@Deprecated java.lang.Exception getError(java.lang.String path)
Deprecated.since 3.1. use getInfo(path).getError();- Parameters:
path- the path- Returns:
- the error exception
-
getToVersion
java.util.Collection<java.lang.String> getToVersion()
Returns a collection of UUIDs of the nodes that need to be versioned.- Returns:
- a collection of UUIDs.
-
getMemberships
java.util.Map<java.lang.String,java.lang.String[]> getMemberships()
Returns a list of memberships that need to be resolved- Returns:
- a list of memberships
-
merge
ImportInfo merge(ImportInfo info)
Merges an import info into this one.- Parameters:
info- the other info- Returns:
- a new, merged info.
-
numModified
int numModified()
returns the number of non-NOP entries.- Returns:
- the number of modified entries.
-
numErrors
int numErrors()
returns the number of errors- Returns:
- the number of errors
-
-