Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalise IResourceUpload into IResourceModification
Instead of proliferating the interfaces with special resource cases, by creating yet another resource interface for any resource creation (not only uploads), IResourceModification incorporates both uploads and links, but after_create (which replaces after_upload) provides an additional parameter indicating whether the resource was uploaded or not. This entail renaming but also a slightly different workflow in calling the interface since we must catch deletions before creations.
- Loading branch information
Tryggvi Bjorgvinsson
committed
Sep 12, 2014
1 parent
762a519
commit 4755cdd
Showing
3 changed files
with
47 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters