Added java doc to leaderboard group specific methods

This commit is contained in:
Lennart Hensler committed 2012-02-20 15:43:41 +01:00
1 parent 9ad6910637
commit 24e419f6e9
2 files changed
+20 -1

No files matched your search

@@ -28,10 +28,19 @@ public interface DomainObjectFactory {
RaceIdentifier loadRaceIdentifier(DBObject dbObject);
/**
* @return The group with the name <code>name</code>, or <code>null</code> if no such group exists.
*/
LeaderboardGroup loadLeaderboardGroup(String name);
/**
* @return All groups in the database.
*/
Iterable<LeaderboardGroup> getAllLeaderboardGroups();
/**
* @return All leaderboards in the database, which aren't contained by a leaderboard group
*/
Iterable<Leaderboard> getLeaderboardsNotInGroup();
}
@@ -43,10 +43,20 @@ public interface MongoObjectFactory {
void storeRaceIdentifier(RaceIdentifier raceIdentifier, DBObject dbObject);
/**
* Stores the group, if it doesn't exist or updates it.<br />
* Leaderboards in the group, which aren't stored in the database, will be stored.
*/
void storeLeaderboardGroup(LeaderboardGroup leaderboardGroup);
/**
* Removes the group with the name <code>groupName</code> from the database.
*/
void removeLeaderboardGroup(String groupName);
/**
* Renames the group with the name <code>oldName</code>.
*/
void renameLeaderboardGroup(String oldName, String newName);
}