public interface BinaryValueManager
Modifier and Type | Method and Description |
---|---|
void |
delete(ResourceResolver resolver,
java.lang.String undoPath)
Deletes a binary value from the specified target path.
|
void |
delete(Resource par,
java.lang.String subPath,
boolean deletePar)
Deletes a binary value from the specified target path.
|
boolean |
isChanged(Resource par,
java.lang.String subPath,
java.lang.String originalRef)
Checks if the binary value (located at the specified sub-path of the specified
paragraph) has changed in relation to the specified original undo data.
|
void |
restore(Resource undoData,
Resource par,
java.lang.String subPath)
Restores a binary value from the undo area to a specific content path.
|
java.lang.String |
save(Resource par,
java.lang.String subPath)
Saves the binary value at the specified repository path to the undo area.
|
boolean isChanged(Resource par, java.lang.String subPath, java.lang.String originalRef) throws BinaryHandlingException
Checks if the binary value (located at the specified sub-path of the specified paragraph) has changed in relation to the specified original undo data.
par
- The paragraphsubPath
- The sub-path of the binary dataoriginalRef
- The reference to the original binary data (as returned by a
previous call to save(org.apache.sling.api.resource.Resource, java.lang.String)
)true
if the binary data has changedBinaryHandlingException
- if the check could not be executedjava.lang.String save(Resource par, java.lang.String subPath) throws BinaryHandlingException
Saves the binary value at the specified repository path to the undo area.
par
- The paragraphsubPath
- The sub-path of the binary dataBinaryHandlingException
- if the binary resource could not be saved for undo
purposesvoid restore(Resource undoData, Resource par, java.lang.String subPath) throws BinaryHandlingException
Restores a binary value from the undo area to a specific content path.
undoData
- The binary value used for restoring ("source")par
- The paragraph to restore tosubPath
- The sub-path the binary value will be restored toBinaryHandlingException
- if the binary value could not be restoredvoid delete(Resource par, java.lang.String subPath, boolean deletePar) throws BinaryHandlingException
Deletes a binary value from the specified target path.
par
- The paragraphsubPath
- The sub-path of the binarydeletePar
- true
to delete the entire paragraph; false
to delete the BLOB node onlyBinaryHandlingException
- if the binary value could not be removedvoid delete(ResourceResolver resolver, java.lang.String undoPath) throws BinaryHandlingException
Deletes a binary value from the specified target path.
resolver
- The resource resolver to be used for accessing the repositoryundoPath
- The path to delete from (as, for example returned by save(org.apache.sling.api.resource.Resource, java.lang.String)
)BinaryHandlingException
- if the binary value could not be removedCopyright © 2010 - 2020 Adobe. All Rights Reserved