public class ProposedSubscriptionDAO extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteReceived(int psId)
Delete received proposed subscription
|
static void |
deleteSent(int psId)
Delete sent proposed subscription
|
static List<ProposedSubscriptionReceived> |
findProposedSubscriptionByMeFromUser(String me,
String user)
Find received by user
|
static List<String> |
findProposedSubscriptionSentUsersTo(String me)
Find users whom sent an proposed query
|
static List<String> |
findProposedSubscriptionsUsersFrom(String me)
Find by user
|
static Map<String,Long> |
findProposedSubscriptionsUsersFromUnread(String me)
Return a map users and number of unread proposed queries from them
|
static List<ProposedSubscriptionSent> |
findSentProposedSubscriptionFromMeToUser(String me,
String user)
Find sent from me to user
|
static void |
markAccepted(int psId)
Mark proposed as accepted
|
static void |
markSeen(int psId)
Mark proposed as seen
|
static void |
send(String from,
String to,
String user,
String nodeUuid,
String type,
String comment)
Send proposed subscription
|
public static void send(String from, String to, String user, String nodeUuid, String type, String comment) throws DatabaseException
DatabaseExceptionpublic static void deleteSent(int psId)
throws DatabaseException
DatabaseExceptionpublic static void deleteReceived(int psId)
throws DatabaseException
DatabaseExceptionpublic static List<ProposedSubscriptionSent> findSentProposedSubscriptionFromMeToUser(String me, String user) throws DatabaseException, RepositoryException
RepositoryExceptionDatabaseExceptionpublic static List<String> findProposedSubscriptionsUsersFrom(String me) throws DatabaseException
DatabaseExceptionpublic static Map<String,Long> findProposedSubscriptionsUsersFromUnread(String me) throws DatabaseException
DatabaseExceptionpublic static List<ProposedSubscriptionReceived> findProposedSubscriptionByMeFromUser(String me, String user) throws DatabaseException, RepositoryException
DatabaseExceptionRepositoryExceptionpublic static List<String> findProposedSubscriptionSentUsersTo(String me) throws DatabaseException
DatabaseExceptionpublic static void markSeen(int psId)
throws DatabaseException
DatabaseExceptionpublic static void markAccepted(int psId)
throws DatabaseException
DatabaseExceptionCopyright © 2019 Open Knowledge Management System S.L.. All rights reserved.