Author: tchemit Date: 2008-01-23 15:13:43 +0000 (Wed, 23 Jan 2008) New Revision: 440 Modified: trunk/simexplorer-is-service/src/java/fr/cemagref/simexplorer/is/service/MockStorageServiceImpl.java Log: implantation m?\195?\169thode getElement dans le service de Mock Modified: trunk/simexplorer-is-service/src/java/fr/cemagref/simexplorer/is/service/MockStorageServiceImpl.java =================================================================== --- trunk/simexplorer-is-service/src/java/fr/cemagref/simexplorer/is/service/MockStorageServiceImpl.java 2008-01-23 15:13:19 UTC (rev 439) +++ trunk/simexplorer-is-service/src/java/fr/cemagref/simexplorer/is/service/MockStorageServiceImpl.java 2008-01-23 15:13:43 UTC (rev 440) @@ -86,11 +86,13 @@ } public int findFullTextCount(String token, String query, boolean onlyLatest) throws Exception { - return (Integer) checkImplemented(); + //TODO Changer + return findApplicationsCount(token,onlyLatest); } public MetaDataEntity[] findFullText(String token, String query, boolean onlyLatest, int indexStart, int count, int dateOrder) throws Exception { - return (MetaDataEntity[]) checkImplemented(); + //TODO Changer + return findApplications(token,onlyLatest,indexStart,count,dateOrder); } public int findApplicationsCount(String token, boolean onlyLatest) throws Exception { @@ -112,16 +114,7 @@ return result; } - public ElementGenerator getGenerator() { - if (generator == null) { - generator = new ElementGenerator(); - } - return generator; - } - public LoggableElement getElement(String token, String uuid, String version) throws Exception { - - ExplorationApplication explorationApplication = getGenerator().generateRandomEA(); explorationApplication.getMetaData().setUuid(uuid); explorationApplication.getMetaData().setVersion(version); @@ -131,4 +124,11 @@ public String loginUser(String login, String password) { return (String) checkImplemented(); } + + protected ElementGenerator getGenerator() { + if (generator == null) { + generator = new ElementGenerator(); + } + return generator; + } }
participants (1)
-
tchemit@users.labs.libre-entreprise.org