Interface ImportInfo
-
public interface ImportInfo
ImportInfo
...
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ImportInfo.Info
The detailed information about an imported pathstatic class
ImportInfo.Type
The modification type
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.Exception
getError(java.lang.String path)
Deprecated.since 3.1.ImportInfo.Info
getInfo(java.lang.String path)
Returns the info atpath
java.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 infosNodeNameList
getNameList()
Deprecated.since 3.1java.util.Collection<java.lang.String>
getToVersion()
Returns a collection of UUIDs of the nodes that need to be versioned.ImportInfo
merge(ImportInfo info)
Merges an import info into this one.int
numErrors()
returns the number of errorsint
numModified()
returns the number of non-NOP entries.void
onCreated(java.lang.String path)
Marks that the node atpath
was created.void
onDeleted(java.lang.String path)
Marks that the node atpath
was deleted.void
onError(java.lang.String path, java.lang.Exception e)
Marks that the node atpath
caused an error.void
onMissing(java.lang.String path)
Marks that the node atpath
is missing.void
onModified(java.lang.String path)
Marks that the node atpath
was modified.void
onNop(java.lang.String path)
Marks that nothing changed atpath
void
onReplaced(java.lang.String path)
Marks that the node atpath
was 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 atpath
was 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 atpath
was created.- Parameters:
path
- the path
-
onDeleted
void onDeleted(java.lang.String path)
Marks that the node atpath
was deleted.- Parameters:
path
- the path
-
onReplaced
void onReplaced(java.lang.String path)
Marks that the node atpath
was replaced.- Parameters:
path
- the path
-
onMissing
void onMissing(java.lang.String path)
Marks that the node atpath
is missing.- Parameters:
path
- the path
-
onError
void onError(java.lang.String path, java.lang.Exception e)
Marks that the node atpath
caused 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
-
-