summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/service/usersimpl.h
blob: 84cf97053a8bf7326e5e661dd790e1d95468130e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef USERSIMPL_H
#define USERSIMPL_H

#include <users.h>
#include <visibility.h>
#include <abstractCachingDatabaseClient.h>

namespace Gentoo {
namespace Service {
class DLL_PUBLIC Users : public Gentoo::Users, IceTray::AbstractCachingDatabaseClient {
	public:
		Users(boost::shared_ptr<AdHoc::ResourcePool<DB::Connection>> d);

		Gentoo::UserPtr authenticate(const std::string &, const std::string &, const Ice::Current &) override;
		Gentoo::UserPtr verify(const std::string &, const std::string &, const Ice::Current &) override;

		Gentoo::UserPtr get(Ice::Int id, const Ice::Current &) override;
		Gentoo::UserPtr find(const std::string & username, const Ice::Current &) override;
		Gentoo::NewUserPtr create(const std::string &, const std::string &, const std::string &, const std::string &, const Ice::Current &) override;
		void mailshotsent(Ice::Int id, const Ice::Current &) override;
		void remove(Ice::Int id, const std::string &, const Ice::Current &) override;

		void track(Ice::Int, Ice::Int, const Ice::Current &) override;
		void untrack(Ice::Int, Ice::Int, const Ice::Current &) override;
		Gentoo::PackageIds tracked(Ice::Int, const Ice::Current &) override;
};
}
}

#endif