class SecurityManagerImpl implements SecurityManager {

	@Override
	public boolean isMemberOf(long userId, long groupId) {
		try {
			return userDAO.queryForInt(
					"select count(*) from ld_usergroup where ld_userid=" + userId + " and ld_groupid=" + groupId) > 0;
		} catch (PersistenceException e) {
			log.error(e.getMessage(), e);
			return false;
		}
	}

	private  SecurityManagerImpl();

}