Created
January 19, 2013 10:59
-
-
Save dagvadorj/4572022 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* | |
* @author Dagvadorj Galbadrakh | |
* | |
*/ | |
@Remote | |
public interface RevisionBeanRemote { | |
/** | |
* Returns revision of a revisable entity at a given time. | |
* Throws IllegalArgumentException if the given time is too early | |
* @param entity | |
* @param revisionDate | |
* @return | |
* @throws IllegalArgumentException | |
*/ | |
public <T extends RevisionModel, V extends RevisableModel<T>> T getRevision( | |
V entity, Date revisionDate) throws IllegalArgumentException; | |
/** | |
* Deletes a revision of a revisable model at a given time | |
* @param entity | |
*/ | |
public <T extends RevisionModel> void deleteRevision(T entity); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment