Implement DB based version search
commitb52a4db8551db2dc62cc071d1bbeb089681c8dc6
authorImran M Yousuf <imyousuf@smartitengineering.com>
Sat, 31 Jan 2009 14:10:02 +0000 (31 20:10 +0600)
committerImran M Yousuf <imyousuf@smartitengineering.com>
Sat, 31 Jan 2009 14:10:02 +0000 (31 20:10 +0600)
tree1af0fb935c4269f627d70bd8bb2706dd424f888c
parent24095edc609bfb6e8b7c4dcafb1fe61330ba9350
Implement DB based version search

Firstly, changed the search operation signatures, search can now be
performed on commits and revisions only.

Secondly, added the search properties enum so that its easy to know the
searchable properties.

Thirdly, domain to API operations in meta factory is made static and its
a FIX.

Fourthly, made appropriate changes to meta service API and
implementation. The implementation is simple as it can blindly transfer
the query parameters to the reader daos. Its main responsibility is
transformation and java.util.Set creation. Users using search should
take a look at the tests that will be added in next commit to ensure they
are using the params properly.

Signed-off-by: Imran M Yousuf <imyousuf@smartitengineering.com>
smart-version/smart-version-api/src/main/java/com/smartitengineering/version/api/dao/VersionControlDao.java
smart-version/smart-version-jgit-impl/src/main/java/com/smartitengineering/version/impl/jgit/JGitImpl.java
smart-version/smart-version-jgit-impl/src/main/java/com/smartitengineering/version/impl/jgit/JGitVersionControlDao.java
smart-version/smart-version-jgit-impl/src/main/java/com/smartitengineering/version/impl/jgit/SearchParam.java [new file with mode: 0644]
smart-version/smart-version-jgit-impl/src/main/java/com/smartitengineering/version/impl/jgit/SearchProperties.java [new file with mode: 0644]
smart-version/smart-version-jgit-impl/src/main/java/com/smartitengineering/version/impl/jgit/service/MetaFactory.java
smart-version/smart-version-jgit-impl/src/main/java/com/smartitengineering/version/impl/jgit/service/MetaRCSService.java
smart-version/smart-version-jgit-impl/src/main/java/com/smartitengineering/version/impl/jgit/service/impl/MetaRCSServiceImpl.java