public interface BinaryValueManager
Modifier and Type | Method and Description |
---|---|
void |
delete(ResourceResolver resolver,
String undoPath)
Deletes a binary value from the specified target path.
|
void |
delete(Resource par,
String subPath,
boolean deletePar)
Deletes a binary value from the specified target path.
|
boolean |
isChanged(Resource par,
String subPath,
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,
String subPath)
Restores a binary value from the undo area to a specific content path.
|
String |
save(Resource par,
String subPath)
Saves the binary value at the specified repository path to the undo area.
|
boolean isChanged(Resource par, String subPath, 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 executedString save(Resource par, 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, 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, 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, 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 removed"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"