Class RemoteWriter.ChangeSet
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,RemoteWriter.ResourceChange>
-
- com.composum.sling.nodes.mount.remote.RemoteWriter.ChangeSet
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,RemoteWriter.ResourceChange>
- Enclosing class:
- RemoteWriter
public static class RemoteWriter.ChangeSet extends LinkedHashMap<String,RemoteWriter.ResourceChange>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description ChangeSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCopy(@NotNull RemoteResource designated, @NotNull org.apache.sling.api.resource.Resource source)
void
addCreate(@NotNull RemoteResource resource)
void
addDelete(@NotNull RemoteResource resource)
void
addModify(@NotNull RemoteResource resource)
void
addMove(@NotNull RemoteResource designated, @NotNull org.apache.sling.api.resource.Resource source, @Nullable String order)
void
addUpload(@NotNull RemoteResource resource, @NotNull InputStream content, @Nullable String filename, @Nullable String mimeType, @Nullable String charset)
boolean
commit(@NotNull RemoteWriter writer)
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
addModify
public void addModify(@NotNull @NotNull RemoteResource resource)
-
addCreate
public void addCreate(@NotNull @NotNull RemoteResource resource)
-
addUpload
public void addUpload(@NotNull @NotNull RemoteResource resource, @NotNull @NotNull InputStream content, @Nullable @Nullable String filename, @Nullable @Nullable String mimeType, @Nullable @Nullable String charset)
-
addDelete
public void addDelete(@NotNull @NotNull RemoteResource resource)
-
addCopy
public void addCopy(@NotNull @NotNull RemoteResource designated, @NotNull @NotNull org.apache.sling.api.resource.Resource source)
-
addMove
public void addMove(@NotNull @NotNull RemoteResource designated, @NotNull @NotNull org.apache.sling.api.resource.Resource source, @Nullable @Nullable String order)
-
commit
public boolean commit(@NotNull @NotNull RemoteWriter writer) throws IOException
- Throws:
IOException
-
-