public class ProposedQueryDAO extends Object
Modifier and Type | Method and Description |
---|---|
static void |
deleteReceived(long pqId)
Delete received proposed query
|
static void |
deleteSent(long pqId)
Delete sent proposed query
|
static List<String> |
findProposedQueriesUsersFrom(String me)
Find by user
|
static Map<String,Long> |
findProposedQueriesUsersFromUnread(String me)
Return a map users and number of unread proposed queries from them
|
static List<ProposedQueryReceived> |
findProposedQueryByMeFromUser(String me,
String user)
Find received by user
|
static List<String> |
findProposedQuerySentUsersTo(String me)
Find users whom sent an proposed query
|
static void |
markAccepted(long pqId)
Mark proposed as accepted
|
static void |
markSeen(long pqId)
Mark proposed as seen
|
static void |
send(long qpId,
String from,
String to,
String user,
String comment)
Send proposed query
|
public static void send(long qpId, String from, String to, String user, String comment) throws DatabaseException
DatabaseException
public static void deleteSent(long pqId) throws DatabaseException
DatabaseException
public static void deleteReceived(long pqId) throws DatabaseException
DatabaseException
public static List<String> findProposedQueriesUsersFrom(String me) throws DatabaseException
DatabaseException
public static Map<String,Long> findProposedQueriesUsersFromUnread(String me) throws DatabaseException
DatabaseException
public static List<ProposedQueryReceived> findProposedQueryByMeFromUser(String me, String user) throws DatabaseException
DatabaseException
public static List<String> findProposedQuerySentUsersTo(String me) throws DatabaseException
DatabaseException
public static void markSeen(long pqId) throws DatabaseException
DatabaseException
public static void markAccepted(long pqId) throws DatabaseException
DatabaseException
Copyright © 2017 Open Knowledge Management System S.L.. All rights reserved.